Skip to content

Routing

Routing is the process of finding the best path from an origin to a destination in a street network. To perform routing with MapLibre GL JS, use the ArcGIS REST JS library to access the ArcGIS Routing service.

Steps
  1. Use the MapLibre ArcGIS plugin to display a map.
  2. Reference the ArcGIS REST JS request and routing packages.
  3. Perform a routing operation.
  4. Display the results in the map.

Routes and directions

Routing finds the best path between locations and considers factors such as speed limits, road conditions, stops, time of day, and traffic. It can also generate driving directions.

Find a route and directions

Learn how to get a route and directions using the solveRoute method in ArcGIS REST JS.

Go to tutorial

Service areas

Service areas show the distance you can travel on a road network from a location within a time or distance. The areas calculated consider factors such as travel time, distance, and traffic.

Find service areas

Learn how to create service areas for three distances from a location using the serviceArea method in ArcGIS REST JS.

Go to tutorial

More resources

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