findElevationAtManyPoints

findElevationAtManyPoints

Function
findElevationAtManyPoints(requestOptionsIFindElevationAtManyPointsOptions): Promise<IFindElevationAtManyPointsResponse>

This method returns elevations in meters at given longitudes and latitudes within the WGS84 coordinate system. The order of the points returned by this request will be the same as the order of the points passed in the coordinates parameter.

If the distance between the furthest West and furthest East coordinate or the furthest North and furthest South coordinate exceeds 50km, the service will return a 400 HTTP response as the distance between these points is too large.

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
import { findElevationAtManyPoints } from "@esri/arcgis-rest-elevation";
import { ApiKeyManager } from "@esri/arcgis-rest-request";

const results = await findElevationAtManyPoints({
  coordinates: [[31.134167, 29.979167], [31.130833, 29.976111], [31.128333, 29.9725]],
  authentication: ApiKeyManager.fromKey("YOUR_ACCESS_TOKEN");
});

console.log(results)
Parameters
ParameterType
requestOptions
IFindElevationAtManyPointsOptions
Returns 
Promise<IFindElevationAtManyPointsResponse>

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