findElevationAtPoint

findElevationAtPoint

Function
findElevationAtPoint(requestOptionsIFindElevationAtPointOptions): Promise<IFindElevationAtPointResponse>

This method returns the elevation in meters at a given longitude and latitude within the WGS84 coordinate system. By default the elevation is measured with respect to the Earth's mean sea level. It takes into account the local variations in gravity and provides a consistent vertical reference.

If the relativeTo query parameter is set to ellipsoid, the elevation will be measured with respect to the ellipsoid. This is a mathematical model that approximates the shape of the Earth. It does not consider local variations in gravity and is commonly used in GPS positioning.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
import { findElevationAtPoint } from "@esri/arcgis-rest-elevation";
import { ApiKeyManager } from "@esri/arcgis-rest-request";

const results = await findElevationAtPoint({
  lon: -179.99,
  lat: -85.05,
  authentication: ApiKeyManager.fromKey("YOUR_ACCESS_TOKEN");
});

console.log(results)
Parameters
ParameterType
requestOptions
IFindElevationAtPointOptions
Returns 
Promise<IFindElevationAtPointResponse>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.