This document is archived and information here might be outdated. Recommended version. |
Provides access to the properties of a traversal result.
Name | Description | |
---|---|---|
AddSource | Add a network traversal source. | |
Create | Makes a new traversal result. | |
HasGeometry | Indicates if the result has geometry. | |
Source | The network traversal source by index. | |
SourceByID | The network traversal source by ID. | |
SourceByName | The network traversal source by name. | |
SourceCount | The number of network sources. | |
SpatialReference | The spatial reference of the result. |
Classes | Description |
---|---|
NATraversalResult | Contains the result of a network analysis. |
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.