|
inlinestatic |
The function adds new waypoint to taken itinerary.
Error | Additional error information returned from Drive. |
strItineraryName | Name of itinerary where new item will be added. |
StopOffPoint | Reference to instance of SStopOffPoint class containing informations about waypoint to be added to itinerary. |
nIndex | Index of position where new waypoint will be inserted. |
MaxTime | Maximum time (in milliseconds) function can take. If MaxTime=0 function execution is not time limited. |
If nIndex is lower than 0 or highier than number of items in itinerary the waypoint will be added at the end of list.
It is necessary to set Location, nPointType and Caption members of StopOffPoint (see SStopOffPoint class)..
See Coordinates conversion section in TROUBLESHOOTING page.
Possible error codes returned from Drive are:
This code adds new waypoint to MyItin itinerary.
Waypoint name is set to MyWaypoint and location is [123456, 543210] taken in meters. Type of waypoint is Finish and was not visited yet.
After AddEntryToItinerary execution stopOffPoint.GetAddress function returns waypoint address in "ISO, City, Street, house number" format.
References SStopOffPoint.SizeOf(), and SError.SizeOf().