Directions (Network Analyst)

This ArcGIS 2.8 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Summary

Generates turn-by-turn directions from a network analysis layer with routes. The directions can be written to a file in text, XML, or HTML format. If you provide an appropriate stylesheet, the directions can be written to any other file format.

Usage

  • The tool solves the network analysis layer if it does not already have a valid result, so it is not required to solve the network analysis layer before generating directions.

Parameters

LabelExplanationData Type
Input Network Analysis Layer

Network analysis layer for which directions will be generated. Directions can be generated only for route, closest facility, and vehicle routing problem network analysis layers.

Network Analyst Layer
Output File Type

The format of the output directions file. This parameter is ignored if the stylesheet parameter has a value.

  • XML — The output directions file will be generated as an XML file. Apart from direction strings and the length and time information for the routes, the file will also contain information about the maneuver type and the turn angle for each direction.
  • Text — The output directions file will be generated as a simple TXT file containing the direction strings, the length and, optionally, the time information for the routes.
  • HTML —The output directions file will be generated as an HTML file containing the direction strings, the length and, optionally, the time information for the routes.
String
Output Directions File

The full path to the directions file that will be written.

If you provide a stylesheet in the Stylesheet parameter, make sure the file suffix for Output Directions File matches the file type your stylesheet produces.

File
Report Length in These Units

Specifies the linear units in which the length information will be reported in the directions file. For example, even though your impedance was in meters, you can show directions in miles.

  • Nautical miles —Nautical miles
  • Feet —Feet
  • Yards —Yards
  • Miles —Miles
  • Meters —Meters
  • Kilometers —Kilometers
String
Report Travel Time
(Optional)
  • Checked—Report travel times in the directions file. This is the default value.
  • Unchecked—Do not report travel times in the directions file.
Boolean
Time Attribute
(Optional)

The time-based cost attribute to provide travel times in the directions. The cost attribute must exist on the network dataset used by the input network analysis layer.

String
Language
(Optional)

Choose a language in which to generate driving directions.

The input for this parameter should be a two- or five-character language code representing one of the available languages for directions generation. In Python, you can retrieve a list of available language codes using the ListDirectionsLanguages function.

String
Style Name
(Optional)

Choose the name of the formatting style for the directions.

  • Printable driving directions —Printable turn-by-turn directions
  • Driving directions for a navigation device —Turn-by-turn directions designed for an in-vehicle navigation device
  • Walking directions —Turn-by-turn walking directions, which are designed for pedestrian routes
String
Stylesheet
(Optional)

The stylesheet for generating a formatted output file type (such as a PDF, Word, or HTML file). The suffix of the file in the output directions file parameter should match the file type that the stylesheet generates. The Directions tool overrides the output file type parameter if this parameter contains a value.

Tip:

If you want a head start on creating your own text and HTML stylesheets, copy and edit the stylesheets Network Analyst uses. You can find them in the following directory: <ArcGIS installation directory>\ArcGIS\ArcGIS Pro\Resources\NetworkAnalyst\Directions\Styles. The stylesheet is Dir2PHTML.xsl, and the text stylesheet is Dir2PlainText.xsl.

File

Derived Output

LabelExplanationData Type
Network Analysis Layer

The updated network analysis layer with routes.

Network Analyst Layer

Environments

Licensing information

  • Basic: Requires Network Analyst
  • Standard: Requires Network Analyst
  • Advanced: Requires Network Analyst

Related topics