This document is archived and information here might be outdated.  Recommended version.


INAStreetDirectionsAgent2 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > NetworkAnalyst > ESRI.ArcGIS.NetworkAnalyst > Interfaces > IN > INAStreetDirectionsAgent2 Interface
ArcGIS Developer Help

INAStreetDirectionsAgent2 Interface

Provides access to the Directions Agent.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Members

Name Description
Read/write property AutoShowDirections Indicates if directions are automatically updated and shown when a route changes.
Read-only property DirectionsContainer The container for the directions.
Read/write property DisplayTime Indicates if time is displayed in directions.
Method Execute Constructs the directions.
Read/write property Language Language to use when generating directions.
Read/write property LengthUnits The length units.
Read/write property TimeAttributeName The network attribute for time calculation.

Inherited Interfaces

Interfaces Description
INAStreetDirectionsAgent Provides access to the Directions Agent.

Classes that implement INAStreetDirectionsAgent2

Classes Description
NAStreetDirectionsAgent Generates driving directions for network analysis results.

Remarks

The INAStreetDirectionsAgent interface allows you to specify the properties for generating directions.

Length units is a required field for directions.

You get the NAStreetDirectionsAgent from the NAContext's list of agents using the name "StreetDirectionsAgent".  For example:

Set pStreetAgent = NAContext.Agents.ItemByName("StreetDirectionsAgent")

Specifying the language to generate directions in, requires that you know which languages are supported by your directions configuration files.