fix detection of forks in present of oneways

This commit is contained in:
Moritz Kobitzsch
2016-10-04 18:36:39 +02:00
parent dbd108df8c
commit 66f2cc5184
4 changed files with 103 additions and 49 deletions
+31
View File
@@ -22,6 +22,37 @@ Feature: Fork Instructions
| a,c | ab,bc,bc | depart,fork slight left,arrive |
| a,d | ab,bd,bd | depart,fork slight right,arrive |
Scenario: Don't Fork On Single Road
Given the node map
| | | | | c |
| a | | b | | |
| | | | | d |
And the ways
| nodes | highway | oneway |
| ab | primary | no |
| cb | primary | yes |
| bd | primary | yes |
When I route I should get
| waypoints | route | turns |
| a,d | ab,bd,bd | depart,new name slight right,arrive |
Scenario: Don't Fork On Single Road
Given the node map
| | | | | | | c |
| a | | b | | d | | |
And the ways
| nodes | highway | oneway | name |
| ab | primary | no | road |
| cb | primary | yes | road |
| bd | primary | yes | turn |
When I route I should get
| waypoints | route | turns |
| a,d | road,turn,turn | depart,new name straight,arrive |
Scenario: Do not fork on link type
Given the node map
| | | | | c |
+16
View File
@@ -133,6 +133,22 @@ Feature: Simple Turns
| d,c | db,cb,cb | depart,turn right,arrive |
| d,a | db,ab,ab | depart,new name straight,arrive |
Scenario: Three Way Intersection - Meeting Oneways
Given the node map
| | c | |
| a | b | d |
And the ways
| nodes | highway | oneway |
| ab | primary | yes |
| bc | primary | yes |
| db | primary | yes |
When I route I should get
| waypoints | route | turns |
| a,c | ab,bc,bc | depart,turn left,arrive |
| d,c | db,bc,bc | depart,turn right,arrive |
Scenario: Three Way Intersection on Through Street
Given the node map
| | d | |