---
title: "GeolocationResult | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias GeolocationResult

type GeolocationResult \= {  
    [city](#city)?: string;  
    [continent](#continent)?: string;  
    [continent\_code](#continent_code)?: string;  
    [country](#country)?: string;  
    [country\_bounds](#country_bounds)?: [BBox](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BBox/);  
    [country\_code](#country_code)?: string;  
    [country\_languages](#country_languages)?: string\[\];  
    [elevation](#elevation)?: number;  
    [eu](#eu)?: boolean;  
    [latitude](#latitude)?: number;  
    [longitude](#longitude)?: number;  
    [postal](#postal)?: string;  
    [region](#region)?: string;  
    [region\_code](#region_code)?: string;  
    [timezone](#timezone)?: string;  
}

##### Index

### Properties[](#properties)

[city?](#city) [continent?](#continent) [continent\_code?](#continent_code) [country?](#country) [country\_bounds?](#country_bounds) [country\_code?](#country_code) [country\_languages?](#country_languages) [elevation?](#elevation) [eu?](#eu) [latitude?](#latitude) [longitude?](#longitude) [postal?](#postal) [region?](#region) [region\_code?](#region_code) [timezone?](#timezone)

## Properties[](#properties-1)

### `Optional`city[](#city)

city?: string

Name of the city Example: Zurich

### `Optional`continent[](#continent)

continent?: string

Name of the continent Example: Europe

### `Optional`continent\_code[](#continent_code)

continent\_code?: string

Two-letter code of the continent Example: EU

### `Optional`country[](#country)

country?: string

Name of the country Example: Switzerland

### `Optional`country\_bounds[](#country_bounds)

country\_bounds?: [BBox](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.BBox/)

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

### `Optional`country\_code[](#country_code)

country\_code?: string

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

### `Optional`country\_languages[](#country_languages)

country\_languages?: string\[\]

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

### `Optional`elevation[](#elevation)

elevation?: number

Elevation of the location in meters Example: 433

### `Optional`eu[](#eu)

eu?: boolean

Indicated whether the country is part of the European Union.

### `Optional`latitude[](#latitude)

latitude?: number

Latitude of the location Example: 47.36667

### `Optional`longitude[](#longitude)

longitude?: number

Longitude of the location Example: 8.55

### `Optional`postal[](#postal)

postal?: string

Postal code Example: 8000

### `Optional`region[](#region)

region?: string

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

### `Optional`region\_code[](#region_code)

region\_code?: string

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

### `Optional`timezone[](#timezone)

timezone?: string

Name of the timezone Example: Europe/Zurich
