Get an elevation profile along a path
get_elevation_profileGet an elevation profile for any path in Norway by sampling terrain heights, returning total distance, ascent, and descent for route planning.
Instructions
Sample the terrain elevation evenly along a path of coordinates (Kartverket DTM) and return the profile plus total distance, ascent, and descent. Useful for hikes and routes. Give the path vertices in order; samples controls resolution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Ordered path vertices (at least 2). The path is sampled evenly between them. | |
| samples | No | Number of evenly spaced points to sample along the whole path |