Geolocation
IP Geolocation
Obtain information about visitor's location based on IP address of the incoming request.
get/geolocation/ip.json
Request
- Base URLhttps://api.maptiler.com
- AuthAPI key in query parameter key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
elevationboolean
Include elevation (in meters) in the results.
Response
Location of the client based on the IP address of the request.
Example response
{
"country": "Switzerland",
"country_code": "CH",
"country_bounds": [
5.95538,
45.818852,
10.490936,
47.809357
],
"country_languages": [
"de",
"fr",
"it"
],
"continent": "Europe",
"continent_code": "EU",
"city": "Zurich",
"latitude": 47.36667,
"longitude": 8.55,
"postal": "8000",
"region": "Zurich",
"region_code": "ZH",
"timezone": "Europe/Zurich",
"elevation": 433
}Changes
No recorded changes to this operation across all 1 revision of this API.