Skip to content

Commit

Permalink
Adjust lower bound for crossroad angle in sliproads handler, #4348/2
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase committed Aug 3, 2017
1 parent 65cf9b4 commit caf5634
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/guidance/dedicated-turn-roads.feature
Original file line number Diff line number Diff line change
Expand Up @@ -994,5 +994,5 @@ Feature: Slipways and Dedicated Turn Lanes


When I route I should get
| waypoints | route | turns | locations |
| s,f | sabc,ae,dbef,dbef | depart,turn right,turn slight right,arrive | s,a,e,f |
| waypoints | route | turns | locations |
| s,f | sabc,dbef,dbef | depart,turn right,arrive | s,a,f |
4 changes: 3 additions & 1 deletion src/extractor/guidance/sliproad_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ operator()(const NodeID /*nid*/, const EdgeID source_edge_id, Intersection inter
continue;
}

if (deviation_from_straight > perpendicular_angle)
// Check sliproads with skew main intersections
if (deviation_from_straight > perpendicular_angle &&
!node_based_graph.GetEdgeData(sliproad.eid).road_classification.IsLinkClass())
{
continue;
}
Expand Down

0 comments on commit caf5634

Please sign in to comment.