|
inlinestatic |
The function computes route based on taken itinerary. If Drive has valid GPS signal it starts navigation.
Error | Additional error information returned from Drive. |
strItineraryName | Name of the itinerary which will be used to compute route. |
MaxTime | Maximum time (in milliseconds) function can take. If MaxTime=0 function execution is not time limited. |
bShowApplication | Flag determining whether Drive should be brought to foreground automatically. true - Drive will be brought to foreground. false - Drive will stay in background. |
Flags | Parameter Flags determines route computing properties. Possible values are enumerated in: NavigationParams. |
Example
SErorr error; string strItineraryName = "MyItin"; int nFlags = NavigationParams.NpMessageAvoidTollRoadsUnable; bool bShowApplication = true; int nMaxTime = 10000; CApplicationAPI.SetRoute(error, strItineraryName, nFlags, bShowApplication, nMaxTime);
This code brings drive to foreground and computes route according to itinerary MyItin. If computed route contains toll roads Drive ask user to avoid them. If not toll roads can be avoided Drive notify user about this.
References SError.SizeOf().