RAIDR/API Reference/Analysis

Sample terrain profile

posthttp://127.0.0.1:8787/api/v1/terrain/profile

Samples the WGS84 geodesic between two coordinates, returning distance, forward azimuth, and per-sample elevation in MSL and HAE.

Request

application/json

This endpoint expects an object.

fromLatLonRequired
toLatLonRequired
samplesintegerOptional

Clamped to the range.

2 to 4096 · Defaults to 256

Response

200 · application/json

Sampled profile. Returns a TerrainProfile object.

distance_mnumberOptional

Total geodesic distance.

azimuth_degnumberOptional

Forward azimuth.

sampleslist of objectOptional

Errors

400
Problem

Malformed request.