POIadd2

Top  Previous  Next

Procedure POIadd2(link: integer; percent: double; text: string; direction: integer);

 

The same function as POIadd, except it takes an additional paramter, so it can be controlled in which direction the POI will be included.

 

Direction:

-1: Include only if link is travelled in opposite of digitized direction

0: Both directions

+1: Include only if link is travelled in digitized direction

 

 

There are basically 2 situations:

 

1) POI that can be seen by all, no matter side of road, direction of vehicle or right / left-hand driving. Use POIadd instead.

 

2) POI that can be seen, if the vehicle is on the same side of the road as the POI. The POI is facing towards the traffic.

 

From the call to Coordinate2location you have the side of the road. Now you can look up the direction parameter in this table:

 

Side

Right-hand driving

Left-hand driving

0

+1

-1

1

-1

+1

 

Versions: Standard Pro

ActiveX / VCL / CLX component: RWcalc