/arcgis-rest-js-routing-video

Courtney Yatteau shows how to find the directions between two points by creating a simple routing application using the ArcGIS REST JS API.

Primary LanguageJavaScript

ArcGIS REST JS: Find a Route and Directions

Table of Contents

Description

This is a simple routing application that uses the ArcGIS REST JS API. Enter two points (starting and ending stops) to see the directions and mile lengths of each direction step.

Live Demo Clip

CodePen Playground

  • Test out the application! Be sure to follow directions under "Other Requirements" to get an API Key.

Required Dependencies

  • npm install @esri/arcgis-rest-request. Find API Reference info here.
  • npm install @esri/arcgis-rest-routing. Find API Reference info here.

Other Requirements