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 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

Network Directions

  • Summary
  • Properties
  • Code sample

Summary

The Network Directions object for the network dataset provides information about directions settings at the network dataset level, such as the output length units or length attribute, that are used to generate directions.

Properties

PropertyExplanationData Type
attributeMappings
(Read Only)

Returns a list of Network Directions Attribute Mapping objects for this source. If attribute mappings are not defined for this network, the attributeMappings property will raise an exception.

Object
defaultOutputLengthUnits
(Read Only)

The default length units that will be used for reporting distances in driving directions.

String
lengthAttributeName
(Read Only)

The name of the network attribute to be used for reporting travel distances.

String
roadClassAttributeName
(Read Only)

The name of the network attribute to be used for road classification.

String
roadSplitsTableName
(Read Only)

The name of the table containing road splits.

String
signpostFeatureClassName
(Read Only)

The name of the feature class containing the signposts.

String
signpostStreetsTableName
(Read Only)

The name of the indexed table containing signpost street references.

String
timeAttributeName
(Read Only)

The name of the network attribute to be used for reporting travel time.

String

Code sample

Network Directions Properties example

Display a summary of the directions information for the network dataset.

# Name: NDSDirectionProperties_ex01.py
# Description: Print direction setting for the network dataset.

import arcpy
import sys

# Set the workspace
arcpy.env.workspace = "C:/Data/SanFrancisco.gdb/Transportation"

# Create Describe object for the network dataset
desc = arcpy.Describe("Streets_ND")

#Get the direction object
if desc.supportsDirections:
    direction = desc.directions
else:
    #If the directions are not set for the network dataset, exit 
    print "No direction information"
    sys.exit() 

print "Direction Information ----" 
print "Length attribute name: " , direction.lengthAttributeName 
print "Time attribute name: " , direction.timeAttributeName 
print "Road Class attribute name: " , direction.roadClassAttributeName 
print "Default Output Length Units: " , direction.defaultOutputLengthUnits 
print "Signpost Feature Class: " , direction.signPostFeatureClassName 
print "Signpost Streets Table: " , direction.signpostStreetsTableName

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

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