Exercise 2: Finding a route with an ArcGIS Online routing service
In Exercise 1, you learned how to use a file-based network dataset to calculate a route. In this exercise, you will learn how to use an ArcGIS Online routing service to calculate a route, and you will explore some of the more advanced routing options available in the Find Route dialog box.
You will use the same map document for this exercise as in Exercise 1. Note that the route may not exactly match the streets in the map, since the routing service is based on a different dataset than the map.
- Click the Options tab in the Find Route dialog box.
-
Click the Routing Service drop-down arrow and select North American Routing Service (ArcGIS Online). Note that there is also a European routing service available.
- Check the Name locations added with tool using nearest address check box. This enables reverse geocoding when using the Add Stop by Click tool to add stops.
-
Click the Choose an address locator drop-down arrow and select North America Geocode Service (ArcGIS Online). Note that there is also a European geocoding service available.
-
In the Route Preferences section of the Options tab, click the Impedance drop-down arrow. There are two choices—Length and Time. If Length is selected, then the route with the shortest distance will be calculated. If Time is selected, the route with the shortest time will be calculated. Make sure Time is selected.
- Uncheck the Use trip start check box.
-
In the map, zoom in to New York City.
- Click the Stops tab in the Find Route dialog box. Click the Add Stop by Click tool .
-
Click the map to add four or five stops at various locations. Note that the stops are reverse-geocoded and named with their address in the Stops list.
- Click the Find Route button.
-
Click the Zoom to Route button on the Directions tab.
-
Examine the directions and make a note of the driving distance and time.
- Click the Options tab.
-
Check the Reorder stops to find optimal route check box. This will cause the stops to be reordered so that the most efficient route is calculated.
- Click the Find Route button.
-
Examine the directions and note the driving distance and time. They will be different from the original route.
-
Click the Stops tab and click the Remove All button.
Now you will learn how to define network attribute restrictions and modify road speeds.
- Click the Add Stop button.
- In the Find dialog box, click the Choose a locator drop-down arrow and select North America Geocode Service (ArcGIS Online).
- Enter the following address in the appropriate address fields and click Find: 451 6th St NE, Coupeville, WA 98239.
- Right-click the top candidate and click Add as Stop to Find Route.
- Enter the following address in the appropriate address fields and click Find: 745 Washington St, Port Townsend, WA 98368.
- Right-click the top candidate in the list and click Add as Stop to Find Route.
- Click Cancel in the Find dialog box to close it.
- Click the Find Route button.
-
Click the Zoom to Route button on the Directions tab. Notice that the route includes passage on a vehicle ferry.
- Click the Options tab.
- Uncheck the Reorder stops to find optimal route check box.
-
Click the Restrictions button.
-
Check the Avoid vehicular ferries check box to enable the vehicular ferries restriction, then click OK.
- Click the Find Route button.
-
Click the Zoom to Route button on the Directions tab. Notice that the route now travels all the way around Puget Sound to avoid the ferry.
-
Note the Driving time.
- Click the Options tab.
-
Click the Speeds button.
-
Double-click the value 65.00. Change it to 80, press Enter, then click OK. This increases the speed of all road segments with a 65 MPH value to 80 MPH.
- Click Find Route.
-
Note the new Driving time; it should be less than the original time.
In this exercise, you learned how to use the default ArcGIS Online geocoding and routing services to reverse-geocode stop addresses and calculate routes in the Find Route dialog box. You also learned how to reorder stops to generate the most efficient route and saw how setting restrictions and modifying road speeds can affect the output route and driving directions.