Skip to content
GuidesBlogPlaygroundDashboard

Look up elevation at one or more points

ElevationLookupResult Elevation.LookupPost(ElevationLookupPostParams?parameters, CancellationTokencancellationToken = default)
POST/api/v1/elevation

Look up elevation at one or more points

ParametersExpand Collapse
ElevationLookupPostParams parameters
string format

Response format: json (default), geojson, csv, ndjson

Double lat

Latitude (single point)

Double lng

Longitude (single point)

string locations

Pipe-separated lng,lat pairs (batch)

string outputFields

Comma-separated property fields to include

string outputInclude

Extra computed fields: bbox, center

Long outputPrecision

Coordinate decimal precision (1-15, default 7)

ReturnsExpand Collapse
class ElevationLookupResult:

GeoJSON Point Feature with a 3D coordinate [lng, lat, elevation] per RFC 7946 §3.1.1. The elevation is also available in properties.elevation_m for convenience.

required GeoJsonGeometry Geometry

GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints.

required Coordinates Coordinates

Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc.

One of the following:
IReadOnlyList<Double>
IReadOnlyList<IReadOnlyList<Double>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>
IReadOnlyList<IReadOnlyList<IReadOnlyList<IReadOnlyList<Double>>>>
required Type Type

Geometry type

One of the following:
"Point"Point
"LineString"LineString
"Polygon"Polygon
"MultiPoint"MultiPoint
"MultiLineString"MultiLineString
"MultiPolygon"MultiPolygon
required Properties Properties
required Double ElevationM

Elevation in meters above mean sea level (WGS84 EGM96 geoid)

required Type Type

Look up elevation at one or more points

ElevationLookupPostParams parameters = new();

var elevationLookupResult = await client.Elevation.LookupPost(parameters);

Console.WriteLine(elevationLookupResult);
{
  "geometry": {
    "coordinates": [
      2.3522,
      48.8566
    ],
    "type": "Point"
  },
  "properties": {
    "elevation_m": 35.2
  },
  "type": "Feature"
}
Returns Examples
{
  "geometry": {
    "coordinates": [
      2.3522,
      48.8566
    ],
    "type": "Point"
  },
  "properties": {
    "elevation_m": 35.2
  },
  "type": "Feature"
}