@esri/arcgis-rest-routing 4.0.0-beta.4 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ Esri welcomes contributions from anyone and everyone. Please see our [guidelines
|
|
|
57
57
|
|
|
58
58
|
### License
|
|
59
59
|
|
|
60
|
-
Copyright © 2018 Esri
|
|
60
|
+
Copyright © 2018-2022 Esri
|
|
61
61
|
|
|
62
62
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
63
63
|
you may not use this file except in compliance with the License.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-routing - v4.0.
|
|
2
|
+
* @esri/arcgis-rest-routing - v4.0.1 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Wed May 11 2022 17:55:24 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
6
|
import { request, cleanUrl, appendCustomParams } from '@esri/arcgis-rest-request';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-routing - v4.0.
|
|
2
|
+
* @esri/arcgis-rest-routing - v4.0.1 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Wed May 11 2022 17:55:24 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
6
|
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")}
|
|
7
7
|
/* @preserve
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-routing - v4.0.
|
|
2
|
+
* @esri/arcgis-rest-routing - v4.0.1 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Wed May 11 2022 17:55:24 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@esri/arcgis-rest-request')) :
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* @preserve
|
|
2
|
-
* @esri/arcgis-rest-routing - v4.0.
|
|
2
|
+
* @esri/arcgis-rest-routing - v4.0.1 - Apache-2.0
|
|
3
3
|
* Copyright (c) 2017-2022 Esri, Inc.
|
|
4
|
-
*
|
|
4
|
+
* Wed May 11 2022 17:55:24 GMT+0000 (Coordinated Universal Time)
|
|
5
5
|
*/
|
|
6
6
|
!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")}
|
|
7
7
|
/* @preserve
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esri/arcgis-rest-routing",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Routing helpers for @esri/arcgis-rest-js",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"tslib": "^2.3.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@esri/arcgis-rest-request": "4.0.0
|
|
51
|
+
"@esri/arcgis-rest-request": "^4.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@esri/arcgis-rest-request": "4.0.
|
|
54
|
+
"@esri/arcgis-rest-request": "^4.0.1"
|
|
55
55
|
},
|
|
56
56
|
"contributors": [
|
|
57
57
|
"Gavin Rehkemper <gavin@gavinr.com>"
|