Type Alias GeolocationResult

type GeolocationResult = {
    city?: string;
    continent?: string;
    continent_code?: string;
    country?: string;
    country_bounds?: BBox;
    country_code?: string;
    country_languages?: string[];
    elevation?: number;
    eu?: boolean;
    latitude?: number;
    longitude?: number;
    postal?: string;
    region?: string;
    region_code?: string;
    timezone?: string;
}
Index

Properties

city?: string

Name of the city Example: Zurich

continent?: string

Name of the continent Example: Europe

continent_code?: string

Two-letter code of the continent Example: EU

country?: string

Name of the country Example: Switzerland

country_bounds?: BBox

Bounds of the country in WGS84 degrees [west, south, east, north]. Example: [5.95538,45.818852,10.490936,47.809357]

country_code?: string

Two-letter code of the country ISO 3166-1 alpha-2 codes Example: CH

country_languages?: string[]

Official country languages in ISO 639-1 format. ISO 639-1 codes Example: ["de","fr","it"]

elevation?: number

Elevation of the location in meters Example: 433

eu?: boolean

Indicated whether the country is part of the European Union.

latitude?: number

Latitude of the location Example: 47.36667

longitude?: number

Longitude of the location Example: 8.55

postal?: string

Postal code Example: 8000

region?: string

If known, the ISO 3166-2 name for the first level region. ISO 3166-2 codes Example: Zurich

region_code?: string

If known, the ISO 3166-2 code for the first level region. ISO 3166-2 codes Example: ZH

timezone?: string

Name of the timezone Example: Europe/Zurich

Was this helpful?

Client JS
Reference
GeolocationResult