## Look up elevation at one or more points **post** `/api/v1/elevation` Look up elevation at one or more points ### Query Parameters - `format: optional string` Response format: json (default), geojson, csv, ndjson - `lat: optional number` Latitude (single point) - `lng: optional number` Longitude (single point) - `locations: optional string` Pipe-separated lng,lat pairs (batch) - `"output[fields]": optional string` Comma-separated property fields to include - `"output[include]": optional string` Extra computed fields: bbox, center - `"output[precision]": optional number` Coordinate decimal precision (1-15, default 7) ### Returns - `ElevationLookupResult = object { geometry, properties, type }` 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. - `geometry: GeoJsonGeometry` GeoJSON Geometry object per RFC 7946. Coordinates use [longitude, latitude] order. 3D coordinates [lng, lat, elevation] are used for elevation endpoints. - `coordinates: array of number or array of array of number or array of array of array of number or array of array of array of array of number` Coordinates array. Nesting depth varies by geometry type: Point = [lng, lat], LineString = [[lng, lat], ...], Polygon = [[[lng, lat], ...], ...], etc. - `Point = array of number` [longitude, latitude] or [longitude, latitude, elevation] - `LineStringOrMultiPoint = array of array of number` Array of [lng, lat] positions - `PolygonOrMultiLineString = array of array of array of number` Array of linear rings / line strings - `MultiPolygon = array of array of array of array of number` Array of polygons - `type: "Point" or "LineString" or "Polygon" or 3 more` Geometry type - `"Point"` - `"LineString"` - `"Polygon"` - `"MultiPoint"` - `"MultiLineString"` - `"MultiPolygon"` - `properties: object { elevation_m }` - `elevation_m: number` Elevation in meters above mean sea level (WGS84 EGM96 geoid) - `type: "Feature"` - `"Feature"` ### Example ```http curl https://plaza.fyi/api/v1/elevation \ -X POST \ -H "Authorization: Bearer $PLAZA_API_KEY" ``` #### Response ```json { "geometry": { "coordinates": [ 2.3522, 48.8566 ], "type": "Point" }, "properties": { "elevation_m": 35.2 }, "type": "Feature" } ```