LocalitiesAddressGeometry

data class LocalitiesAddressGeometry(val locationType: LocalitiesAddressGeometry.LocationType? = null, val location: LatLng? = null, val viewport: LatLngBounds? = null)

The location of the result, in latitude and longitude. Accuracy is also provided.

Parameters

locationType

Specifies additional data about the geocoded location. The following values are currently supported: - ROOFTOP result is a precise geocode for which we have location information accurate down to street address precision. - RANGE_INTERPOLATED result reflects an approximation (usually on a road) interpolated between two precise points (such as intersections). Interpolated results are generally returned when rooftop geocodes are unavailable for a street address. - GEOMETRIC_CENTER result is the geometric center of a result such as a polyline (for example, a street) or polygon (city, region, …). - APPROXIMATE result is approximate (usually when no other above value applies) - POSTAL_CODE Address has inherited from the location of the postal code it is part of (for NYB addresses) - DISTRICT Address has inherited from the location of the district it is part of (for NYB addresses)

location
viewport

Constructors

Link copied to clipboard
constructor(locationType: LocalitiesAddressGeometry.LocationType? = null, location: LatLng? = null, viewport: LatLngBounds? = null)

Types

Link copied to clipboard

Specifies additional data about the geocoded location. The following values are currently supported:

Properties

Link copied to clipboard
@SerializedName(value = "location")
val location: LatLng? = null
Link copied to clipboard
@SerializedName(value = "location_type")
val locationType: LocalitiesAddressGeometry.LocationType? = null

Specifies additional data about the geocoded location. The following values are currently supported:

Link copied to clipboard
@SerializedName(value = "viewport")
val viewport: LatLngBounds? = null