---
title: "GeolocationResult | Client js | Api client"
description: "Documentation for MapTiler Client"
---

> 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;  
    [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;  
}

-   Defined in [services/geolocation.ts:26](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L26)

##### Index

### 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

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

city?: string

Name of the city Example: Zurich

-   Defined in [services/geolocation.ts:72](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L72)

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

continent?: string

Name of the continent Example: Europe

-   Defined in [services/geolocation.ts:55](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L55)

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

continent\_code?: string

Two-letter code of the continent Example: EU

-   Defined in [services/geolocation.ts:61](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L61)

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

country?: string

Name of the country Example: Switzerland

-   Defined in [services/geolocation.ts:31](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L31)

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

country\_bounds?: BBox

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

-   Defined in [services/geolocation.ts:43](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L43)

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

country\_code?: string

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

-   Defined in [services/geolocation.ts:37](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L37)

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

country\_languages?: string\[\]

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

-   Defined in [services/geolocation.ts:49](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L49)

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

elevation?: number

Elevation of the location in meters Example: 433

-   Defined in [services/geolocation.ts:114](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L114)

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

eu?: boolean

Indicated whether the country is part of the European Union.

-   Defined in [services/geolocation.ts:66](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L66)

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

latitude?: number

Latitude of the location Example: 47.36667

-   Defined in [services/geolocation.ts:78](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L78)

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

longitude?: number

Longitude of the location Example: 8.55

-   Defined in [services/geolocation.ts:84](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L84)

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

postal?: string

Postal code Example: 8000

-   Defined in [services/geolocation.ts:90](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L90)

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

region?: string

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

-   Defined in [services/geolocation.ts:96](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L96)

### `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

-   Defined in [services/geolocation.ts:102](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L102)

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

timezone?: string

Name of the timezone Example: Europe/Zurich

-   Defined in [services/geolocation.ts:108](https://github.com/maptiler/maptiler-client-js/blob/f88659ae276c959a754e4c0f3b5c2aae1f483caa/src/services/geolocation.ts#L108)
