SwapOneWay

Top  Previous  Next

This method swaps all oneway restrictions, so they point in the opposite direction. If both oneway bits (9 and 10) are set, nothing happens.

 

It can be used to calculate isochrones from many-to-one, by first swapping the restrictions, doing it one-to-many and then swapping back again.

 

This is for instance relevant, when doing a drivetime isochrone and it is more important how fast you can get TO the center (example: hospitals), rather than getting FROM the center (example: fire stations).

 

Call TurnSwap too, if you have turn restrictions.

 

Syntax: SwapOneWay