Socket
Socket
Sign inDemoInstall

@esri/arcgis-rest-routing

Package Overview
Dependencies
16
Maintainers
6
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-beta.3 to 4.0.0-beta.4

24

dist/bundled/routing.esm.js
/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.2 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Thu Mar 10 2022 23:21:15 GMT+0000 (Coordinated Universal Time)
* Tue May 10 2022 02:53:35 GMT+0000 (Coordinated Universal Time)
*/

@@ -373,5 +373,7 @@ import { request, cleanUrl, appendCustomParams } from '@esri/arcgis-rest-request';

/**
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*
* ```js
* import { solveRoute } from '@esri/arcgis-rest-routing';
* //
*
* solveRoute({

@@ -386,3 +388,2 @@ * stops: [

* ```
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*

@@ -465,5 +466,7 @@ * @param requestOptions Options to pass through to the routing service.

/**
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*
* ```js
* import { closestFacility } from '@esri/arcgis-rest-routing';
* //
*
* closestFacility({

@@ -483,3 +486,2 @@ * incidents: [

* ```
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*

@@ -565,5 +567,7 @@ * @param requestOptions Options to pass through to the routing service.

/**
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*
* ```js
* import { serviceArea } from '@esri/arcgis-rest-routing';
* //
*
* serviceArea({

@@ -579,3 +583,2 @@ * facilities: [

* ```
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*

@@ -642,5 +645,7 @@ * @param requestOptions Options to pass through to the routing service.

/**
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*
* ```js
* import { originDestinationMatrix } from '@esri/arcgis-rest-routing';
* //
*
* originDestinationMatrix({

@@ -660,3 +665,2 @@ * origins: [

* ```
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*

@@ -663,0 +667,0 @@ * @param requestOptions Options to pass through to the routing service.

/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.2 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Thu Mar 10 2022 23:21:15 GMT+0000 (Coordinated Universal Time)
* Tue May 10 2022 02:53:35 GMT+0000 (Coordinated Universal Time)
*/

@@ -6,0 +6,0 @@ import{request as r,cleanUrl as e,appendCustomParams as i}from"@esri/arcgis-rest-request";const t="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",n="https://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World",s="https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World",a="https://route.arcgis.com/arcgis/rest/services/World/OriginDestinationCostMatrix/NAServer/OriginDestinationCostMatrix_World";function o(r){return r.map((r=>function(r){return 2===r.length||3===r.length}(r)?r.join():function(r){return void 0!==r.latitude||void 0!==r.lat}(r)?r.lat?r.long+","+r.lat:r.longitude+","+r.latitude:r.x+","+r.y))}function u(r){let e=0,i=0;const t=[];let n,s;const a=r.match(/((\+|-)[^+-]+)/g),o=parseInt(a[0],32);for(let r=1;r<a.length;r+=2)n=parseInt(a[r],32)+e,e=n,s=parseInt(a[r+1],32)+i,i=s,t.push([n/o,s/o]);return{paths:[t]}}function c(r){return Object.prototype.hasOwnProperty.call(r,"features")}

/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.2 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Thu Mar 10 2022 23:21:15 GMT+0000 (Coordinated Universal Time)
* Tue May 10 2022 02:53:35 GMT+0000 (Coordinated Universal Time)
*/

@@ -377,5 +377,7 @@ (function (global, factory) {

/**
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*
* ```js
* import { solveRoute } from '@esri/arcgis-rest-routing';
* //
*
* solveRoute({

@@ -390,3 +392,2 @@ * stops: [

* ```
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*

@@ -469,5 +470,7 @@ * @param requestOptions Options to pass through to the routing service.

/**
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*
* ```js
* import { closestFacility } from '@esri/arcgis-rest-routing';
* //
*
* closestFacility({

@@ -487,3 +490,2 @@ * incidents: [

* ```
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*

@@ -569,5 +571,7 @@ * @param requestOptions Options to pass through to the routing service.

/**
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*
* ```js
* import { serviceArea } from '@esri/arcgis-rest-routing';
* //
*
* serviceArea({

@@ -583,3 +587,2 @@ * facilities: [

* ```
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*

@@ -646,5 +649,7 @@ * @param requestOptions Options to pass through to the routing service.

/**
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*
* ```js
* import { originDestinationMatrix } from '@esri/arcgis-rest-routing';
* //
*
* originDestinationMatrix({

@@ -664,3 +669,2 @@ * origins: [

* ```
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*

@@ -667,0 +671,0 @@ * @param requestOptions Options to pass through to the routing service.

/* @preserve
* @esri/arcgis-rest-routing - v4.0.0-beta.2 - Apache-2.0
* @esri/arcgis-rest-routing - v4.0.0-beta.5 - Apache-2.0
* Copyright (c) 2017-2022 Esri, Inc.
* Thu Mar 10 2022 23:21:15 GMT+0000 (Coordinated Universal Time)
* Tue May 10 2022 02:53:35 GMT+0000 (Coordinated Universal Time)
*/

@@ -6,0 +6,0 @@ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@esri/arcgis-rest-request")):"function"==typeof define&&define.amd?define(["exports","@esri/arcgis-rest-request"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).arcgisRest=e.arcgisRest||{},e.arcgisRest)}(this,(function(e,r){"use strict";const t="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",i="https://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World",n="https://route.arcgis.com/arcgis/rest/services/World/ServiceAreas/NAServer/ServiceArea_World",s="https://route.arcgis.com/arcgis/rest/services/World/OriginDestinationCostMatrix/NAServer/OriginDestinationCostMatrix_World";function a(e){return e.map((e=>function(e){return 2===e.length||3===e.length}(e)?e.join():function(e){return void 0!==e.latitude||void 0!==e.lat}(e)?e.lat?e.long+","+e.lat:e.longitude+","+e.latitude:e.x+","+e.y))}function o(e){let r=0,t=0;const i=[];let n,s;const a=e.match(/((\+|-)[^+-]+)/g),o=parseInt(a[0],32);for(let e=1;e<a.length;e+=2)n=parseInt(a[e],32)+r,r=n,s=parseInt(a[e+1],32)+t,t=s,i.push([n/o,s/o]);return{paths:[i]}}function u(e){return Object.prototype.hasOwnProperty.call(e,"features")}

@@ -18,5 +18,7 @@ "use strict";

/**
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*
* ```js
* import { closestFacility } from '@esri/arcgis-rest-routing';
* //
*
* closestFacility({

@@ -36,3 +38,2 @@ * incidents: [

* ```
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*

@@ -39,0 +40,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -10,5 +10,7 @@ "use strict";

/**
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*
* ```js
* import { originDestinationMatrix } from '@esri/arcgis-rest-routing';
* //
*
* originDestinationMatrix({

@@ -28,3 +30,2 @@ * origins: [

* ```
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*

@@ -31,0 +32,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -18,5 +18,7 @@ "use strict";

/**
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*
* ```js
* import { serviceArea } from '@esri/arcgis-rest-routing';
* //
*
* serviceArea({

@@ -32,3 +34,2 @@ * facilities: [

* ```
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*

@@ -35,0 +36,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -18,5 +18,7 @@ "use strict";

/**
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*
* ```js
* import { solveRoute } from '@esri/arcgis-rest-routing';
* //
*
* solveRoute({

@@ -31,3 +33,2 @@ * stops: [

* ```
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*

@@ -34,0 +35,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -50,5 +50,7 @@ import { ILocation, IPoint, IFeature, IFeatureSet } from "@esri/arcgis-rest-request";

/**
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*
* ```js
* import { closestFacility } from '@esri/arcgis-rest-routing';
* //
*
* closestFacility({

@@ -68,3 +70,2 @@ * incidents: [

* ```
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*

@@ -71,0 +72,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -15,5 +15,7 @@ /* Copyright (c) 2018 Environmental Systems Research Institute, Inc.

/**
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*
* ```js
* import { closestFacility } from '@esri/arcgis-rest-routing';
* //
*
* closestFacility({

@@ -33,3 +35,2 @@ * incidents: [

* ```
* Used to find a route to the nearest of several possible destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/closest-facility-synchronous-service.htm) for more information.
*

@@ -36,0 +37,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -48,5 +48,7 @@ import { ILocation, IPoint, IFeatureSet } from "@esri/arcgis-rest-request";

/**
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*
* ```js
* import { originDestinationMatrix } from '@esri/arcgis-rest-routing';
* //
*
* originDestinationMatrix({

@@ -66,3 +68,2 @@ * origins: [

* ```
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*

@@ -69,0 +70,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -7,5 +7,7 @@ /* Copyright (c) 2018 Environmental Systems Research Institute, Inc.

/**
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*
* ```js
* import { originDestinationMatrix } from '@esri/arcgis-rest-routing';
* //
*
* originDestinationMatrix({

@@ -25,3 +27,2 @@ * origins: [

* ```
* Used to create an origin-destination (OD) cost matrix from multiple origins to multiple destinations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-synchronous-service.htm) for more information.
*

@@ -28,0 +29,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -35,5 +35,7 @@ import { ILocation, IPoint, IFeatureSet } from "@esri/arcgis-rest-request";

/**
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*
* ```js
* import { serviceArea } from '@esri/arcgis-rest-routing';
* //
*
* serviceArea({

@@ -49,3 +51,2 @@ * facilities: [

* ```
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*

@@ -52,0 +53,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -15,5 +15,7 @@ /* Copyright (c) 2018 Environmental Systems Research Institute, Inc.

/**
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*
* ```js
* import { serviceArea } from '@esri/arcgis-rest-routing';
* //
*
* serviceArea({

@@ -29,3 +31,2 @@ * facilities: [

* ```
* Used to find the area that can be reached from the input location within a given travel time or travel distance. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/service-area-synchronous-service.htm) for more information.
*

@@ -32,0 +33,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -24,5 +24,7 @@ import { ILocation, IPoint, IFeature, IFeatureSet } from "@esri/arcgis-rest-request";

/**
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*
* ```js
* import { solveRoute } from '@esri/arcgis-rest-routing';
* //
*
* solveRoute({

@@ -37,3 +39,2 @@ * stops: [

* ```
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*

@@ -40,0 +41,0 @@ * @param requestOptions Options to pass through to the routing service.

@@ -15,5 +15,7 @@ /* Copyright (c) 2018 Environmental Systems Research Institute, Inc.

/**
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*
* ```js
* import { solveRoute } from '@esri/arcgis-rest-routing';
* //
*
* solveRoute({

@@ -28,3 +30,2 @@ * stops: [

* ```
* Used to find the best way to get from one location to another or to visit several locations. See the [REST Documentation](https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm) for more information.
*

@@ -31,0 +32,0 @@ * @param requestOptions Options to pass through to the routing service.

{
"name": "@esri/arcgis-rest-routing",
"version": "4.0.0-beta.3",
"version": "4.0.0-beta.4",
"description": "Routing helpers for @esri/arcgis-rest-js",

@@ -51,6 +51,6 @@ "license": "Apache-2.0",

"peerDependencies": {
"@esri/arcgis-rest-request": "4.0.0-beta.3"
"@esri/arcgis-rest-request": "4.0.0-beta.10"
},
"devDependencies": {
"@esri/arcgis-rest-request": "4.0.0-beta.3"
"@esri/arcgis-rest-request": "4.0.0-beta.10"
},

@@ -71,3 +71,14 @@ "contributors": [

"access": "public"
},
"esri": {
"keyExports": [
"closestFacility",
"decompressGeometry",
"isFeatureSet",
"normalizeLocationsList",
"originDestinationMatrix",
"serviceArea",
"solveRoute"
]
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc