elevation
Sample terrain elevation. Provide points (a bare list of coordinates) for point elevation, or encoded_polyline (optionally with resample_distance_m) for an along-route profile — not both. Returns one sample per point/resampled point in order; elevation_m is null wherever the engine's DEM tile set has no coverage at that point (never a guess). The encoded_polyline form also returns each sample's resampled lat/lon and cumulative range_km from the start.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | No | Points to sample. Provide this or `encoded_polyline`, not both. | |
| encoded_polyline | No | A route as a Google encoded polyline with six digits of precision. Provide this or `points`, not both. | |
| resample_distance_m | No | Resamples `encoded_polyline` at this spacing in metres before sampling height (ignored for `points`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| samples | Yes | One sample per input point (or per resampled shape point, in the `encoded_polyline` form), in order. |