TPOI

Top  Previous  Next

TPOI is used for "Points-Of-Interest" that can be included in driving directions. Name and location fields should be self-explanatory, while approach parameter can be used, if a POI can only be seen when driving in one direction.

 

If you know the coordinates of a POI, use TSpatialSearch.NearestLocation to get both location and side of road.

 

This table shows how to translate from side to approach, if we assume a POI is only visible in the same side of the road as the vehicle is moving:

Side

Right-hand driving

Left-hand driving

-1 (left)

apReverse

apForward

+1 (right)

apForward

apReverse

 

If a POI is visible when driving in both directions, just set Approach to apIgnore.

 

TPOI = record

 Name: string

 Location: TLocation

 Approach: TApproach

end