v4

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-08-03123883.7 KB

/height

Elevation at points or along a path

post/height

Request body

idstring
encoded_polylinestring

Polyline6 (default) or polyline5 (with shape_format=polyline5) encoded shape.

shape_format'polyline6' | 'polyline5' | 'geojson' | 'no_shape'

Not all formats are supported by all endpoints, e.g. no_shape is not valid for isochrone.

rangeboolean

Return cumulative distance alongside elevation values.

height_precision0 | 1 | 2

Decimal places in elevation values.

resample_distancenumber

Resample the shape at this interval in meters before querying elevation.

Example request

{
  "shape": [
    {
      "type": "break",
      "preferred_side": "opposite",
      "street_side_cutoff": "primary",
      "search_filter": {
        "min_road_class": "primary",
        "max_road_class": "primary"
      }
    }
  ],
  "shape_format": "polyline6"
}

Response

Elevation result