Routing

Show a route between two points on a map using Esri's routing service REST API.

Routing

How it works

  1. Set your API Key in the RouteManager inspector window.
  2. While holding shift, left click on the map twice. The route will be shown between the two points. This sample is only setup to work with mouse and keyboard.
  3. This sample uses Esri's routing service's REST API to query the closest route along the road network between two points. This service uses routing operations associated with your API Key. You can learn more about API keys and Accounts in the Mapping APIs and location services guide.
  4. Raycasts are used to determine the elevation at each breadcrumb's position to account for elevation.

Tags

routing, raycast, REST API

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.