Class PlaceView
Represents a view of a Place in the Places API. It also provides additional information specific to destinations, such as the structure type and the display polygon.
In some cases, a PlaceView with the same place ID might differ from what
is being returned by the Places API for the types and
display_name fields.
Implements
Namespace: Google.Maps.Geocode.V4
Assembly: Google.Maps.Geocode.V4.dll
Syntax
public sealed class PlaceView : IMessage<PlaceView>, IEquatable<PlaceView>, IDeepCloneable<PlaceView>, IBufferMessage, IMessage
Constructors
PlaceView()
Declaration
public PlaceView()
PlaceView(PlaceView)
Declaration
public PlaceView(PlaceView other)
Parameters
| Type | Name | Description |
|---|---|---|
| PlaceView | other |
Properties
DisplayName
Human readable place description. For example, "Gate B", "McDonalds"
Declaration
public LocalizedText DisplayName { get; set; }
Property Value
| Type | Description |
|---|---|
| LocalizedText |
DisplayPolygon
The polygon outline of the place in GeoJSON format, using the RFC 7946 format: https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.6.
Note: The RFC 7946 format supports MultiPolygons, so one display_polygon
object can represent multiple polygons.
Declaration
public Struct DisplayPolygon { get; set; }
Property Value
| Type | Description |
|---|---|
| Struct |
FormattedAddress
One line address.
Declaration
public string FormattedAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Location
The location of this place. For places with display polygons, this can represent a good spot to put a marker on the map.
Declaration
public LatLng Location { get; set; }
Property Value
| Type | Description |
|---|---|
| LatLng |
Place
This Place's resource name, in places/{placeId} format. Can be used to
look up the Place.
Declaration
public string Place { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PlaceId
The unique identifier of a place.
Declaration
public string PlaceId { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
PostalAddress
Structured address.
Declaration
public PostalAddress PostalAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| PostalAddress |
PrimaryType
The primary place type of this place. See https://developers.google.com/maps/documentation/places/web-service/place-types for the list of possible values.
Note: This field is not always populated. Be prepared to use the types
field in such situations.
Declaration
public string PrimaryType { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StructureType
The type of structure corresponding to this place.
Declaration
public PlaceView.Types.StructureType StructureType { get; set; }
Property Value
| Type | Description |
|---|---|
| PlaceView.Types.StructureType |
Types_
All associated place types of this place. See https://developers.google.com/maps/documentation/places/web-service/place-types for the list of possible values.
Declaration
public RepeatedField<string> Types_ { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |