RountingArcGIS
A leightweight promises based node.js wrapper for the ArcGIS Online Routing Services.
Installation
Installing using npm:
npm i routing-arcgis --save
Usage
Initialization
var RoutingArcGIS = routing = client_id: 'YOUR CLIENT ID' client_secret: 'YOUR CLIENT SECRET' ;
The constructor function also takes an optional configuration object:
- client_id: id for OAuth
- client_secret: secret for OAuth
- endpoint: custom ArcGIS endpoint
Route
routing ;
Optional parameters:
- you can pass all request parameters
Response
All methods return a promise.