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

Generated using TypeDoc