Plan a Route from the Map
Let a field rep pick tomorrow's accounts on an Avonni Map in a screen flow, optimize the stop order, calculate the route and start navigation.
A field rep in San Francisco has five accounts to visit tomorrow. In a screen flow, she clicks them on the map, lets the route panel put them in the best driving order, checks the arrival time at each stop, then opens the first one in Google Maps or Waze. The first steps set up the map, the rest follow what the rep does on the screen.

Before you start
Routing is enabled for the org, once, by an administrator: see Enable Map Routing. Until then, the Route group of the Map shows a notice instead of its settings.
A screen flow with an Avonni Map that shows your Accounts, with Type set to Leaflet (routing does not exist on Google Maps). See Map for the data source.
Arrival times at each stop need Mapbox as the routing provider. With OpenRouteService the route is drawn and timed leg by leg, without departure or arrival times.
Steps
Turn on the route panel
Open the Route group:
Turn on Show Route Panel. A Route button appears on the map, and each marker popup gets an Add Stop button.
Turn on Opened by Default, so clicks on markers add stops as soon as the screen opens.
Leave Position on Right. Turn on Display Overlaid on the Map if the screen is narrow.
Leave Disable Multi-Stop Selection off, so the rep keeps the rectangle and lasso tools that add several stops at once.
Optimize the order and set the day
Click Optimize: the stops are reordered for the shortest driving time. The starting point, or the first stop when there is none, stays first.
Open Settings to set the day: Visit duration (minutes), Lunch start and Lunch end, End of day, and with Mapbox a Timing such as Leave at 8:00 a.m. tomorrow. The same panel can avoid ferries, highways or tolls.
Drag a stop to move it by hand. Undo, Redo and Clear sit at the top of the panel.
Calculate the route
Click Calculate route. The map draws the driving route, and the panel shows the departure, the arrival and the total time of the day, visits and lunch included. A stop reached after End of day turns orange.
To take the plan along, click the download button beside Calculate route: it saves the route as a CSV file with a Google Maps and a Waze link for each stop.
The Map reference holds every route setting, the CSV columns, and how Optimize chooses the order on each provider.
Troubleshooting
Related tutorials
Add Search and Filters to a Map: narrow the map to the right accounts before picking stops.
Interactive Map Filtering: count the accounts and revenue in the area the rep is looking at.
Drag a Pin to Update a Location: fix a misplaced account before routing to it.
Was this helpful?

