osrmroute

Elevation Profile API

Global

Elevation at every point of a path plus total ascent, descent and distance — a full route profile.

POST/api/1/elevation/profile

Overview

The Elevation Profile API takes a path — a points array or an encoded polyline — and returns the elevation at every point, plus total ascent, total descent, min/max elevation and cumulative distance. Perfect for cycling, hiking and running apps that need a climb profile. Global SRTM data, so it works anywhere.

API reference

POST/api/1/elevation/profile
ParameterTypeStatus
pointsarrayOptional
polylinestringOptional

Example request

Credit cost: 1 credit / 10 points
curl -X POST "https://osrmroute.com/api/1/elevation/profile?key=YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"points":[[40.37,49.85],[40.80,48.90],[41.30,48.05]]}'

Other services

OSRMRoute Support

Talk directly to our team

HERE TO HELP

How can we help?

Send a message. Ticket replies are also sent to your verified email.

Your chats

Your chats will appear here.