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.
- Use the MapLibre ArcGIS plugin to display a map.
- Reference the ArcGIS REST JS
request
androuting
packages. - Perform a routing operation.
- 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 solve
method in ArcGIS REST JS.
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 service
method in ArcGIS REST JS.