ArcObjects Library Reference  (NetworkAnalyst)    

NATraversalResult CoClass

Contains the result of a network analysis.

Product Availability

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

Interfaces

Interfaces Description
INAResult Provides access to the results of an analysis.
INAResult2 Provides access to the results of an analysis.
INATraversalResult Provides access to the properties of a traversal result.
INATraversalResultEdit Provides access to the editable properties of a traversal result.
INATraversalResultQuery Provides access to the results of an analysis.
IPersistStream (esriSystem)

Remarks

The NATraversalResult object holds the results of the nework analysis.

The NATraversalResult is created by most of the solvers as part of the output for network analysis.  However, this is not the case for the ODCostMatrixSolver which does not output an NATraversalResult

The contents of an NATraversalResult are not saved with the NALayer.  If a map document holding an NALayer is opened, things that need the NATraversalResult contents to work (like the NAStreetDirectionsAgent) will fail until the analysis is re-solved and a traversal result is populated.

The NATraversalResult holds 3 feature classes representing the junctions, edges, and turns traversed.  There are methods on this object to query these feature classes and map these features back to the source features in the network dataset.

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 it’s feature class in the NetworkDataset or NAContext.  There are several methods that return an NATraversalResultSource object with this information.

 


Feedback Send feedback on this page