ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Exercise 2: Finding a route using restrictions and stops reordering

Complexity:
Beginner
Data Requirement:
Data and Maps for ArcGIS
Data Path:
ArcGIS Online World Routing Service
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 the ArcGIS Online routing service to perform trip planning. In this exercise, you'll explore some of the more advanced routing options available on 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.

  1. Add a basemap layer:
    1. Click the drop-down arrow next to the Add Data button Add Data and choose Add Basemap.
    2. On 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 on the Find Route dialog box.

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

    ArcGIS Online 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 ArcGIS World Geocoding 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 eight options: Kilometers, Miles, Minutes,TimeAt1KPH, TravelTime, TruckMinutes, TruckTravelTime and WalkTime. If Kilometers or Miles is selected, 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
  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. On the map, zoom in to New York City.
    New York City map
  10. Click the Stops tab on 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'll learn how to define network attribute restrictions.

  23. Click the Add Stop button.
  24. On 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 and choose 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.

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2020 Esri. | Privacy | Legal