|
static |
The function computes route based on taken itinerary. If Drive has valid GPS signal it starts navigation.
lpError | Additional error information returned from Drive. |
lpszItineraryName | Name of the itinerary which will be used to compute route. |
dwMaxTime | Maximum time (in milliseconds) function can take. If dwMaxTime=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. |
dwFlags | Parameter Flags determines route computing properties. Possible values are enumerated in: NavigationParams. |
If Drive does not have valid GPS signal first waypoit in itinerary must be marked as START.
Parameter dwFlags determines route computing properties.
For example it is possible to ask user to avoid toll roads or (later) notify user that not all toll roads can be avoided.
To join more flags together use logical or operator (|).
For more informations see NavigationParams enum.
If waypoint is in restricted area , the function will return lX,lY coordinates of closest reached point in error description (truck attributes enabled)
Itinerary used to compute route must contain item of type "finish". If you do not have valid GPS position itinerary must contain also item of type "start".
Possible error codes returned from Drive are: