Variable geolocationConst

geolocation: {
    info: (options?: GeolocationInfoOptions) => Promise<GeolocationResult>;
} = ...

The geolocation namespace contains an asynchronous function to call the MapTiler Geolocation API. 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

Was this helpful?

Client JS
Reference
geolocation