Setting directions
Directions are turn-by-turn instructions on how to navigate a route. They can be created for any route that is generated from a network analysis as long as the network dataset supports them. The minimum requirements for a network dataset to support directions are as follows:
- A length attribute with length units
- At least one edge source
- At least one text field on the edge source
The directions generated when a route is computed are customizable at the network dataset level. This means that the street names used for reporting directions, shields, and boundary information are stored with the network dataset schema. These settings can be modified to customize the directions.
You can change these settings from the Network Directions Properties dialog box, which is accessed by clicking the Directions button in either the New Network Dataset wizard or the Directions tab of the Network Dataset Properties dialog box.
Network Directions Properties dialog box
General tab
The units used to report directions and the fields used to identify streets can be modified on the General tab, which is shown in the graphic below.
Directions Settings frame
Display Length Units is where you choose the units used to report the length. For example, if miles are chosen, all directions generated for this network dataset would be reported in miles. ArcGIS Network Analyst supports the following five length units: feet, kilometers, meters, miles, and yards.
Length Attribute is used to calculate the length of each segment of the route for which the directions are reported. Any cost attribute can be selected as the length attribute. ArcGIS automatically searches through the network attributes and tries to assign the relevant cost attribute.
Time Attribute is used to calculate the time taken to traverse each segment during the reporting of directions.
Signpost Feature Class and Signpost Streets Table provide the text of the highway signs that a driver would typically see when traveling along the route. This highway sign text usually includes the exit number, name of the road, and the destination where the road leads. This text can be incorporated into the directions text to facilitate navigation—for example, "Take ramp and go on US-59 N toward Springfield."
Learn more about the signpost feature class and streets table
Street Name Fields frame
Street name fields can be set up for each edge source in the network. These are the names that are used to report directions. For instance, the name of the street (First Ave) is obtained from this field to report directions, such as, "Turn left onto First Ave." The Name column displays a drop-down list of text fields for the source, from which a street name field can be chosen.
Some feature classes have directional modifiers (N or S) and street types (Ave, St, or Dr) in separate fields. In such cases, the entire street name resides in the three different fields.
Some feature classes have alternate names of streets listed in different fields. These can be set up by increasing the Number of Alternate Names value and setting up the Name field along with the optional Prefix and Suffix fields.
Shields tab
Shields are signs that display highway numbers. Some edge sources have shield information (for example, I-15, CA-72, or OH-10) that can be used to report directions. For instance, if you have a freeway source that has interstates and state highways, the road shield descriptions can be specified for this source. For example, the Santa Ana Freeway has a shield description of I-5. Both the street name field (which contains Santa Ana Freeway) and the road description field (I-5) can be used to report directions.
Some sources have road shield descriptions in one field (I-10 or CA-63). In such a case, choose Single Field and choose the field containing road shield descriptions.
A source can also have shield descriptions in two fields—one is the shield type (containing values such as I, CA, or TN) and the other is the number (5 or 43). Together, they give the complete road shield description. In such a case, choose Pair of Fields and set Type Field and Number Field.
If your data splits the type and number into a pair of fields, the shield type (I, CA, or TN) can be associated with shield descriptions (Interstate, California, or Tennessee). This would result in directions such as "Take Interstate 10 for 155 miles."
Road Detail tab
The Road Detail tab is split into two frames: Network Attribute Mappings and Field Mappings.
Network Attribute Mappings frame
Road Class Attribute provides specific directions for different types of roads. It is a descriptor attribute of type integer whose values are as follows:
Road class value |
Type of road class |
Example |
---|---|---|
1 |
Local roads |
Turn left on Main St. |
2 |
Highways |
Go east on I-55. |
3 |
Ramps |
Take ramp and go on US-59 N. |
4 |
Ferries |
Take Lake Expy ferry. |
5 |
Roundabouts |
Take roundabout and proceed south on Main St. |
Currently, Road Class Attribute is the only network attribute mapping you can make.
Field Mappings frame
Some edge sources have an administrative area field that denotes what region each edge is in. For instance, a highway source could have a state field that denotes what state the highway segment is in. This is useful in generating directions such as "Enter California" when crossing the state line.
You can choose any text field from the selected source feature class in the From-To Field or To-From Field columns. While generating directions, any change in the value of the administrative area value is reported. This means that if a route starts in Nevada and continues south on I-15, when it reaches California, the Directions window will show the value Enter California.