Exercise 2: Finding a route with an ArcGIS Online routing service

Complexity: Beginner Data Requirement: Data and Maps for ArcGIS Data Path: Esri Data & Maps StreetMap North America media Goal: The goal of this tutorial is to show how the Find Route dialog box can be used to calculate routes in ArcMap.

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 can use the same map document for this exercise as in Exercise 1. Alternatively, create a new map document and add a basemap layer from ArcGIS Online if you don't have the map document or other data from Exercise 1. Note that the route may not exactly match the streets in either map, since it is possible that the routing service is based on a different dataset than the map.

Steps:
  1. If the map document from Exercise 1 isn't available, start ArcMap, then add a basemap layer as indicated in the substeps below.
    1. Click the drop-down arrow next to the Add Data button Add Data and choose Add Basemap.
    2. In the Add Basemap dialog box, double-click a basemap, such as Streets.
  2. In ArcMap, sign in to ArcGIS Online using the user name and password of your organizational account.
    1. Click File > Sign In on the main menu and enter your credentials.
  3. Click the Options tab in the Find Route dialog box.

    The ArcGIS Online World Route Service is automatically selected in the Routing Service drop-down list.

    Routing Service
  4. Note that an ArcGIS Online organizational subscription is required to use the World Route Service.

    See the ArcGIS Online Features page to learn more about ArcGIS Online subscriptions.

  5. Check the Name locations added with tool using nearest address check box. This enables reverse geocoding when using the Add Stop by Click tool Add Stop to add stops.
  6. Make sure the World Geocode Service is selected in the Choose an address locator drop-down list.
    Choose online locator
  7. In the Route Preferences section of the Options tab, click the Impedance drop-down arrow. There are four options: Kilometers, Miles, Minutes, and TravelTime. If Kilometers or Miles is selected, then the route with the shortest distance in units of kilometers or miles will be calculated; if Minutes is selected, the route with the shortest time will be calculated; if TravelTime is selected, and a trip start time is set, the route with the shortest time based on historical traffic conditions at that time will be calculated. Make sure TravelTime is selected.
    Impedance drop-down list (there must be a noun here; drop-down is a compound adjective, not a noun)
  8. Check the Use trip start check box. Set the time to 8:00 AM and the date to today's date.
    Route Preferences settings
  9. In the map, zoom in to New York City.
    New York City map
  10. Click the Stops tab in the Find Route dialog box. Click the Add Stop by Click tool Add Stop.
  11. 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.
    New York City map stops
  12. Click the Find Route button.
  13. Click the Zoom to Route button Zoom to Route on the Directions tab.
    New York City route map
  14. Examine the directions and make a note of the driving distance and time.
    New York City drive time
  15. Click the Options tab.
  16. 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.
    Reorder stops
  17. Click the Find Route button.
  18. Examine the directions and note the driving distance and time. They will be different from the original route.
    New York City drive time 2
  19. Click the Options tab.
  20. Change the trip start time to 11:00 PM and click the Find Route button.
  21. Examine the directions and note the driving distance and time. The drive time is significantly less than the previous route. This illustrates the effect of traffic on a route.
    New York City drive time 3
  22. Click the Stops tab and click the Remove All button.

    Now you will learn how to define network attribute restrictions.

  23. Click the Add Stop button.
  24. In the Find dialog box, click the Choose a locator drop-down arrow and select World Geocode Service (ArcGIS Online).
  25. Type the following address and click Find: 451 6th St NE, Coupeville, WA 98239.
  26. Right-click the top candidate and click Add as Stop to Find Route.
  27. Type the following address in the appropriate address fields and click Find: 745 Washington St, Port Townsend, WA 98368.
  28. Right-click the top candidate in the list and click Add as Stop to Find Route.
  29. Click Cancel in the Find dialog box to close it.
  30. Click the Find Route button.
  31. Click the Zoom to Route button Zoom to Route on the Directions tab. Notice that the route includes passage on a vehicle ferry.
    WA ferry route
  32. Click the Options tab.
  33. Uncheck the Reorder stops to find optimal route and Use trip start check boxes.
  34. Click the Restrictions button.
    Restrictions button
  35. Check the Avoid Ferries check box to enable the ferries restriction.
  36. Click the preference for the Avoid Ferries restriction to enable the preference drop-down list then select Prohibited. Click OK.
  37. Click the Find Route button.
  38. Click the Zoom to Route button Zoom to Route on the Directions tab. Notice that the route now travels all the way around Puget Sound to avoid the ferry.
    WA route no ferry

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 how setting restrictions can affect the output route and driving directions.

3/3/2014