---
title: "geolocation | 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.

# Variable geolocation`Const`

geolocation: { info: typeof [info](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.info/) }

The **geolocation** namespace contains an asynchronous function to call the [MapTiler Geolocation API](https://docs.maptiler.com/cloud/api/geolocation/). The **Geolocation API** provides a way to retrieve the IP address as well as geographic informations of a machine performing the query (most likely: a user)

#### Type Declaration

-   ##### info: typeof [info](https://docs.maptiler.com/sdk-js/api-reference/functions/Externals.info/)
