Turn restrictions

Top  Previous  Next

There are 2 types of restricted turns:

 

Banned turns

Delayed turns

 

Normally you will be using banned turns only, since for most normal routing purposes, setting different road speeds for road classes are sufficient for giving a realistic route choice.

 

Generally you can change choice of route A LOT by using wrong values for delays, so take care.

 

All methods about turn restrictions has an index parameter, which points to one of the turn indices, created by CreateArrayTurn.

 

If you add a turn restriction, where one of the links making up the restriction is already marked as one-way, it is skipped.

 

See TNetwork.TurnImportTXT for the text format to use for import.