Show / Hide Table of Contents

Class Geocode

Contains information about the place the input was geocoded to.

Inheritance
object
Geocode
Implements
IMessage<Geocode>
IEquatable<Geocode>
IDeepCloneable<Geocode>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Maps.AddressValidation.V1
Assembly: Google.Maps.AddressValidation.V1.dll
Syntax
public sealed class Geocode : IMessage<Geocode>, IEquatable<Geocode>, IDeepCloneable<Geocode>, IBufferMessage, IMessage

Constructors

Geocode()

Declaration
public Geocode()

Geocode(Geocode)

Declaration
public Geocode(Geocode other)
Parameters
Type Name Description
Geocode other

Properties

Bounds

The bounds of the geocoded place.

Declaration
public Viewport Bounds { get; set; }
Property Value
Type Description
Viewport

FeatureSizeMeters

The size of the geocoded place, in meters. This is another measure of the coarseness of the geocoded location, but in physical size rather than in semantic meaning.

Declaration
public float FeatureSizeMeters { get; set; }
Property Value
Type Description
float

Location

The geocoded location of the input.

Using place IDs is preferred over using addresses, latitude/longitude coordinates, or plus codes. Using coordinates when routing or calculating driving directions will always result in the point being snapped to the road nearest to those coordinates. This may not be a road that will quickly or safely lead to the destination and may not be near an access point to the property. Additionally, when a location is reverse geocoded, there is no guarantee that the returned address will match the original.

Declaration
public LatLng Location { get; set; }
Property Value
Type Description
LatLng

PlaceId

The PlaceID of the place this input geocodes to.

For more information about Place IDs see here.

Declaration
public string PlaceId { get; set; }
Property Value
Type Description
string

PlaceTypes

The type(s) of place that the input geocoded to. For example, ['locality', 'political']. The full list of types can be found here.

Declaration
public RepeatedField<string> PlaceTypes { get; }
Property Value
Type Description
RepeatedField<string>

PlusCode

The plus code corresponding to the location.

Declaration
public PlusCode PlusCode { get; set; }
Property Value
Type Description
PlusCode
In this article
Back to top Generated by DocFX