Terrain
Three queries read the ground itself, with no route involved: terrainSamples at points you know, terrainProfile along a line, and terrainGrid across an area. All three return the same sample: elevation in meters, slope in degrees, and the direction the slope faces.
Every sample on this page reuses this setup. It mints a session token with your secret key, so run it on your server.
Read the ground at Chamonix and at the summit of Mont Blanc.
Samples come back in the order you sent them. steepnessBand is set only from 25 degrees up, so both points here carry null.
Read the ground every kilometer on the straight line from Chamonix to Argentière.
Read each sample's distanceMeters: the spacing is a target, so samples land 983 m apart here, not 1,000. To profile a saved route, send its segment geometry as coordinates, each position reduced to [longitude, latitude].
Read the ground on a regular grid to find high, steep, or north-facing terrain. This 2 by 2 grid covers the Mont Blanc summit area.
Cells run row by row from the north-west corner, each read at its center. aspectOctant and steepnessBand use the same values as the aspect and steepness map overlays.
Each query reads at most 256 elevation tiles. If a grid or a long profile is refused, use a smaller box, fewer cells, or a shorter line.