Type Alias 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;
}
Properties
Optionalcity
Optionalcontinent
Name of the continent Example: Europe
Optionalcontinent_code
Two-letter code of the continent Example: EU
Optionalcountry
Name of the country Example: Switzerland
Optionalcountry_bounds
Bounds of the country in WGS84 degrees [west, south, east, north]. Example: [5.95538,45.818852,10.490936,47.809357]
Optionalcountry_code
Two-letter code of the country ISO 3166-1 alpha-2 codes Example: CH
Optionalcountry_languages
Official country languages in ISO 639-1 format. ISO 639-1 codes Example: ["de","fr","it"]
Optionalelevation
Elevation of the location in meters Example: 433
Optionaleu
Indicated whether the country is part of the European Union.
Optionallatitude
Latitude of the location Example: 47.36667
Optionallongitude
Longitude of the location Example: 8.55
Optionalpostal
Postal code Example: 8000
Optionalregion
If known, the ISO 3166-2 name for the first level region. ISO 3166-2 codes Example: Zurich
Optionalregion_code
If known, the ISO 3166-2 code for the first level region. ISO 3166-2 codes Example: ZH
Optionaltimezone
Name of the timezone Example: Europe/Zurich
Name of the city Example: Zurich