Direction2
Previous  Top  Next

Function Direction2(link1, node2, link2: integer): integer;

Returns the turning angle (0-359) at node2 when moving from link1 to link2 via node2. This is based on the exact coordinates of the polylines and the node.

Link1 and link2 must both be connected to node2. Specifying node2 may seem superfluous, but is required since link1 and link2 could be parallel links. If your network only consists of lines or polylines with one segment, Direction1 gives the same result.

Straight on is 0, to the left is 90, backward is 180 and to the right is 270.

See also Direction1.

Possible error codes: -10 -30 -31 -40 -43 -46
Versions: Standard Pro
ActiveX / VCL / CLX component: RWnetBase