Elevation API
Elevation for any point on Earth.
Send up to 100 coordinates and get each one's ground elevation in metres or feet. Use it for route profiles, flood checks, or to put an altitude next to a location.
What you get
-
Batch lookups
Up to 100 points in one request, each answered independently. Points without data return null instead of failing the request.
-
Open data
From Terrain Tiles on AWS Open Data, built from SRTM, GMTED, ETOPO1 and other sources. Credit them where you show elevations.
-
From the browser
Any key of the project works, including publishable keys locked to your origins.
Try it
Copy this, swap in a key from your project, and run it.
Request
curl "https://api.mapsocket.com/v1/elevation?locations=45.8326,6.8652|38.7139,-9.1334&units=m" -H "Authorization: pk_live_…" Response
{
"units": "m",
"elevations": [
{ "latitude": 45.8326, "longitude": 6.8652, "elevation": 4780.1 },
{ "latitude": 38.7139, "longitude": -9.1334, "elevation": 89.2 }
]
} Good to know
- Elevations are interpolated from global elevation data, so expect metres of error, more on steep ground. Not for surveying.
Also in every MapSocket project
- Live vector tiles Vector tiles from your PostGIS tables that update seconds after a row changes.
- Files and web services Tiles from GeoJSON, Shapefiles, GeoPackages, Esri services and WFS, rebuilt when the data changes.
- Geofencing API Send a location, get enter, exit and dwell events for circles, polygons and travel-time areas.
- Trips and ETAs Live ETAs, approaching and arrival events for deliveries, pickups and visits.
- Places, regions and fraud checks Every location named: the place, country and state, beacons, and whether to trust the fix.
- Georeferencer Put scanned maps, site plans and drone photos on the map, under your live data.
- Custom tile domains Serve tiles from tiles.yourcompany.com, with certificates handled for you.
- MCP server for AI assistants Connect Claude, ChatGPT, Groq, Cursor and other assistants to your geofences, users, trips and events.
Start free Free Sandbox, no card needed.