ArcObjects Library Reference (NetworkAnalyst)  

INAStreetDirectionsContainer Interface

Provides access to a container for driving directions.

Product Availability

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


Read-only property Directions The route directions by index.
Read-only property DirectionsCount The number of routes for the generated directions.
Method SaveAsXML Saves the directions to a file in XML format.


The INAStreetDirectionsContainer interface provides access to the directions contents and a method to save the contents in a file in XML format.


For example:

INAStreetDirectionsAgent streetAgent = naContext.Agents.get_ItemByName("StreetDirectionsAgent") as INAStreetDirectionsAgent;
INAStreetDirectionsContainer directionsContainer = streetAgent.DirectionsContainer;
[Visual Basic .NET]

For example:

Dim streetAgent As INAStreetDirectionsAgent = naContext.Agents.ItemByName("StreetDirectionsAgent")
Dim directionsContainer As INAStreetDirectionsContainer = streetAgent.DirectionsContainer

.NET Related Topics

How to generate directions