Version 3.3.1

@esri/arcgis-rest-routing

Routing helpers for @esri/arcgis-rest-js

npm install:

npm install @esri/arcgis-rest-routing @esri/arcgis-rest-auth@^3.0.0  @esri/arcgis-rest-request@^3.0.0 

Module Import:

import {
  closestFacility,
  decompressGeometry,
  isFeatureSet,
  normalizeLocationsList,
  originDestinationMatrix,
  serviceArea,
  solveRoute,
} from "@esri/arcgis-rest-routing";

CDN:

<script src="https://unpkg.com/@esri/arcgis-rest-routing@3.3.1/dist/umd/routing.umd.min.js"></script>

CDN with SRI:

<script src="https://unpkg.com/@esri/arcgis-rest-routing@3.3.1/dist/umd/routing.umd.min.js" integrity="sha384-RXApYoZgbEOhQpA3GvZm3RchPdYDhHLOselcuAMjYqs+YMKBFj9rYI7pmgGHKvZp" crossorigin="anonymous"></script>