Interface GeocodingPlace

A single geocoded place returned by forwardGeocode or reverseGeocode.

Every field other than latitude and longitude is optional, because the underlying native geocoder may not populate them depending on the input and the locale.

Hierarchy

  • GeocodingPlace

Properties

latitude: number

Latitude in decimal degrees.

longitude: number

Longitude in decimal degrees.

name?: string

Short, human-readable name for the place (e.g. "Googleplex").

street?: string

Street/thoroughfare (e.g. "Amphitheatre Pkwy").

subLocality?: string

Sub-locality such as a neighbourhood or district.

locality?: string

Locality, typically a city or town.

subAdministrativeArea?: string

Sub-administrative area, typically a county.

administrativeArea?: string

Administrative area, typically a state or province.

postalCode?: string

Postal/ZIP code.

country?: string

Country name (localised when locale is provided).

countryCode?: string

ISO 3166-1 alpha-2 country code (e.g. "US", "BR").

formattedAddress?: string

Best-effort, human-readable, localised single-line address. Field order is locale-aware (each platform's native formatter picks the right order for the locale). Not machine-parseable — use the structured fields above for that.

Generated using TypeDoc