Look up elevation at one or more points
client.elevation.lookup(ElevationLookupParams { format, lat, lng, 4 more } query?, RequestOptionsoptions?): ElevationLookupResult { geometry, properties, type }
GET/api/v1/elevation
Look up elevation at one or more points
import Plaza from '@plazafyi/sdk';
const client = new Plaza({
apiKey: process.env['PLAZA_API_KEY'], // This is the default and can be omitted
});
const elevationLookupResult = await client.elevation.lookup();
console.log(elevationLookupResult.geometry);{
"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"
}