---
title: "GeolocationInfoOptions | 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 GeolocationInfoOptions

Options that can be provided to get user data.

type GeolocationInfoOptions \= {  
    [apiKey](#apikey)?: string;  
    [elevation](#elevation)?: boolean;  
}

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

##### Index

### Properties

[apiKey?](#apikey) [elevation?](#elevation)

## Properties

### `Optional`apiKey[](#apikey)

apiKey?: string

Custom MapTiler Cloud API key to use instead of the one in global `config`

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

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

elevation?: boolean

Include elevation (in meters) in the results. Default: `false`

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