Routing

Elevation along points or a route.

Look up ground elevation for discrete points or along a route. For a route, send the geometry as an encodedPolyline and the server resamples it to samples evenly-spaced points — ideal for building an elevation profile from a GPS track without sending every point.

Quota cost: 1 unit per call. The points array is capped at 512; for a longer track use encodedPolyline (resampled to at most 1000 points).

post/elevation/v1

Request

  • Base URL: https://api.rijwind.com
  • URL: https://api.rijwind.com/elevation/v1
  • Auth: HTTP bearer

Request body

encodedPolylinestring nullable

A route as a single encoded polyline (precision 6). The server samples it at samples evenly-spaced points — send a whole GPS track this way rather than thousands of individual points.

samplesinteger nullable

Number of evenly-spaced samples for encodedPolyline mode. Default 256, capped at 1000.

Example request

{
  "encodedPolyline": "_p~iF~ps|U_ulLnnqC",
  "points": [
    {
      "lat": 52.3676,
      "lon": 4.9041
    }
  ],
  "samples": 256
}

Response

Elevations in request order.

Example response

{
  "elevations": [
    {
      "elevation": 322.4,
      "lat": 50.7536,
      "lon": 6.0208
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.