TurnRestriction
Previous  Top  Next

Function TurnRestriction(link1,link2: integer; cost: single): integer;

Defines a restriction on turns from link1 to link2.

cost<0: Turn prohibited
cost=0: Remove turn restriction
cost>0: Additional cost related to the turn (=delay).

If link1=link2 the restriction (a U-turn) is skipped. See here how to apply U-turn restrictions. It is not possible to have delays for U-turns, they can only be either allowed or banned.

If link1 and link2 are parallel links, a turn restriction is added at both nodes. Prevent this by breaking up one of the links.

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