Skip to main content
POST

Authorizations

x-api-key
string
header
required

Your Footstep API key

Body

application/json

Provide either shape or encoded_polyline

shape
object[]

Coordinates (max 2000)

Maximum array length: 2000
encoded_polyline
string

Encoded polyline alternative

range
boolean
default:false

Include cumulative distances

resample_distance
number

Resample interval in meters

Required range: 1 <= x <= 1000
height_precision
number
default:0

Decimal places for heights

Required range: 0 <= x <= 2
format
enum<string>
default:footstep

Response format. footstep = optimised for app developers (encoded polyline, flat structure). geojson = standard GeoJSON FeatureCollection (decoded coordinates, immediately usable in Leaflet/Mapbox GL/deck.gl).

Available options:
footstep,
geojson

Response

Elevation data with summary

shape
object[]
height
number[]

Elevations (when range=false)

range_height
number[][]

[distance_meters, elevation_meters] tuples (when range=true)

Required array length: 2 elements
summary
object

Elevation statistics for the requested points. total_ascent_meters and total_descent_meters are included only when range: true was requested.