@skycatch/node-skyapi-sdk
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -739,2 +739,54 @@ 'use strict' | ||
/** | ||
* Measure Aggregate Volume | ||
* Measure Aggregate Volume | ||
* @method | ||
* @name measureAggregateVolume | ||
* @param (string) type - Measurement Type | ||
* @param (string) surfaceId - Processing Job UUID | ||
* @param (string) surfaceType - Surface type | ||
* @param (number) level - Zoom level | ||
* @param (object) feature - Measure Aggregate Volume | ||
* @param (object) basePlane - Measure Aggregate Volume | ||
*/ | ||
api.measureAggregateVolume = async (params = {}) => { | ||
let method = 'post'.toUpperCase() | ||
let path = `/v${version || 2}` + '/measure/aggregate/{type}' | ||
let query = {} | ||
let body = {} | ||
let security = true | ||
if (params['type'] !== undefined) { | ||
path = path.replace('{' + 'type' + '}', params['type']) | ||
} | ||
if (params['surfaceId'] !== undefined) { | ||
body['surfaceId'] = params['surfaceId'] | ||
} | ||
if (params['surfaceType'] !== undefined) { | ||
body['surfaceType'] = params['surfaceType'] | ||
} | ||
if (params['level'] !== undefined) { | ||
body['level'] = params['level'] | ||
} | ||
if (params['feature'] !== undefined) { | ||
body['feature'] = params['feature'] | ||
} | ||
if (params['basePlane'] !== undefined) { | ||
body['basePlane'] = params['basePlane'] | ||
} | ||
return api.request({ | ||
method, | ||
path, | ||
query, | ||
body, | ||
security | ||
}) | ||
} | ||
/** | ||
* List Processing Job Results | ||
@@ -741,0 +793,0 @@ * List Processing Job Results |
{ | ||
"name": "@skycatch/node-skyapi-sdk", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Node SDK to interact with SkyAPI", | ||
@@ -44,2 +44,3 @@ "main": "./dist/skyapi.js", | ||
"@skycatch/skyapi-geoids-list": "github:skycatch/skyapi-geoids-list", | ||
"@skycatch/skyapi-measure-aggregate-volume-post": "github:skycatch/skyapi-measure-aggregate-volume-post", | ||
"@skycatch/skyapi-measure-surface-elevation-post": "github:skycatch/skyapi-measure-surface-elevation-post", | ||
@@ -46,0 +47,0 @@ "@skycatch/skyapi-processing-result-get": "github:skycatch/skyapi-processing-result-get", |
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
353202
7431
20