RoutingManager lane grouping enhancements #1593
Labels
Dependent
This issue is blocked by another issue.
feature
A new distinct feature
LANE ROUTING
Feature: Lane arrows / connectors
This issue depends on #1589.
Basic Non-Highway Routing Strategy
RoutingManager
's logic for car lanes (non-highway rules) will be revised as follows:Standard
andExpress
lane groups on the same segment will be treated as one for this operation.The code will be structured to allow for node-based routing in the future. This will allow the routing of incoming segments to adapt to each other. Such an enhancement will also improve highway rules.
Valid Outgoing Lane Groups
A
DisplacedInner
lane group is exclusive ifm_allowConnect
isfalse
andm_laneType
isVehicle
. This excludes both Airports DLC cargo roads andTransportVehicle
lanes from special CFI rules for displaced lanes.Far Turn
An outgoing lane group is valid for far turns if its relative arrow direction is Left (RHT) or Right (LHT) and any one of the following conditions are met:
DisplacedOuter
lane group on the nearest segment with incoming lanes in the clockwise (RHT) or counter-clockwise (LHT) direction.DisplacedInner
lane group.Express
orStandard
lane group and there is no exclusiveDisplacedInner
lane group on the same segment. (The presence of an exclusiveDisplacedInner
lane group triggers the CFI rule.)Near Turn
An outgoing lane group is valid for near turns if its relative arrow direction is Right (RHT) or Left (LHT) and any of the following conditions are met:
Standard
orExpress
lane group.DisplacedInner
lane group that is not exclusive.Forward, Standard Rule
DisplacedOuter
and there is noDisplacedOuter
outgoing lane group, it is handled as if it wereDisplacedInner
.Express
, then outgoingDisplacedInner
andStandard
lane groups are both valid.DisplacedInner
and anExpress
outgoing lane group is available, then that the valid outgoing lane group.Standard
lane group is selected as valid.Forward, CFI Rule
When the incoming and outgoing segments both have exclusive
DisplacedInner
lanes and there are valid outgoing lane groups for far turns, the only valid outgoing lane group isDisplacedInner
.Highway Rules
When all segments on a node are highways, the existing code will be used for lane routing. Since highways do not have in-segment medians, they are beyond the scope of this project.
The text was updated successfully, but these errors were encountered: