blockings: segment direction versus driving directions

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

blockings: segment direction versus driving directions

Post by Bernd Welter »

Hello together,

these days a prospect asked me about the difference between some specific segment attributes he found in the RoadEditor / TruckAttributes. In the output of his routes he found the following two values:
  • MAX_AXLE_LOAD|0=1150
  • MAX_AXLE_LOAD|1=1150
Looks like this info is missing in the 1.20 documentation so this is why I'd like to reslove it:
The bold digit simply describes the segment direction to which the attribute refers...
It is important to know that each segment is stored in an oriented way with a START and a DESTINATION

See the following screenshots... If a segment restriction is applied in both directions it is labelled with a 2 - and therefore displayed without direction arrows:
WEIGHT-Restriction applied in both directions
WEIGHT-Restriction applied in both directions
MAX_WEIGHT2.gif (4.17 KiB) Viewed 4159 times
If the restriction is only one direction we use the values 0 and 1 to separate the direction:
HAZARDOUS_GOODS restriction in one direction (destination to start)
HAZARDOUS_GOODS restriction in one direction (destination to start)
HAZARDOUS_GOODS 0=1.gif (8.78 KiB) Viewed 4159 times
TRUCK RESTRICTION in one direction (start to end)
TRUCK RESTRICTION in one direction (start to end)
BLOCKS_TRUCK1.gif (9.33 KiB) Viewed 4159 times
In the context of mapping we refer to the data direction used in the binary map data.
In the context of routing and the label as a ROADEDITOR_ADDITIONAL_OPTION (output of routing request) we refer to the driving direction.

The following routing screenshots have been made with TRUCK profiles...
If the route is calculated against the restriction we are allowed to use the segments.
If the route is calculated against the restriction we are allowed to use the segments.
Trying to drive in the direction of the blocking is not allowed and so we take a detour.
Trying to drive in the direction of the blocking is not allowed and so we take a detour.
Driving from south to north by car doesn't require a detour as the restriction is for trucks only - even in case of "in driving direction".
Driving from south to north by car doesn't require a detour as the restriction is for trucks only - even in case of "in driving direction".
I hope these screenshots explain the meaning ;-)

Regards Bernd

PS
ATTRIBUTES north to south
ATTRIBUTES north to south
SOUTH to NORTH attributes truck
SOUTH to NORTH attributes truck
south to north by car
south to north by car
Post Reply