DroneDeploy
Search…
Measurement
This is a wrapper for our REST measurement API, https://support.dronedeploy.com/v1.0/docs/measurements-api, allowing you to make these calls inside DroneDeploy apps.

Elevation of Point

Example Call
1
dronedeployApi.Measurement.getElevationOfPoint(plan.id, {lat: 35.9272, lng: -96.7493})
2
.then(function(jsonResult){
3
console.log(jsonResult);
4
});
Copied!
Example Response
1
{
2
"lat": 35.9272,
3
"lng": -96.7493,
4
"aspect": 100.57501983642578,
5
"elevation": -2.0494751930236816,
6
"slope": 7.686941623687744
7
}
Copied!

Elevation of Points

Example Call
1
dronedeployApi.Measurement.getElevationOfPoints(plan.id, [{lat: 35.9272, lng: -96.7493}, {lat: 35.9272, lng: -96.7493}])
2
.then(function(jsonResult){
3
console.log(jsonResult);
4
});
Copied!
Example Response
1
[
2
{
3
"lat": 35.9272,
4
"lng": -96.7493,
5
"aspect": 100.57501983642578,
6
"elevation": -2.0494751930236816,
7
"slope": 7.686941623687744
8
},
9
{
10
"lat": 35.9282,
11
"lng": -96.7493,
12
"aspect": 100.57501983642578,
13
"elevation": -2.0494751930236816,
14
"slope": 7.686941623687744
15
},
16
]
Copied!

Elevation of Line

Example Call
1
dronedeployApi.Measurement.getElevationOfLine(plan.id, [{lat: 35.9272, lng: -96.7493}])
2
.then(function(jsonResult){
3
console.log(jsonResult);
4
});
Copied!
Example Response
1
{
2
"length": 107.35063384719186,
3
"endpoints": [
4
[
5
35.926247,
6
-96.748958
7
],
8
[
9
35.926738,
10
-96.747933
11
]
12
],
13
"dx": 0.5394504213426726,
14
"points": 200,
15
"profile": [
16
-3.2126803398132324,
17
-2.9078261852264404,
18
-2.5082149505615234,
19
....
20
]
21
}
Copied!

Volume of Points

Example Call
1
var geometry = [{lat: 35.9272, lng: -96.7493}, {lat: 35.9272, lng: -96.7493}, {lat: 35.9272, lng: -96.7493}];
2
var optionalVolumeSetting = 'lowest'; // will default to fit -- See https://support.dronedeploy.com/v1.0/docs/volume-measurement#section-selecting-the-right-baseplane
3
dronedeployApi.Measurement.getVolume(plan.id, geometry, optionalVolumeSetting)
4
.then(function(jsonResult){
5
console.log(jsonResult);
6
});
Copied!
Example Response
1
[
2
{
3
"baseplane_type": "fit",
4
"cut": 26153.559188015362,
5
"fill": -18900.181208767106,
6
"polygon": "POLYGON(6.535406112670899 46.655990545464206,6.5360498428344735 46.655710711675226,6.535298824310304 46.654561905156164,6.534655094146729 46.654723917810095,6.535406112670899 46.655990545464206)",
7
"volume": 7253.377979248256
8
}
9
]
Copied!