@skycatch/node-skyapi-sdk
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1343,2 +1343,55 @@ 'use strict' | ||
/** | ||
* Measure Aggregate Volume | ||
* Measure Aggregate Volume | ||
* @method | ||
* @name measureSurface | ||
* @param (boolean) refresh - Re-calculate measurement | ||
* @param (array) surfaces - Measure Aggregate Volume | ||
* @param (number) level - Zoom level | ||
* @param (object) basePlane - Baseplane to compare the surface against for basic_volume measurements. | ||
* @param () feature - Measure Aggregate Volume | ||
* @param (string) callback - Callback URL to invoke once the measurement is done (async mode) | ||
*/ | ||
api.measureSurface = async (params = {}, options = {}) => { | ||
let method = 'post'.toUpperCase() | ||
let path = `/v${version || 2}` + '/measure/surface' | ||
let query = {} | ||
let body = {} | ||
let security = true | ||
if (params['refresh'] !== undefined) { | ||
query['refresh'] = params['refresh'] | ||
} | ||
if (params['surfaces'] !== undefined) { | ||
body['surfaces'] = params['surfaces'] | ||
} | ||
if (params['level'] !== undefined) { | ||
body['level'] = params['level'] | ||
} | ||
if (params['basePlane'] !== undefined) { | ||
body['basePlane'] = params['basePlane'] | ||
} | ||
if (params['feature'] !== undefined) { | ||
body['feature'] = params['feature'] | ||
} | ||
if (params['callback'] !== undefined) { | ||
body['callback'] = params['callback'] | ||
} | ||
return api.request({ | ||
method, | ||
path, | ||
query, | ||
body, | ||
security, | ||
options | ||
}) | ||
} | ||
/** | ||
* Something | ||
@@ -1345,0 +1398,0 @@ * Something |
{ | ||
"name": "@skycatch/node-skyapi-sdk", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Node SDK to interact with SkyAPI", | ||
@@ -54,2 +54,3 @@ "main": "./dist/skyapi.js", | ||
"@skycatch/skyapi-measure-surface-get": "github:skycatch/skyapi-measure-surface-get#v1.0.0", | ||
"@skycatch/skyapi-measure-surface-post": "github:skycatch/skyapi-measure-surface-post#v1.0.0", | ||
"@skycatch/skyapi-measure-surface-progress-post": "github:skycatch/skyapi-measure-surface-progress-post#v1.0.0", | ||
@@ -56,0 +57,0 @@ "@skycatch/skyapi-metadata-get": "github:skycatch/skyapi-metadata-get#v1.0.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
838141
17365
45