Adjust lower bound for crossroad angle in sliproads handler, #4348/2

This commit is contained in:
Michael Krasnyk 2017-08-03 09:29:36 +02:00
parent a5efcfdede
commit a8db269fd5
2 changed files with 5 additions and 3 deletions

View File

@ -994,5 +994,5 @@ Feature: Slipways and Dedicated Turn Lanes
When I route I should get When I route I should get
| waypoints | route | turns | locations | | waypoints | route | turns | locations |
| s,f | sabc,ae,dbef,dbef | depart,turn right,turn slight right,arrive | s,a,e,f | | s,f | sabc,dbef,dbef | depart,turn right,arrive | s,a,f |

View File

@ -432,7 +432,9 @@ operator()(const NodeID /*nid*/, const EdgeID source_edge_id, Intersection inter
continue; 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; continue;
} }