Developer Docs
API Reference
Services
Geocoding
Types
Interfaces
Interface: GeocodingResult

web


web / lib/services/geocoding/types / GeocodingResult

Interface: GeocodingResult

Extends

  • Pick<LocationCache, "latitude" | "longitude" | "confidence" | "provider" | "normalizedAddress">

Properties

components

components: undefined | { streetNumber?: null | string; streetName?: null | string; city?: null | string; region?: null | string; postalCode?: null | string; country?: null | string; }

Type declaration

undefined

{ streetNumber?: null | string; streetName?: null | string; city?: null | string; region?: null | string; postalCode?: null | string; country?: null | string; }

streetNumber?

optional streetNumber: null | string

Street number

streetName?

optional streetName: null | string

Street name

city?

optional city: null | string

City name

region?

optional region: null | string

State/Region/Province

postalCode?

optional postalCode: null | string

Postal/ZIP code

country?

optional country: null | string

Country name


metadata

metadata: undefined | null | string | number | boolean | unknown[] | {[k: string]: unknown; }


fromCache?

optional fromCache: boolean


normalizedAddress

normalizedAddress: string

Normalized address for better matching

Inherited from

Pick.normalizedAddress


latitude

latitude: number

Latitude coordinate (WGS84)

Inherited from

Pick.latitude


longitude

longitude: number

Longitude coordinate (WGS84)

Inherited from

Pick.longitude


provider

provider: string

Name of the geocoding provider used

Inherited from

Pick.provider


confidence?

optional confidence: null | number

Confidence score (0-1)

Inherited from

Pick.confidence