Roundabout Intersections are roundabouts with up to four ways and turn angles which makes the turns obvious, e.g. as in: ``` * * * * * * * * ``` but not ``` * * * * * * * * * ``` For Roundabout Intersections we issue instructions such as "turn <direction>" instead of "take the <nth> exit". At the moment we have a limit on the radius for these Roundabout Intersections of 5 meters. Which fails to classify a wide range of Roundabout Intersections in the US (with the US-wide streets). This changeset removes the Roundabout Intersection radius limit: - if the roundabout is larger than a threshold and is named we classify it as a rotary - if the roundabout matches our criteria for Roundabout Intersections we classify it as a Roundabout Intersection - else fallback to plain old Roundabout There is a second issue with determining a roundabout's radius. But that's for another pull request (tracking in #2716). References: - https://github.com/Project-OSRM/osrm-backend/issues/2716
38 lines
1.7 KiB
Gherkin
38 lines
1.7 KiB
Gherkin
@routing @guidance
|
|
Feature: Basic Roundabout
|
|
|
|
Background:
|
|
Given the profile "bicycle"
|
|
Given a grid size of 10 meters
|
|
|
|
Scenario: Enter and Exit
|
|
Given the node map
|
|
| | | a | | |
|
|
| | | b | | |
|
|
| h | g | | c | d |
|
|
| | | e | | |
|
|
| | | f | | |
|
|
|
|
And the ways
|
|
| nodes | junction |
|
|
| ab | |
|
|
| cd | |
|
|
| ef | |
|
|
| gh | |
|
|
| bgecb | roundabout |
|
|
|
|
When I route I should get
|
|
| waypoints | route | turns |
|
|
| a,d | ab,cd,cd | depart,roundabout turn left exit-3,arrive |
|
|
| a,f | ab,ef,ef | depart,roundabout turn straight exit-2,arrive |
|
|
| a,h | ab,gh,gh | depart,roundabout turn right exit-1,arrive |
|
|
| d,f | cd,ef,ef | depart,roundabout turn left exit-3,arrive |
|
|
| d,h | cd,gh,gh | depart,roundabout turn straight exit-2,arrive |
|
|
| d,a | cd,ab,ab | depart,roundabout turn right exit-1,arrive |
|
|
| f,h | ef,gh,gh | depart,roundabout turn left exit-3,arrive |
|
|
| f,a | ef,ab,ab | depart,roundabout turn straight exit-2,arrive |
|
|
| f,d | ef,cd,cd | depart,roundabout turn right exit-1,arrive |
|
|
| h,a | gh,ab,ab | depart,roundabout turn left exit-3,arrive |
|
|
| h,d | gh,cd,cd | depart,roundabout turn straight exit-2,arrive |
|
|
| h,f | gh,ef,ef | depart,roundabout turn right exit-1,arrive |
|