From 7f8e467523a86b8ef7d559ff573a2487d1df112f Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Mon, 11 Sep 2017 17:12:50 +0200 Subject: [PATCH] Adjust lower bound for crossroad angle in sliproads handler, #4348/2 --- src/extractor/guidance/sliproad_handler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/extractor/guidance/sliproad_handler.cpp b/src/extractor/guidance/sliproad_handler.cpp index c6e42817c..6a0903620 100644 --- a/src/extractor/guidance/sliproad_handler.cpp +++ b/src/extractor/guidance/sliproad_handler.cpp @@ -394,7 +394,7 @@ operator()(const NodeID /*nid*/, const EdgeID source_edge_id, Intersection inter using namespace util::coordinate_calculation; // In addition, if it's a right/left turn we expect the rightmost/leftmost - // turn at `c` to be more or less ~90 degree for a Sliproad scenario. + // turn at `c` to be more than a minimal angle (40°) for a Sliproad scenario. double deviation_from_straight = 0; if (is_right_sliproad_turn) @@ -423,7 +423,7 @@ operator()(const NodeID /*nid*/, const EdgeID source_edge_id, Intersection inter const auto length = haversineDistance(coordinates[intersection_node_id], coordinates[main_road_intersection->node]); - const double perpendicular_angle = 90 + FUZZY_ANGLE_DIFFERENCE; + const double minimal_crossroad_angle_of_intersection = 40.; if (length >= MIN_LENGTH) { @@ -433,7 +433,7 @@ operator()(const NodeID /*nid*/, const EdgeID source_edge_id, Intersection inter } // Check sliproads with skew main intersections - if (deviation_from_straight > perpendicular_angle && + if (deviation_from_straight > 180. - minimal_crossroad_angle_of_intersection && !node_based_graph.GetEdgeData(sliproad.eid).road_classification.IsLinkClass()) { continue;