NearestLink

Top  Previous  Next

This function will locate which link you are driving on, when both GPS coordinate and bearing (0-359) are known.

0 = North, 90 = East, 180 = South, 270 = West.

 

This is especially useful, when there are many intersecting roads or two parallel roads.

 

Specify a search radius, such as 0.025 km, since it uses SelectLinks internally.

 

The result is returned as a list of possible matches, with the best guess at the top of the list.

 

Syntax: function NearestLink(P: TFloatPoint; Bearing, SearchRadius: double): TGPSMatchList;

 

See also NearestLocation