@esri/arcgis-rest-routing 3.4.3 → 4.0.0
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 +5 -6
- package/dist/bundled/routing.esm.js +740 -0
- package/dist/bundled/routing.esm.js.map +1 -0
- package/dist/bundled/routing.esm.min.js +12 -0
- package/dist/bundled/routing.esm.min.js.map +1 -0
- package/dist/bundled/routing.umd.js +758 -0
- package/dist/bundled/routing.umd.js.map +1 -0
- package/dist/bundled/routing.umd.min.js +12 -0
- package/dist/bundled/routing.umd.min.js.map +1 -0
- package/dist/{node → cjs}/closestFacility.js +21 -20
- package/dist/cjs/closestFacility.js.map +1 -0
- package/dist/{node → cjs}/helpers.js +11 -11
- package/dist/cjs/helpers.js.map +1 -0
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/{node → cjs}/originDestinationMatrix.js +25 -25
- package/dist/cjs/originDestinationMatrix.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/{node → cjs}/serviceArea.js +18 -18
- package/dist/cjs/serviceArea.js.map +1 -0
- package/dist/{node → cjs}/solveRoute.js +19 -19
- package/dist/cjs/solveRoute.js.map +1 -0
- package/dist/esm/closestFacility.d.ts +6 -4
- package/dist/esm/closestFacility.js +12 -11
- package/dist/esm/closestFacility.js.map +1 -1
- package/dist/esm/helpers.d.ts +1 -2
- package/dist/esm/helpers.js +15 -15
- package/dist/esm/helpers.js.map +1 -1
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/originDestinationMatrix.d.ts +7 -6
- package/dist/esm/originDestinationMatrix.js +11 -11
- package/dist/esm/originDestinationMatrix.js.map +1 -1
- package/dist/esm/package.json +3 -0
- package/dist/esm/serviceArea.d.ts +5 -4
- package/dist/esm/serviceArea.js +11 -11
- package/dist/esm/serviceArea.js.map +1 -1
- package/dist/esm/solveRoute.d.ts +5 -4
- package/dist/esm/solveRoute.js +13 -13
- package/dist/esm/solveRoute.js.map +1 -1
- package/package.json +58 -41
- package/dist/node/closestFacility.js.map +0 -1
- package/dist/node/helpers.js.map +0 -1
- package/dist/node/index.js +0 -11
- package/dist/node/index.js.map +0 -1
- package/dist/node/originDestinationMatrix.js.map +0 -1
- package/dist/node/serviceArea.js.map +0 -1
- package/dist/node/solveRoute.js.map +0 -1
- package/dist/umd/routing.umd.js +0 -779
- package/dist/umd/routing.umd.js.map +0 -1
- package/dist/umd/routing.umd.min.js +0 -12
- package/dist/umd/routing.umd.min.js.map +0 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[npm-url]: https://www.npmjs.com/package/@esri/arcgis-rest-routing
|
|
9
9
|
[travis-img]: https://img.shields.io/travis/Esri/arcgis-rest-js/master.svg?style=flat-square
|
|
10
10
|
[travis-url]: https://travis-ci.org/Esri/arcgis-rest-js
|
|
11
|
-
[gzip-image]: https://img.badgesize.io/https://unpkg.com/@esri/arcgis-rest-routing/dist/
|
|
11
|
+
[gzip-image]: https://img.badgesize.io/https://unpkg.com/@esri/arcgis-rest-routing/dist/bundled/routing.umd.min.js?compression=gzip
|
|
12
12
|
[coverage-img]: https://codecov.io/gh/Esri/arcgis-rest-js/branch/master/graph/badge.svg
|
|
13
13
|
[coverage-url]: https://codecov.io/gh/Esri/arcgis-rest-js
|
|
14
14
|
|
|
@@ -28,11 +28,10 @@ npm install @esri/arcgis-rest-routing
|
|
|
28
28
|
solveRoute({
|
|
29
29
|
stops: [
|
|
30
30
|
[-117.195677, 34.056383],
|
|
31
|
-
[-117.918976, 33.812092]
|
|
31
|
+
[-117.918976, 33.812092]
|
|
32
32
|
],
|
|
33
33
|
authentication
|
|
34
|
-
})
|
|
35
|
-
.then(response)
|
|
34
|
+
}).then(response);
|
|
36
35
|
// {routes: {features: [{attributes: { ... }, geometry:{ ... }}]}}
|
|
37
36
|
```
|
|
38
37
|
|
|
@@ -40,7 +39,7 @@ solveRoute({
|
|
|
40
39
|
|
|
41
40
|
### Issues
|
|
42
41
|
|
|
43
|
-
If something isn't working the way you expected, please take a look at [previously logged issues](https://github.com/Esri/arcgis-rest-js/issues) first.
|
|
42
|
+
If something isn't working the way you expected, please take a look at [previously logged issues](https://github.com/Esri/arcgis-rest-js/issues) first. Have you found a new bug? Want to request a new feature? We'd [**love**](https://github.com/Esri/arcgis-rest-js/issues/new) to hear from you.
|
|
44
43
|
|
|
45
44
|
If you're looking for help you can also post issues on [GIS Stackexchange](http://gis.stackexchange.com/questions/ask?tags=esri-oss).
|
|
46
45
|
|
|
@@ -58,7 +57,7 @@ Esri welcomes contributions from anyone and everyone. Please see our [guidelines
|
|
|
58
57
|
|
|
59
58
|
### License
|
|
60
59
|
|
|
61
|
-
Copyright © 2018 Esri
|
|
60
|
+
Copyright © 2018-2022 Esri
|
|
62
61
|
|
|
63
62
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
64
63
|
you may not use this file except in compliance with the License.
|