ArcObjects Library Reference (NetworkAnalyst)  

NARouteSolver CoClass

Performs shortest path and tour analysis.

Product Availability

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

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
IClone (esriSystem) Provides access to members that control cloning of objects.
INARouteSolver Provides access to the route solver.
INARouteSolver2 Provides access to the route solver.
INASolver Provides access to the common interface for all network solvers.
INASolverForwardStar Creates a network dataset forward star which honors the current solver settings as well as any barriers.
INASolverOutputGeneralization Provides access to generalization parameters used on solver output.
INASolverSettings Provides access to settings common to all solvers.
INASolverSettings2 Provides access to settings common to all solvers.
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
IPersistStream (esriSystem)
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
IXMLSerialize (esriSystem) Provides access to members that XML serialize and deserialize an object to/from XML.

Remarks

NARouteSolver is a Network Analyst solver that computes the shortest path between a set of input stops. It can also be used to reorder the stop sequence, i.e., solve the traveling salesman problem. The NARouteSolver can also honor time windows on stops, and it has options to preserve the start and end stop while optimizing their sequences. It can generate a line feature class of the shortest path found. The NARouteSolver honors all of the settings of the INASolverSettings interface.