Elevation API
Get elevation
GET https://api.maptiler.com/elevation/{locations}.json
Get the elevation in meters at given locations.
Request
You must include an API Key with every API request
Path Parameters
Parameters | Type | Description |
---|---|---|
locations | string |
List of lng,lat pairs seperated by ; delimeter (Max 50 pairs). Longitude values must be > -180 < 180 . Latitudes values must be >= -85 <= 85 .
Example: 17,50;-133.5,58.39 |
Request example
https://api.maptiler.com/elevation/17,50;-133.5,58.39.json?key=YOUR_MAPTILER_API_KEY
Get your FREE API key in your MapTiler account.
Responses
Code | Content | Description |
---|---|---|
200 | application/json | Array of locations with elevation in meters `[lng, lat, ele]` |
400 |
Out of bounds |

Using the OpenAPI Specification?
Get the openapi.yaml
On this page