This document is archived and information here might be outdated. Recommended version. |
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*
Builds the route using all the current settings of the router object.
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.