TurnRestriction

Top  Previous  Next

This method 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.

 

Syntax: TurnRestriction(index,link1,link2: integer; cost: TCost)