do not merge segregated highways in if there is actual turns involved
This commit is contained in:
committed by
Michael Krasnyk
parent
bf28e40ba6
commit
b8651bfac9
@@ -395,6 +395,7 @@ bool MergableRoadDetector::HaveSameDirection(const NodeID intersection_node,
|
||||
|
||||
const auto combined_road_width = 0.5 * (lane_count_lhs + lane_count_rhs) * ASSUMED_LANE_WIDTH;
|
||||
const auto constexpr MAXIMAL_ALLOWED_SEPARATION_WIDTH = 8;
|
||||
|
||||
return distance_between_roads <= combined_road_width + MAXIMAL_ALLOWED_SEPARATION_WIDTH;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user