curl --request POST \
--url https://api.footstep.ai/v1/routing/elevation \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"shape": [
{
"lat": 51.5322,
"lon": -0.124
},
{
"lat": 51.5007,
"lon": -0.1246
},
{
"lat": 51.5055,
"lon": -0.0754
}
]
}
'{
"shape": [
{
"lat": 0,
"lon": 0
}
],
"height": [
123
],
"range_height": [
[
123
]
],
"summary": {
"max_elevation_meters": 123,
"min_elevation_meters": 123,
"avg_elevation_meters": 123,
"total_ascent_meters": 123,
"total_descent_meters": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Routing
Get Elevation
Query elevation values for coordinates or an encoded polyline. Returns height values with a computed summary including ascent, descent, min/max/avg elevation.
POST
/
v1
/
routing
/
elevation
curl --request POST \
--url https://api.footstep.ai/v1/routing/elevation \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"shape": [
{
"lat": 51.5322,
"lon": -0.124
},
{
"lat": 51.5007,
"lon": -0.1246
},
{
"lat": 51.5055,
"lon": -0.0754
}
]
}
'{
"shape": [
{
"lat": 0,
"lon": 0
}
],
"height": [
123
],
"range_height": [
[
123
]
],
"summary": {
"max_elevation_meters": 123,
"min_elevation_meters": 123,
"avg_elevation_meters": 123,
"total_ascent_meters": 123,
"total_descent_meters": 123
}
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Body
application/json
Provide either shape or encoded_polyline
Response
Elevation data with summary