Skip to content

Commit

Permalink
Increase MAXIMAL_ALLOWED_SEPARATION_WIDTH to 12 meters
Browse files Browse the repository at this point in the history
the check should cover merging of roads at intersections similar
to https://www.openstreetmap.org/node/53020993#map=18/37.86590/-122.25083
  • Loading branch information
oxidase committed Jan 29, 2018
1 parent 77f8a4f commit 8fea994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extractor/guidance/mergable_road_detector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ bool MergableRoadDetector::HaveSameDirection(const NodeID intersection_node,
1, node_based_graph.GetEdgeData(rhs.eid).flags.road_classification.GetNumberOfLanes());

const auto combined_road_width = 0.5 * (lane_count_lhs + lane_count_rhs) * ASSUMED_LANE_WIDTH;
const auto constexpr MAXIMAL_ALLOWED_SEPARATION_WIDTH = 8;
const auto constexpr MAXIMAL_ALLOWED_SEPARATION_WIDTH = 12;

return distance_between_roads <= combined_road_width + MAXIMAL_ALLOWED_SEPARATION_WIDTH;
}
Expand Down

0 comments on commit 8fea994

Please sign in to comment.