|Top Previous Next|
This function will set a destination in the navigation device.
When a destination is set, a small notification is presented.
The position of the destination must be given in the semicircle format.
Up to 20 destinations can be defined.
A semicircle is a unit of location-based measurement on an arc.
An arc of 180 degrees is made up of many semicircle units; 2^31 semicircles to be exact.
Semicircles that correspond to North latitudes and East longitudes are indicated with positive values;
semicircles that correspond to South latitudes and West longitudes are indicated with negative values.
The following formulas show how to convert between degrees and semicircles:
degrees = semicircles * (180 / 2^31)
semicircles = degrees * (2^31 / 180)
On some older models/firmware versions, and if a destination with the same ID already exists, the position and text will be updated. If the active destination is updated, the navigation device will recalculate the route to the new location.
Updating a destination does not change the status.
ID : INT
Unique ID to identify the destination when status is received.
Note: the ID of -1 is reserved and will result in an error.
latitude : DINT
The latitude of the position.
longitude : DINT
The longitude of the position.
text : STRING
A text comment to identify the destination in the route. Max. 199 characters.
FUNCTION navStopSet : INT;