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


INATraversalResult Interface (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INATraversalResult Interface

Provides access to the properties of a traversal result.

Product Availability

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

Members

Description
Method AddSource Add a network traversal source.
Method Create Makes a new traversal result.
Read-only property HasGeometry Indicates if the result has geometry.
Read-only property Source The network traversal source by index.
Read-only property SourceByID The network traversal source by ID.
Read-only property SourceByName The network traversal source by name.
Read-only property SourceCount The number of network sources.
Read-only property SpatialReference The spatial reference of the result.

CoClasses that implement INATraversalResult

CoClasses and Classes Description
NATraversalResult Contains the result of a network analysis.

Remarks

The INATraversalResult interface provides methods for accessing the sources referenced by the traversal result.  It also allows people writing custom solvers to create the schema of a traversal result.

There is a level of indirection in the NATraversalResult.  Each element in the NATraversalResult represents a network feature in the source network that was traversed, a feature in an NAClass (stop), or can be unrelated to any external feature (where multiple stops are located at the same place and the edges between the stops are virtual).  Due to this, you need to use the methods in INATraversalResult to determine the mapping between the traversal source and its feature class in the NetworkDataset or NAContext.  There are several methods that return an NATraversalResultSource object with this information.

The Create and AddSource methods are used during the creation of an NATraversalResult to create the junction, edge, and turn feature classes that comprise the traversal result as well as to add sources that providing the mapping back to feature classes in the NetworkDataset or NAContext.