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


ISMRouter.Solve Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (DataSourcesFile)  

ISMRouter.Solve Method

Calculates the route using the current settings of the router object.

[Visual Basic .NET]
Public Function Solve ( _
    ByVal pIStops As SMStopsCollection, _
    ByVal pITracker As ISMBreakTracker _
) As SMDirections
[C#]
public SMDirections Solve (
    SMStopsCollection pIStops,
    ISMBreakTracker pITracker
);
[C++]
HRESULT Solve(
  ISMStopsCollection* pIStops,
  ISMBreakTracker* pITracker
);
[C++]

Parameters pIStops [in]
pIStops is a parameter of type ISMStopsCollection* pITracker [in]
pITracker is a parameter of type ISMBreakTracker*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Builds the route using all the current settings of the router object.

Remarks

The method returns the SMDirections object that contains the resulting path and driving directions texts. If no route is found then the method returns Nothing.


You need to pass an implementation of ISMBreakTracker interface as pBreakTracker parameter's value if you want to break route finding process according to some condition. If you don't need such functionality you can pass Nothing as the parameter's value.

See Also

ISMRouter Interface