Available with Network Analyst license.
- Adding
Network Analyst controls to ArcMap - Configuring a 9:00 a.m. service area layer
- Solving the 9:00 a.m. service area layer
- Configuring a 10:00 p.m. service area layer
- Solving the 10:00 p.m. service area layer
- Comparing the 9:00 a.m and 10:00 p.m. service areas
- Configuring an analysis to solve using live traffic (optional)
You can solve any network analysis layer using traffic data. In this exercise, you will solve a service area analysis for different times of the day using historical and, optionally, live traffic data. The service area polygons will change based on how much traffic there is.
To complete the section in this exercise that solves a service area given live-traffic conditions, you need to have a San Diego network dataset configured with live traffic. See Exercise 10 for instructions on how to create a network dataset that is enabled with live traffic.
Adding Network Analyst controls to ArcMap
- If you have Exercise11.mxd open in ArcMap, skip to step 6.
- Start ArcMap.
- On the ArcMap - Getting Started dialog box, click Existing Maps > Browse for more.
The Open ArcMap Document dialog box appears.
- Browse to C:\ArcGIS\ArcTutor\Network Analyst\Tutorial.
This is the default installation location for the tutorial data.
- Double-click Exercise11.mxd.
The map document opens in ArcMap.
- Enable the ArcGIS Network Analyst extension.
- Click Customize > Extensions.
The Extensions dialog box opens.
- Check Network Analyst.
- Click Close.
- Click Customize > Extensions.
- Click Customize > Toolbars > Network Analyst.
The Network Analyst toolbar is added to ArcMap.
- On the Network Analyst toolbar, click the Network Analyst window button .
If the Network Analyst toolbar is not displayed, you need to add it.
If the Network Analyst window is not displayed, you need to add it.
Configuring a 9:00 a.m. service area layer
- In the Table Of Contents window, check Service Area.
A preexisting service area analysis layer is displayed. It was created for you so that you wouldn't have to configure the symbology of a new analysis layer.
- Click the Analysis Layer Properties button on the Network Analyst window.
The Layer Properties dialog box opens.
- Click the Analysis Settings tab.
- Make sure that Impedance is set to use TravelTime (Minutes).
The TravelTime cost attribute uses edge traffic evaluators, which reference historical and live traffic data. By choosing this cost attribute and specifying a time of day and day of the week (or date), you can solve a traffic-based network analysis.
- Type 10 in the Default Breaks text box.
- Check Use Time.
- Enter 9 AM in the Time of Day text box.
- Choose Monday from the Day of Week drop-down list.
- For Direction, click Away From Facility.
The time and day specified in the Use Time property can indicate either the start time from the facility or the arrival time at the facility. In this example, the time and day indicate the start time because Away From Facility is chosen. If you chose Towards Facility instead, this meaning would change to indicate arrival time at the facility.
- Choose Not Allowed from the U-Turns at Junctions drop-down list.
- Uncheck Use Hierarchy.
- Leave Ignore Invalid Locations checked.
- Click OK.
Solving the 9:00 a.m. service area layer
- Click the Solve button on the Network Analyst toolbar.
The Network Analyst Messages window appears to inform you that some restrictions had their Restriction Usage parameter set to Avoid so they were treated as prohibit-restrictions. The service area solver doesn't prefer or avoid edges based on restrictions; it simply treats all avoid-restrictions as prohibit-restrictions and ignores all prefer-restrictions. If you don't want this warning message to appear, either uncheck all avoid and prefer restrictions on the Attribute Parameters tab of the Layer Properties dialog box or check Do not show this dialog again, which is at the bottom of the Network Analyst Messages dialog box.
- Click Close.
Network Analyst Messages closes.
The service area polygons appear on the map and on the Network Analyst window. If they don't appear, click the Refresh button on the horizontal scroll bar of the map.
This service area was generated using historical traffic data.
Configuring a 10:00 p.m. service area layer
Next, you will configure and solve a service area layer based on traffic at 10:00 p.m. on Monday.
- Rename the service area layer Service Area 9 AM.
- Click Service Area in the Table Of Contents window.
- Press F2.
- Type Service Area 9 AM and press ENTER.
- Make a duplicate of the service area layer and rename it Service Area 10 PM.
- In the Table Of Contents window, right-click Service Area 9 AM and choose Copy.
- In the Table Of Contents window, right-click Layers and choose Paste Layer(s).
- Press F2.
- Type Service Area 10 PM and press ENTER.
- From the drop-down list on the Network Analyst window, choose Service Area 10 PM.
- Click the Analysis Layer Properties button on the Network Analyst window.
The Layer Properties dialog box opens.
- Click the Analysis Settings tab.
- Type 10 PM in the Time of Day text box.
- Click OK.
Solving the 10:00 p.m. service area layer
- Click the Solve button on the Network Analyst toolbar.
The Network Analyst Messages window may appear, depending on whether you previously checked Do not show this dialog again. If it appears, click Close.
The updated service area polygon appears on the map and on the Network Analyst window. If it doesn't appear, click the Refresh button on the horizontal scroll bar of the map.
Comparing the 9:00 a.m and 10:00 p.m. service areas
Despite the color schemes for the two layers being the same, the transparency settings highlight the service areas' differences. Notice that the service area generated for 10:00 p.m. covers a larger area than the one for 9:00 a.m., when traffic is slower. Clearly, the time of day and date can be important factors in the results of the analysis. You might want to gain a better understanding of how the service area of a facility changes over a period of time. You could do this by solving the same analysis repeatedly, but with various start-time values.
Solving analyses using current traffic conditions may be especially important in some cases. For instance, if the facilities of a service area analysis represent patrolling emergency vehicles, you might want to know what areas can't be reached within 10 minutes from now for possible repositioning.
Configuring an analysis to solve using live traffic (optional)
When solving an analysis using a traffic-enabled network attribute, Network Analyst first queries edges for live-traffic cost data. If live data isn't available, it references historical traffic. Finally, if historical traffic is unavailable, Network Analyst retrieves cost data from static cost attributes, which can be specified for weekends or weekdays. This process happens on an edge-by-edge basis so that your solutions are generated from the most accurate data available.
So as long as your network dataset supports live traffic and has access to current DTF files, solving an analysis using live traffic is a matter of setting the network analysis layer's time properties to the current time and date and its impedance attribute to a traffic enabled cost attribute. These properties are in the Layer Properties dialog box, on the Analysis Settings tab.
The next steps show you how to solve network analysis layers using live traffic data.
- Make a duplicate of one of the service area layers and rename it Live Service Area.
- In the Table Of Contents window, right-click Service Area 10 PM and choose Copy.
- In the Table Of Contents window, right-click Layers and choose Paste Layer(s).
- Press F2.
- Type Live Service Area and press ENTER.
- In the Table Of Contents window, uncheck Service Area 9 AM and Service Area 10 PM.
- The service area layer was created on a network dataset that isn't configured with live traffic. Follow the substeps below to point the service area layer to the live-traffic-enabled network dataset you created in Exercise 10.
- In the Table Of Contents window, right-click Live Service Area and choose Properties.
- In the Layer Properties window, click the Source tab, then click Set Network Dataset.
- In the Network Dataset window, browse to the network dataset you created in Exercise 10 and double-click it. If you installed the tutorial data in the default location, the network dataset would be at C:\ArcGIS\ArcTutor\Network Analyst\Tutorial\Exercise10\SanDiego.gdb\Transportation\SanDiego_ND.
- Click OK to close the Layer Properties dialog box.
- To be sure the facility's network location fields reference the right place, right-click Facilities in the Network Analyst window and click Recalculate Location Fields > All.
This service area layer is now associated with the network dataset you just specified, which is live-traffic enabled if you completed Exercise 10.
- If you are outside the Pacific time zone of the United States and Canada, you will need to know the time offset from your time zone to Pacific time. If you don't know the time offset, follow the steps below to determine it.
- Click the Time Slider button .
The Time Slider dialog box opens.
- If the controls on the slider are unavailable, click the Enable Time On Map button to enable them.
- Click the Options button.
The Time Slider Options dialog box opens.
- Click the Time Display tab.
- Choose the time zone you are in from the Time zone drop-down list.
- Check Adjust for daylight saving time if you honor daylight saving time.
- Click OK.
- Click the Live Mode button , which sets the time slider to the current time and date within the slider's time step interval.
- Note the date and time displayed on the Time Slider dialog box.
- Click the Options button.
- From the Time zone drop-down list, choose (UTC-08:00) Pacific Time (US & Canada) and check Adjust for daylight saving time.
- Click OK.
- Click the Live Mode button .
- Again, note the date and time displayed on the Time Slider dialog box.
- Calculate the time offset from the two times you noted.
- Click the Disable Time On Map button and close the Time Slider dialog box.
- Click the Time Slider button .
- From the drop-down list on the Network Analyst window, choose Live Service Area.
- Click the Analysis Layer Properties button on the Network Analyst window.
The Layer Properties dialog box opens.
- Click the Analysis Settings tab.
- Using Pacific time (U.S.), type the current time into the Time of Day text box.
- Choose Today from the Day of Week drop-down list.
- Click OK.
- Click the Solve button on the Network Analyst toolbar.
When you set a start (or end) time for a network analysis layer, the time refers to the local time zone. Each edge in a network dataset is associated with a time zone through a time-zone network attribute. A network location, such as a facility in a service area analysis, automatically detects the time zone from the time-zone network attribute of the edge that it is located on. If you have two facilities in different time zones that are offset by one hour, and you specify 8:00 a.m. as the start time for the analysis, the facilities' individual service areas are calculated for 8:00 a.m. local time. This means the start times are one hour apart in actuality. (Note that certain analysis settings can cause an analysis that spans multiple time zones to fail. These limitations are outlined in each solver's help topic.)
The updated service area polygon appears on the map and on the Network Analyst window. The results are based on live traffic data fed through a service to which you subscribe.
You can use similar steps to perform a time-dependent network analysis for any of the Network Analyst solvers.