Class GeocodeResult
A geocode result contains geographic information about a place.
Implements
Namespace: Google.Maps.Geocode.V4
Assembly: Google.Maps.Geocode.V4.dll
Syntax
public sealed class GeocodeResult : IMessage<GeocodeResult>, IEquatable<GeocodeResult>, IDeepCloneable<GeocodeResult>, IBufferMessage, IMessage
Constructors
GeocodeResult()
Declaration
public GeocodeResult()
GeocodeResult(GeocodeResult)
Declaration
public GeocodeResult(GeocodeResult other)
Parameters
| Type | Name | Description |
|---|---|---|
| GeocodeResult | other |
Properties
AddressComponents
Repeated components for each locality level.
Declaration
public RepeatedField<GeocodeResult.Types.AddressComponent> AddressComponents { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<GeocodeResult.Types.AddressComponent> |
Bounds
A bounding box for the address.
Declaration
public Viewport Bounds { get; set; }
Property Value
| Type | Description |
|---|---|
| Viewport |
FormattedAddress
The one line formatted address.
Declaration
public string FormattedAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Granularity
The granularity of the location.
Declaration
public GeocodeResult.Types.Granularity Granularity { get; set; }
Property Value
| Type | Description |
|---|---|
| GeocodeResult.Types.Granularity |
Location
The latlng of this address.
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 |
PlusCode
Plus code of the location in this geocode.
Declaration
public PlusCode PlusCode { get; set; }
Property Value
| Type | Description |
|---|---|
| PlusCode |
PostalAddress
The address in postal address format.
Declaration
public PostalAddress PostalAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| PostalAddress |
PostalCodeLocalities
Complete list of localities contained in the postal code.
This is only populated when the result is of type "postal_code".
Declaration
public RepeatedField<LocalizedText> PostalCodeLocalities { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<LocalizedText> |
Types_
A set of type tags for this result. For example, "political" and "administrative_area".
For the complete list of possible values, see Table A and Table B at https://developers.google.com/maps/documentation/places/web-service/place-types.
Declaration
public RepeatedField<string> Types_ { get; }
Property Value
| Type | Description |
|---|---|
| RepeatedField<string> |
Viewport
A viewport suitable for displaying the geocode result.
Declaration
public Viewport Viewport { get; set; }
Property Value
| Type | Description |
|---|---|
| Viewport |