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

Options that can be provided to get user data.

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

##### Index

### Properties[](#properties)

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

## Properties[](#properties-1)

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

apiKey?: string

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

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

elevation?: boolean

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