Terrain
The terrainSamples, terrainProfile and terrainGrid queries of the Data API. Every request is a POST to https://data.mountaya.com/graphql with a publishable key and a session token: see Authentication.
/graphqlSample elevation, slope, and aspect at standalone [longitude, latitude] points. Use it for readings at known coordinates; for an existing line use terrainProfile, and to search an area for features you have not located use terrainGrid.
Arguments
inputTerrainSamplesInput!
The positions to sample terrain at.
Returns
terrainSamplesTerrainSamplesResult!
Result of a point terrain query.
Errors A field the API refuses is answered 200, its entry in errors beside the data that resolved. See Errors.
/graphqlSample the surface along a geometry at a fixed interval, producing an elevation profile as data. Use it to answer how steep a route is and where the hard sections sit.
Arguments
inputTerrainProfileInput!
The line to profile, and the spacing to sample it at.
Returns
terrainProfileTerrainProfileResult!
Result of a terrain profile along a geometry.
Errors A field the API refuses is answered 200, its entry in errors beside the data that resolved. See Errors.
/graphqlSample the surface over a rectangular grid inside a bounding box, for area reconnaissance: finding high ground, a steep band, or a slope facing a given direction before routing through it.
Arguments
inputTerrainGridInput!
The bounding box to grid, and the resolution to sample it at.
Returns
terrainGridTerrainGridResult!
Result of a gridded terrain query over an area.
Errors A field the API refuses is answered 200, its entry in errors beside the data that resolved. See Errors.