2016-05-13 13:18:00 -04:00
|
|
|
@routing @guidance @turn-lanes
|
|
|
|
Feature: Turn Lane Guidance
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "car"
|
2017-02-15 09:12:24 -05:00
|
|
|
Given a grid size of 5 meters
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Basic Turn Lane 3-way Turn with empty lanes
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | turn:lanes | turn:lanes:forward | turn:lanes:backward | name |
|
|
|
|
| ab | | through\|right | | in |
|
2016-07-07 09:31:20 -04:00
|
|
|
| bc | | | left\|through\|\| | straight |
|
2016-05-13 13:18:00 -04:00
|
|
|
| bd | | | left\|right | right |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-06-21 04:41:08 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,c | in,straight,straight | depart,new name straight,arrive | ,straight:true right:false, |
|
|
|
|
| a,d | in,right,right | depart,turn right,arrive | ,straight:false right:true, |
|
|
|
|
| c,a | straight,in,in | depart,new name straight,arrive | ,left:false straight:true none:true none:true, |
|
|
|
|
| c,d | straight,right,right | depart,turn left,arrive | ,left:true straight:false none:false none:false, |
|
2016-07-08 04:44:49 -04:00
|
|
|
|
|
|
|
Scenario: Basic Turn Lane 3-way Turn with designated lane
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
"""
|
2016-07-08 04:44:49 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | turn:lanes | turn:lanes:forward | name | vehicle:lanes:forward |
|
|
|
|
| ab | | through\|through\|right | in | yes\|no\|yes |
|
|
|
|
| bc | | | straight | |
|
|
|
|
| bd | | | right | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,c | in,straight,straight | depart,new name straight,arrive | ,straight:true right:false, |
|
|
|
|
| a,d | in,right,right | depart,turn right,arrive | ,straight:false right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-11-04 09:44:23 -04:00
|
|
|
# Turn Lane onto a ferry could end up breaking in intersection generation
|
|
|
|
Scenario: Basic Turn Lane 3-way Turn with designated lane
|
|
|
|
Given the node map
|
|
|
|
"""
|
|
|
|
a - b ~ ~ c - e
|
|
|
|
| |
|
|
|
|
d f
|
|
|
|
"""
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | turn:lanes:forward | name | route |
|
|
|
|
| ab | through\|through\|right | ferry-route | |
|
|
|
|
| bc | through\|through\|right | ferry-route | ferry |
|
|
|
|
| ce | | ferry-route | |
|
|
|
|
| bd | | right | |
|
|
|
|
| cf | | right | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns |
|
|
|
|
| a,e | ferry-route,ferry-route,ferry-route,ferry-route | depart,notification straight,notification straight,arrive |
|
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Basic Turn Lane 4-Way Turn
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
e
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | turn:lanes | turn:lanes:forward | turn:lanes:backward | name |
|
|
|
|
| ab | | \|right | | in |
|
|
|
|
| bc | | | | straight |
|
|
|
|
| bd | | | left\| | right |
|
|
|
|
| be | | | | left |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-06-15 08:38:24 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,c | in,straight,straight | depart,new name straight,arrive | ,none:true right:false, |
|
|
|
|
| a,d | in,right,right | depart,turn right,arrive | ,none:false right:true, |
|
|
|
|
| a,e | in,left,left | depart,turn left,arrive | ,none:true right:false, |
|
|
|
|
| d,a | right,in,in | depart,turn left,arrive | ,left:true none:false, |
|
|
|
|
| d,e | right,left,left | depart,new name straight,arrive | ,left:false none:true, |
|
|
|
|
| d,c | right,straight,straight | depart,turn right,arrive | ,left:false none:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple @none
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Basic Turn Lane 4-Way Turn using none
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
e
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | turn:lanes | turn:lanes:forward | turn:lanes:backward | name |
|
|
|
|
| ab | | none\|right | | in |
|
|
|
|
| bc | | | | straight |
|
|
|
|
| bd | | | left\|none | right |
|
|
|
|
| be | | | | left |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-06-15 08:38:24 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,c | in,straight,straight | depart,new name straight,arrive | ,none:true right:false, |
|
|
|
|
| a,d | in,right,right | depart,turn right,arrive | ,none:false right:true, |
|
|
|
|
| a,e | in,left,left | depart,turn left,arrive | ,none:true right:false, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple @reverse
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Basic Turn Lane 4-Way With U-Turn Lane
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
2016-11-18 03:38:26 -05:00
|
|
|
e
|
|
|
|
f a-1-b---c
|
|
|
|
d
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-11-18 03:38:26 -05:00
|
|
|
| nodes | turn:lanes | turn:lanes:forward | name | # |
|
|
|
|
| ab | | reverse;left\|through;right | in | |
|
|
|
|
| bc | | | straight | |
|
|
|
|
| bd | | | right | |
|
|
|
|
| be | | | left | |
|
|
|
|
| fa | | | uturn-avoider | #due to https://github.com/Project-OSRM/osrm-backend/issues/3359 |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-11-18 03:38:26 -05:00
|
|
|
| from | to | bearings | route | turns | lanes | locations |
|
|
|
|
| a | c | 180,180 180,180 | in,straight,straight | depart,new name straight,arrive | ,left;uturn:false straight;right:true, | a,b,c |
|
|
|
|
| a | d | 180,180 180,180 | in,right,right | depart,turn right,arrive | ,left;uturn:false straight;right:true, | a,b,d |
|
|
|
|
| a | e | 180,180 180,180 | in,left,left | depart,turn left,arrive | ,left;uturn:true straight;right:false, | a,b,e |
|
2017-06-01 05:43:53 -04:00
|
|
|
| 1 | a | 90,2 270,2 | in,in,in | depart,continue uturn,arrive | ,left;uturn:true straight;right:false, | _,b,a |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
#this next test requires decision on how to announce lanes for going straight if there is no turn
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple @psv @none
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Turn with Bus-Lane
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
|
|
|
|
d
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | lanes:psv:forward |
|
2016-07-07 09:31:20 -04:00
|
|
|
| ab | road | through\|right\| | 1 |
|
2016-05-13 13:18:00 -04:00
|
|
|
| bc | road | | |
|
|
|
|
| bd | turn | | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-07-18 05:24:41 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,d | road,turn,turn | depart,turn right,arrive | ,straight:false right:true, |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,c | road,road | depart,arrive | ;straight:true right:false, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-09-05 03:16:56 -04:00
|
|
|
Scenario: Turn with Bus-Lane Left
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
d
|
|
|
|
|
|
|
|
a b c f
|
|
|
|
e
|
|
|
|
"""
|
2016-09-05 03:16:56 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | lanes:psv:forward | oneway |
|
|
|
|
| ab | road | left\|through\| | 1 | yes |
|
|
|
|
| bc | road | | | yes |
|
|
|
|
| bd | turn | | | yes |
|
|
|
|
| cf | turn | | | yes |
|
|
|
|
| ce | side | | | yes |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,d | road,turn,turn | depart,turn left,arrive | ,left:true straight:false, |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,c | road,road | depart,arrive | ;left:false straight:true, |
|
2016-09-05 03:16:56 -04:00
|
|
|
|
2016-09-04 16:40:48 -04:00
|
|
|
# This tests whether empty/invalid PSV tags cause osrm-extract to crash
|
|
|
|
Scenario: Turn with Bus-Lane
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
|
|
|
|
d
|
|
|
|
"""
|
2016-09-04 16:40:48 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | lanes:psv:forward | lanes:psv:backward |
|
|
|
|
| ab | road | through\|right\| | 1 | foo |
|
|
|
|
| bc | road | | | |
|
|
|
|
| bd | turn | | | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,d | road,turn,turn | depart,turn right,arrive | ,straight:false right:true, |
|
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple @psv
|
2016-06-28 05:00:01 -04:00
|
|
|
Scenario: Turn with Bus-Lane but without lanes
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
|
|
|
|
d
|
|
|
|
"""
|
2016-06-28 05:00:01 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | lanes:psv |
|
|
|
|
| ab | road | 1 |
|
|
|
|
| bc | road | yes |
|
|
|
|
| bd | turn | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns |
|
|
|
|
| a,d | road,turn,turn | depart,turn right,arrive |
|
|
|
|
| a,c | road,road | depart,arrive |
|
|
|
|
|
2016-05-13 13:18:00 -04:00
|
|
|
#turn lanes are often drawn at the incoming road, even though the actual turn requires crossing the intersection first
|
2016-09-20 14:39:55 -04:00
|
|
|
@todo @collapse @partition-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Turn Lanes at Segregated Road
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
i l
|
|
|
|
|
|
|
|
h g f e
|
|
|
|
a b c d
|
|
|
|
|
|
|
|
j k
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | oneway |
|
|
|
|
| ab | road | left\|through\|right | yes |
|
|
|
|
| bc | road | left\|through | yes |
|
|
|
|
| cd | road | | yes |
|
|
|
|
| ef | road | \|through\|through;right | yes |
|
|
|
|
| fg | road | left;through\|through\| | yes |
|
|
|
|
| gh | road | | yes |
|
|
|
|
| ig | cross | | yes |
|
|
|
|
| gb | cross | left\|through | yes |
|
|
|
|
| bj | cross | | yes |
|
|
|
|
| kc | cross | left\|through;right | yes |
|
|
|
|
| cf | cross | left\|through | yes |
|
|
|
|
| fl | cross | | yes |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes | intersection_lanes |
|
|
|
|
| a,j | road,cross,cross | depart,turn right,arrive | ,left:false straight:false right:true | ,left:false straight:false right:true |
|
|
|
|
| a,d | road,road | depart,arrive | , | left:false straight:true right:false, |
|
|
|
|
| a,l | road,cross,cross | depart,turn left,arrive | ,left:true straight:false right:false, | ,left:true straight:false right:false, |
|
|
|
|
| a,h | road,road,road | depart,continue uturn,arrive | ,left:true straight:false right:false, | ,left:true straight:false right:false |
|
|
|
|
| k,d | cross,road,road | depart,turn right,arrive | ,left:false straight;right:true, | ,left:false straight;right:true, |
|
|
|
|
| k,l | cross,cross | depart,arrive | , | left:false straight;right:true, |
|
|
|
|
| k,h | cross,road,road | depart,turn left,arrive | ,left:true straight;right:false, | ,left:true straight;right:false, |
|
|
|
|
| k,j | cross,cross,cross | depart,continue uturn,arrive | ,left:true straight;right:false, | ,left:true straight;right:false, |
|
|
|
|
| e,l | road,cross,cross | depart,turn right,arrive | ,none:false straight:false straight;right:true, | ,none:false straight:false straight;right:true, |
|
|
|
|
| e,h | road,road | depart,arrive | , | none:false straight:true straight;right:true, |
|
|
|
|
| e,j | road,cross,cross | depart,turn left,arrive | ,none:true straight:false straight;right:false, | ,none:true straight:false straight;right:false, |
|
|
|
|
| e,d | road,road,road | depart,continue uturn,arrive | ,none:true straight:false straight;right:false, | ,none:true straight:false straight;right:false, |
|
|
|
|
| i,h | cross,road,road | depart,turn right,arrive | ,, | |
|
|
|
|
| i,j | cross,cross | depart,arrive | | left:false straight:true, |
|
|
|
|
| i,d | cross,road,road | depart,turn left,arrive | ,left:true straight:false, | ,left:true straight:false, |
|
|
|
|
| i,l | cross,cross,cross | depart,continue uturn,arrive | ,left:true straight:false, | ,left:true straight:false, |
|
2016-06-15 08:38:24 -04:00
|
|
|
|
|
|
|
#copy of former case to prevent further regression
|
2016-07-08 05:45:36 -04:00
|
|
|
@collapse @partition-lanes
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Turn Lanes at Segregated Road
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
i l
|
|
|
|
|
|
|
|
h g f e
|
|
|
|
a b c d
|
|
|
|
|
|
|
|
j k
|
|
|
|
"""
|
2016-06-15 08:38:24 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | oneway |
|
|
|
|
| ab | road | left\|through\|right | yes |
|
|
|
|
| bc | road | left\|through | yes |
|
|
|
|
| cd | road | | yes |
|
|
|
|
| ef | road | \|through\|through;right | yes |
|
|
|
|
| fg | road | left;through\|through\| | yes |
|
|
|
|
| gh | road | | yes |
|
|
|
|
| ig | cross | | yes |
|
|
|
|
| gb | cross | left\|through | yes |
|
|
|
|
| bj | cross | | yes |
|
|
|
|
| kc | cross | left\|through;right | yes |
|
|
|
|
| cf | cross | left\|through | yes |
|
|
|
|
| fl | cross | | yes |
|
2016-06-15 08:38:24 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,j | road,cross,cross | depart,turn right,arrive | ,left:false straight:false right:true, |
|
|
|
|
| k,d | cross,road,road | depart,turn right,arrive | ,left:false straight;right:true, |
|
|
|
|
| e,l | road,cross,cross | depart,turn right,arrive | ,none:false straight:false straight;right:true, |
|
|
|
|
| i,h | cross,road,road | depart,turn right,arrive | ,, |
|
|
|
|
| i,j | cross,cross | depart,arrive | ;;left:false straight:true, |
|
|
|
|
| i,l | cross,cross,cross | depart,continue uturn,arrive | ;,left:true straight:false;left:true straight:false;left:false straight:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@partition-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Turn Lanes at Segregated Road
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
g f
|
|
|
|
a b c d
|
|
|
|
|
|
|
|
j k
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | oneway |
|
|
|
|
| ab | road | left\|through\|right | yes |
|
|
|
|
| bc | road | | yes |
|
|
|
|
| cd | road | | yes |
|
|
|
|
| gb | cross | | yes |
|
|
|
|
| bj | cross | | yes |
|
|
|
|
| kc | cross | | yes |
|
|
|
|
| cf | cross | | yes |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-06-21 04:41:08 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,j | road,cross,cross | depart,turn right,arrive | ,left:false straight:false right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
#this can happen due to traffic lights / lanes not drawn up to the intersection itself
|
2016-07-08 05:45:36 -04:00
|
|
|
@2654 @previous-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Turn Lanes Given earlier than actual turn
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c d
|
|
|
|
|
|
|
|
e
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward |
|
|
|
|
| ab | road | \|right |
|
|
|
|
| bc | road | |
|
|
|
|
| cd | road | |
|
|
|
|
| ce | turn | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-07-18 05:24:41 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,e | road,turn,turn | depart,turn right,arrive | ,none:false right:true, |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,d | road,road | depart,arrive | ;none:true right:false, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@2654 @previous-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Turn Lanes Given earlier than actual turn
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c d e f g h i
|
|
|
|
j k
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | turn:lanes:backward |
|
|
|
|
| abc | road | | |
|
|
|
|
| cd | road | | left\| |
|
|
|
|
| def | road | | |
|
|
|
|
| fg | road | \|right | |
|
|
|
|
| ghi | road | | |
|
|
|
|
| bj | first-turn | | |
|
|
|
|
| hk | second-turn | | |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,k | road,second-turn,second-turn | depart,turn right,arrive | ;,none:false right:true, |
|
|
|
|
| a,i | road,road | depart,arrive | ;;none:true right:false, |
|
|
|
|
| i,j | road,first-turn,first-turn | depart,turn left,arrive | ;,left:true none:false, |
|
|
|
|
| i,a | road,road | depart,arrive | ;;left:false none:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@previous-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Passing a one-way street
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
e f
|
|
|
|
a b c d
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | oneway |
|
|
|
|
| ab | road | left\|through | no |
|
|
|
|
| bcd | road | | no |
|
|
|
|
| eb | owi | | yes |
|
|
|
|
| cf | turn | | |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,f | road,turn,turn | depart,turn left,arrive | ;left:true straight:false,left:true straight:false, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@partition-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Passing a one-way street, partly pulled back lanes
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
e f
|
|
|
|
a b c d
|
|
|
|
g
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | oneway |
|
|
|
|
| ab | road | left\|through;right | no |
|
|
|
|
| bcd | road | | no |
|
|
|
|
| eb | owi | | yes |
|
|
|
|
| cf | turn | | no |
|
|
|
|
| bg | right | | no |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,f | road,turn,turn | depart,turn left,arrive | ;left:true straight;right:false,left:true straight;right:false, |
|
|
|
|
| a,d | road,road | depart,arrive | ;left:false straight;right:true;left:false straight;right:true, |
|
|
|
|
| a,g | road,right,right | depart,turn right,arrive | ,left:false straight;right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@partition-lanes @previous-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Passing a one-way street, partly pulled back lanes, no through
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
e f
|
|
|
|
a b c
|
|
|
|
g
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | oneway |
|
|
|
|
| ab | road | left\|right | no |
|
|
|
|
| bc | road | | no |
|
|
|
|
| eb | owi | | yes |
|
|
|
|
| cf | turn | | no |
|
|
|
|
| bg | right | | no |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,f | road,turn,turn | depart,turn left,arrive | ,left:true right:false;left:true right:false, |
|
|
|
|
| a,g | road,right,right | depart,turn right,arrive | ,left:false right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-09-20 14:39:55 -04:00
|
|
|
@todo @partition-lanes @previous-lanes
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Narrowing Turn Lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
g
|
|
|
|
|
|
|
|
a b c d e
|
|
|
|
f
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward |
|
|
|
|
| ab | road | left\|through\|right |
|
|
|
|
| bc | road | |
|
|
|
|
| cd | road | left\|through |
|
|
|
|
| de | through | |
|
|
|
|
| dg | left | |
|
|
|
|
| cf | right | |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-06-21 04:41:08 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,g | road,left,left | depart,turn left,arrive | ,left:true straight:false right:false, |
|
|
|
|
| a,e | road,through,through | depart,new name straight,arrive | ,left:false straight:true right:false, |
|
|
|
|
| a,f | road,right,right | depart,turn right,arrive | ,left:false straight:false right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@previous-lanes
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Turn at a traffic light
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c d
|
|
|
|
e
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the nodes
|
|
|
|
| node | highway |
|
|
|
|
| b | traffic_signals |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward |
|
|
|
|
| ab | road | through\|right |
|
|
|
|
| bc | road | |
|
|
|
|
| cd | road | |
|
|
|
|
| ce | turn | |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-07-18 05:24:41 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,d | road,road | depart,arrive | ;straight:true right:false, |
|
2016-07-18 05:24:41 -04:00
|
|
|
| a,e | road,turn,turn | depart,turn right,arrive | ,straight:false right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-09-20 14:39:55 -04:00
|
|
|
@todo @roundabout
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Theodor Heuss Platz
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
i o l
|
|
|
|
b a m
|
|
|
|
c
|
|
|
|
h
|
|
|
|
|
|
|
|
j
|
|
|
|
g
|
|
|
|
|
|
|
|
d
|
|
|
|
e f
|
|
|
|
k n
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the nodes
|
|
|
|
| node | highway |
|
|
|
|
| g | traffic_signals |
|
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | junction | oneway | highway |
|
|
|
|
| abcdef | roundabout | | roundabout | yes | primary |
|
|
|
|
| gha | roundabout | | roundabout | yes | primary |
|
|
|
|
| fg | roundabout | slight_left\|slight_left;slight_right\|slight_right\|slight_right | roundabout | yes | primary |
|
|
|
|
| aoib | top | | | yes | primary |
|
|
|
|
| cjd | left | | | yes | primary |
|
|
|
|
| ekf | bottom | | | yes | primary |
|
|
|
|
| fng | bottom-right | | | yes | primary |
|
|
|
|
| hma | top-right | | | yes | primary |
|
|
|
|
| hl | top-right-out | | | yes | secondary |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-06-15 08:38:24 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
2016-06-21 04:41:08 -04:00
|
|
|
| i,m | top,top-right,top-right | depart,roundabout-exit-4,arrive | ,slight left:false slight left;slight right:true slight right:true slight right:true, |
|
|
|
|
| i,l | top,top-right-out,top-right-out | depart,roundabout-exit-4,arrive | ,slight left:true slight left;slight right:true slight right:false slight right:false, |
|
2016-06-15 08:38:24 -04:00
|
|
|
| i,o | top,top,top | depart,roundabout-exit-5,arrive | ,, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@sliproads
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Turn Lanes Breaking up
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
g
|
|
|
|
|
|
|
|
c
|
2016-10-20 06:15:36 -04:00
|
|
|
a b d e
|
2016-09-30 03:33:08 -04:00
|
|
|
|
|
|
|
f
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-06-30 03:31:08 -04:00
|
|
|
| nodes | name | turn:lanes:forward | oneway | highway |
|
|
|
|
| ab | road | left\|left\|through\|through\|right | yes | primary |
|
2016-07-08 05:45:36 -04:00
|
|
|
| bd | road | through\|through\|right | yes | primary |
|
2016-06-30 03:31:08 -04:00
|
|
|
| bc | road | left\|left | yes | primary |
|
|
|
|
| de | road | | yes | primary |
|
2016-07-08 05:45:36 -04:00
|
|
|
| fd | cross | | | secondary |
|
2016-10-20 06:15:36 -04:00
|
|
|
| dc | cross | | | secondary |
|
|
|
|
| cg | cross | | | secondary |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the relations
|
|
|
|
| type | way:from | way:to | node:via | restriction |
|
2016-06-30 03:31:08 -04:00
|
|
|
| restriction | bd | dc | d | no_left_turn |
|
|
|
|
| restriction | bc | dc | c | no_right_turn |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,g | road,cross,cross | depart,turn left,arrive | ,left:true left:true straight:false straight:false right:false;left:true left:true straight:false straight:false right:false, |
|
|
|
|
| a,e | road,road | depart,arrive | ;left:false left:false straight:true straight:true right:false;left:false left:false straight:true straight:true right:false, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-09-07 05:52:43 -04:00
|
|
|
#NEEDS TO BE INVESTIGATED. Turn restriction shouldn't be here. See #2867
|
2016-07-08 05:45:36 -04:00
|
|
|
@reverse @previous-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: U-Turn Road at Intersection
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
h
|
|
|
|
f e j
|
|
|
|
a b
|
|
|
|
c d i
|
|
|
|
g
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | oneway | highway |
|
|
|
|
| ab | road | | no | primary |
|
|
|
|
| di | road | | yes | primary |
|
2016-07-07 09:31:20 -04:00
|
|
|
| bc | road | \|through\|right | yes | primary |
|
|
|
|
| cd | road | \|through\|right | yes | primary |
|
2016-05-13 13:18:00 -04:00
|
|
|
| fc | road | | no | tertiary |
|
2016-09-07 05:52:43 -04:00
|
|
|
| je | road | | yes | primary |
|
|
|
|
| ef | road | | yes | primary |
|
|
|
|
| fb | road | | yes | primary |
|
|
|
|
| eh | cross | | no | primary |
|
|
|
|
| de | cross | | no | primary |
|
|
|
|
| gd | cross | | no | primary |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-09-07 05:52:43 -04:00
|
|
|
And the relations
|
|
|
|
| type | way:from | way:to | node:via | restriction |
|
|
|
|
| restriction | de | ef | e | no_left_turn |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| from | to | bearings | route | turns | lanes |
|
|
|
|
| a | g | 180,180 180,180 | road,cross,cross | depart,turn right,arrive | ;none:false straight:false right:true,none:false straight:false right:true, |
|
|
|
|
| a | h | 180,180 180,180 | road,cross,cross | depart,turn left,arrive | ;none:true straight:false right:false,none:true straight:false right:false;, |
|
|
|
|
| a | i | 180,180 180,180 | road,road | depart,arrive | ;none:true straight:true right:false;none:true straight:true right:false, |
|
|
|
|
| b | a | 90,2 270,2 | road,road,road | depart,continue uturn,arrive | ,none:true straight:false right:false;, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@reverse
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Segregated Intersection Merges With Lanes
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
2016-12-06 07:22:51 -05:00
|
|
|
a e
|
|
|
|
| |
|
|
|
|
| |
|
2017-02-15 09:12:24 -05:00
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |
|
2016-12-06 07:22:51 -05:00
|
|
|
b d
|
|
|
|
h c
|
|
|
|
' -- g - - f
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-12-06 07:22:51 -05:00
|
|
|
| nodes | name | turn:lanes:forward | oneway | highway | lanes |
|
2017-02-15 09:12:24 -05:00
|
|
|
| abc | road | left\|left\|left\|through\|through | yes | primary | 2 |
|
|
|
|
| cde | road | | yes | primary | 2 |
|
2016-12-06 07:22:51 -05:00
|
|
|
| hc | cross | | yes | secondary | |
|
|
|
|
| cg | straight | | no | tertiary | |
|
|
|
|
| cf | left | | yes | primary | |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-06-21 04:41:08 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,f | road,left,left | depart,turn left,arrive | ,left:true left:true left:true straight:false straight:false, |
|
2017-06-01 05:43:53 -04:00
|
|
|
| a,e | road,road,road | depart,continue uturn,arrive | ,left:true left:false left:false straight:false straight:false, |
|
2016-06-21 04:41:08 -04:00
|
|
|
| a,g | road,straight,straight | depart,new name straight,arrive | ,left:false left:false left:false straight:true straight:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-09-20 14:39:55 -04:00
|
|
|
@todo @roundabout
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Passing Through a Roundabout
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
h g
|
|
|
|
a f k
|
|
|
|
i
|
|
|
|
|
|
|
|
b e
|
|
|
|
c d
|
|
|
|
j
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | oneway | highway | junction |
|
|
|
|
| efgha | round | | yes | primary | roundabout |
|
|
|
|
| ab | round | | yes | primary | roundabout |
|
|
|
|
| bc | round | slight_left\|slight_left\|slight_right | yes | primary | roundabout |
|
|
|
|
| cd | round | | yes | primary | roundabout |
|
|
|
|
| de | round | slight_left\|slight_right | yes | primary | roundabout |
|
|
|
|
| ib | left | slight_left\|slight_left\|slight_right | yes | primary | |
|
|
|
|
| cj | bottom | | yes | primary | |
|
|
|
|
| ek | right | | yes | primary | |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| i,j | left,bottom,bottom | depart,round-exit-1,arrive | ,0, |
|
|
|
|
| i,k | left,right,right | depart,round-exit-2,arrive | ,1, |
|
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@previous-lanes
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Crossing Traffic Light
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c d
|
|
|
|
e
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the nodes
|
|
|
|
| node | highway |
|
|
|
|
| b | traffic_signals |
|
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | highway |
|
|
|
|
| abc | road | through\|through\|through;slight_right\|slight_right | primary |
|
|
|
|
| cd | road | | primary |
|
|
|
|
| ce | cross | | primary |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-06-21 04:41:08 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,d | road,road | depart,arrive | ;straight:true straight:true straight;slight right:true slight right:false, |
|
2016-06-21 04:41:08 -04:00
|
|
|
| a,e | road,cross,cross | depart,turn slight right,arrive | ,straight:false straight:false straight;slight right:true slight right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@ramp
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Highway Ramp
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c d
|
|
|
|
e
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | highway |
|
|
|
|
| abc | hwy | through\|through\|through;slight_right\|slight_right | motorway |
|
|
|
|
| cd | hwy | | motorway |
|
|
|
|
| ce | ramp | | motorway_link |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-06-21 04:41:08 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,d | hwy,hwy | depart,arrive | ;straight:true straight:true straight;slight right:true slight right:false, |
|
2016-06-21 04:41:08 -04:00
|
|
|
| a,e | hwy,ramp,ramp | depart,off ramp slight right,arrive | ,straight:false straight:false straight;slight right:true slight right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-09-19 17:13:44 -04:00
|
|
|
@todo
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Turning Off Ramp
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a
|
|
|
|
d c b
|
|
|
|
e f g
|
|
|
|
h
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | turn:lanes:forward | highway | oneway |
|
|
|
|
| ac | off | left\|right | motorway_link | yes |
|
|
|
|
| bcd | road | | primary | yes |
|
|
|
|
| cf | road | | primary | |
|
|
|
|
| efg | road | | primary | yes |
|
|
|
|
| fh | on | | motorway_link | yes |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-06-15 08:38:24 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,d | off,road,road | depart,turn_right,arrive | ,left:false right:true, |
|
|
|
|
| a,g | off,road,road | depart,turn_left,arrive | ,left:true right:false, |
|
|
|
|
| a,h | | | |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@ramp
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Off Ramp In a Turn
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a
|
|
|
|
|
|
|
|
b c
|
|
|
|
d
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | highway | oneway |
|
|
|
|
| ab | hwy | through\|through\|slight_right | motorway | yes |
|
|
|
|
| bc | hwy | | motorway | yes |
|
|
|
|
| bd | ramp | | motorway_link | yes |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2016-06-21 04:41:08 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,c | hwy,hwy | depart,arrive | ;straight:true straight:true slight right:false, |
|
2016-06-21 04:41:08 -04:00
|
|
|
| a,d | hwy,ramp,ramp | depart,off ramp slight right,arrive | ,straight:false straight:false slight right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@reverse
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Reverse Lane in Segregated Road
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
h g f
|
|
|
|
e
|
|
|
|
d
|
|
|
|
a b c
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | highway | oneway |
|
|
|
|
| ab | road | reverse\|through\|through | primary | yes |
|
|
|
|
| bc | road | | primary | yes |
|
|
|
|
| bdeg | road | | primary_link | yes |
|
|
|
|
| fgh | road | | primary | yes |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,h | road,road,road | depart,continue uturn,arrive | ,uturn:true straight:false straight:false;,|
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@reverse
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Reverse Lane in Segregated Road with none
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
h g f
|
|
|
|
e
|
|
|
|
d
|
|
|
|
a b c
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | highway | oneway |
|
|
|
|
| ab | road | reverse\|through\|none | primary | yes |
|
|
|
|
| bc | road | | primary | yes |
|
|
|
|
| bdeg | road | | primary_link | yes |
|
|
|
|
| fgh | road | | primary | yes |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,h | road,road,road | depart,continue uturn,arrive | ,uturn:true straight:false none:false;, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@reverse
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Reverse Lane in Segregated Road with none, Service Turn Prior
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
h g f
|
|
|
|
e
|
|
|
|
d
|
|
|
|
a j b c
|
|
|
|
i
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
2016-07-07 09:31:20 -04:00
|
|
|
| nodes | name | turn:lanes:forward | highway | oneway |
|
|
|
|
| ajb | road | reverse\|through\|none | primary | yes |
|
|
|
|
| bc | road | | primary | yes |
|
|
|
|
| bdeg | road | | primary_link | yes |
|
|
|
|
| fgh | road | | primary | yes |
|
|
|
|
| ji | park | | service | no |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,h | road,road,road | depart,continue uturn,arrive | ,uturn:true straight:false none:false;, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple
|
2016-05-13 13:18:00 -04:00
|
|
|
Scenario: Don't collapse everything to u-turn / too wide
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b e
|
|
|
|
|
2017-02-15 09:12:24 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-30 03:33:08 -04:00
|
|
|
d c f
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | turn:lanes:forward |
|
|
|
|
| ab | primary | road | through\|right |
|
|
|
|
| bc | primary | road | |
|
|
|
|
| dc | primary | road | left\|through |
|
|
|
|
| be | secondary | top | |
|
|
|
|
| cf | secondary | bottom | |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-08-11 10:35:39 -04:00
|
|
|
| waypoints | turns | route | lanes |
|
|
|
|
| a,d | depart,continue right,continue right,arrive | road,road,road,road | ,straight:false right:true,, |
|
|
|
|
| d,a | depart,continue left,continue left,arrive | road,road,road,road | ,left:true straight:false,, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@simple
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Merge Lanes Onto Freeway
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c
|
|
|
|
d
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | turn:lanes:forward |
|
|
|
|
| abc | motorway | Hwy | |
|
|
|
|
| db | motorway_link | ramp | slight_right\|slight_right |
|
|
|
|
|
|
|
|
When I route I should get
|
2016-06-15 08:38:24 -04:00
|
|
|
| waypoints | turns | route | lanes |
|
2016-06-21 04:41:08 -04:00
|
|
|
| d,c | depart,merge slight left,arrive | ramp,Hwy,Hwy | ,slight right:true slight right:true, |
|
2016-05-13 13:18:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@2654 @simple
|
2016-06-15 08:38:24 -04:00
|
|
|
Scenario: Fork on motorway links - don't fork on through but use lane
|
2016-05-13 13:18:00 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
i a
|
|
|
|
j c b x
|
|
|
|
"""
|
2016-05-13 13:18:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | highway | turn:lanes:forward |
|
|
|
|
| xb | xbcj | motorway_link | |
|
|
|
|
| bc | xbcj | motorway_link | none\|slight_right |
|
|
|
|
| cj | xbcj | motorway_link | |
|
|
|
|
| ci | off | motorway_link | |
|
|
|
|
| ab | on | motorway_link | |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,j | on,xbcj | depart,arrive | ;;none:true slight right:false, |
|
|
|
|
| a,i | on,off,off | depart,turn right,arrive | ;,none:false slight right:true, |
|
2016-07-14 05:45:27 -04:00
|
|
|
|
|
|
|
#http://www.openstreetmap.org/#map=17/52.47414/13.35712
|
|
|
|
@todo @ramp @2645
|
|
|
|
Scenario: Kreuz Schoeneberg - Continue on ramp, don't merge
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
i j
|
|
|
|
k
|
|
|
|
h g l f e
|
|
|
|
d c b a
|
|
|
|
"""
|
2016-07-14 05:45:27 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | oneway | lanes | turn:lanes |
|
|
|
|
| ab | motorway | A 100 | yes | 3 | |
|
|
|
|
| bc | motorway | A 100 | yes | 4 | \|\|\|slight_right |
|
|
|
|
| cd | motorway | A 100 | yes | 3 | |
|
|
|
|
| eb | motorway_link | | yes | 1 | |
|
|
|
|
| cf | motorway_link | | yes | 1 | |
|
|
|
|
| fj | motorway_link | | yes | 1 | |
|
|
|
|
| fl | motorway_link | | yes | 1 | |
|
|
|
|
| kl | motorway_link | | yes | 1 | |
|
|
|
|
| lg | motorway_link | | yes | 2 | through\|slight_right |
|
|
|
|
| gi | motorway_link | | yes | 1 | |
|
|
|
|
| gh | motorway_link | | yes | 1 | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,d | A 100,A 100 | depart,arrive | |
|
|
|
|
| a,i | A 100,,,, | depart,off ramp slight right,fork slight left,turn right,arrive | ,none:false none:false none:false slight right:true,,straight:false slight right:true, |
|
|
|
|
| e,j | ,,, | depart,off ramp slight right,fork slight right,arrive | ,none:false none:false none:false slight right:true,,, |
|
|
|
|
| e,i | ,,,, | depart,off ramp right,fork slight left,use lane straight,arrive | ,none:false none:false none:false slight right:true,,straight:false slight right:true, |
|
|
|
|
| e,d | ,A 100,A 100 | depart,merge slight left,arrive | ,, |
|
|
|
|
| e,h | ,,,, | depart,off ramp right,fork left,use lane straight,arrive | ,none:false none:false none:false slight right:true,,straight:true slight right:false, |
|
2016-07-21 10:36:00 -04:00
|
|
|
|
|
|
|
@collapse @use-lane
|
|
|
|
Scenario: Collapse Multiple Use Lanes
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
x a b c d
|
|
|
|
e f
|
|
|
|
"""
|
2016-07-21 10:36:00 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | highway | turn:lanes:forward |
|
2016-08-08 09:44:58 -04:00
|
|
|
| ab | road | primary | through;right |
|
|
|
|
| bc | road | primary | through;right |
|
2016-07-21 10:36:00 -04:00
|
|
|
| cd | road | primary | |
|
|
|
|
| xa | road | primary | |
|
|
|
|
| be | turn | primary | |
|
|
|
|
| cf | turn | primary | |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| x,d | road,road | depart,arrive | ;straight;right:true;straight;right:true, |
|
2016-07-21 10:36:00 -04:00
|
|
|
|
2016-07-08 05:45:36 -04:00
|
|
|
@partition-lanes
|
2016-10-20 06:15:36 -04:00
|
|
|
Scenario: Partitioned turn, Slight Curve - maxspeed
|
|
|
|
Given the node map
|
|
|
|
"""
|
|
|
|
f e
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| c
|
|
|
|
a - b ' |
|
|
|
|
g d
|
|
|
|
"""
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | highway | oneway | turn:lanes:forward | maxspeed |
|
|
|
|
| ab | road | primary | yes | left\|right | 1 |
|
|
|
|
| bc | cross | primary | yes | | 1 |
|
|
|
|
| fbg | cross | primary | yes | | 1 |
|
|
|
|
| dce | cross | primary | yes | | 1 |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes | locations |
|
|
|
|
| a,g | road,cross,cross | depart,turn right,arrive | ,left:false right:true, | a,b,g |
|
|
|
|
| a,e | road,cross,cross | depart,end of road left,arrive | ;left:true right:false,left:true right:false, | a,c,e |
|
2016-10-20 06:15:36 -04:00
|
|
|
|
2016-06-30 03:31:08 -04:00
|
|
|
Scenario: Partitioned turn, Slight Curve
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
f e
|
2016-08-17 03:49:19 -04:00
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| c
|
|
|
|
a - b ' |
|
2016-09-30 03:33:08 -04:00
|
|
|
g d
|
|
|
|
"""
|
2016-06-30 03:31:08 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | highway | oneway | turn:lanes:forward |
|
|
|
|
| ab | road | primary | yes | left\|right |
|
|
|
|
| bc | cross | primary | yes | |
|
|
|
|
| fbg | cross | primary | yes | |
|
|
|
|
| dce | cross | primary | yes | |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes | locations |
|
|
|
|
| a,g | road,cross,cross | depart,turn right,arrive | ,left:false right:true, | a,b,g |
|
|
|
|
| a,e | road,cross,cross | depart,end of road left,arrive | ;left:true right:false,left:true right:false, | a,c,e |
|
2016-07-21 10:36:00 -04:00
|
|
|
|
2016-07-25 05:43:35 -04:00
|
|
|
Scenario: Lane Parsing Issue #2694
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
c
|
|
|
|
a b
|
|
|
|
d
|
|
|
|
"""
|
2016-07-25 05:43:35 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | turn:lanes:forward |
|
|
|
|
| ab | primary | left;left\|right |
|
|
|
|
| bc | primary | |
|
|
|
|
| bd | primary | |
|
2016-07-21 10:36:00 -04:00
|
|
|
|
2016-07-25 05:43:35 -04:00
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,c | ab,bc,bc | depart,turn left,arrive | ,left:true right:false, |
|
2016-08-01 08:27:38 -04:00
|
|
|
|
2016-08-01 11:20:08 -04:00
|
|
|
# http://www.openstreetmap.org/#map=19/47.97685/7.82933&layers=D
|
2016-09-20 14:39:55 -04:00
|
|
|
@todo
|
2016-08-01 11:20:08 -04:00
|
|
|
Scenario: Lane Parsing Issue #2706: None Assignments I
|
2016-08-01 08:27:38 -04:00
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
f j
|
|
|
|
|
|
|
|
a b c d e
|
|
|
|
|
|
|
|
i
|
|
|
|
g h
|
|
|
|
"""
|
2016-08-01 08:27:38 -04:00
|
|
|
|
|
|
|
And the nodes
|
|
|
|
| node | highway |
|
|
|
|
| a | traffic_signals |
|
|
|
|
| i | traffic_signals |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | oneway | turn:lanes:forward |
|
|
|
|
| ab | secondary | Wiesentalstr | | through;left\|right |
|
|
|
|
| bc | secondary | Wiesentalstr | | none\|left;through |
|
|
|
|
| cd | secondary | Wiesentalstr | | none\|left;through |
|
|
|
|
| de | residential | Wippertstr | | |
|
|
|
|
| fb | secondary | Merzhauser Str | yes | through\|through\|right |
|
|
|
|
| bg | secondary | Merzhauser Str | yes | |
|
|
|
|
| hi | secondary | Merzhauser Str | yes | left;reverse\|none\|none |
|
|
|
|
| ic | secondary_link | Merzhauser Str | yes | |
|
|
|
|
| id | secondary | Merzhauser Str | yes | through;right\|none |
|
|
|
|
| dj | secondary | Merzhauser Str | yes | |
|
|
|
|
|
|
|
|
And the relations
|
|
|
|
| type | way:from | way:to | node:via | restriction |
|
|
|
|
| restriction | fb | fb | b | no_left_turn |
|
|
|
|
| restriction | ic | cb | c | only_left_turn |
|
|
|
|
| restriction | id | dc | d | no_left_turn |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| h,a ||||
|
|
|
|
# Note: at the moment we don't care about routes, we care about the extract process triggering assertions
|
2016-08-01 11:20:08 -04:00
|
|
|
|
2016-08-04 05:16:00 -04:00
|
|
|
# https://www.openstreetmap.org/#map=19/47.99257/7.83276&layers=D
|
2016-09-20 14:39:55 -04:00
|
|
|
@todo
|
2016-08-01 11:20:08 -04:00
|
|
|
Scenario: Lane Parsing Issue #2706: None Assignments II
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
k l
|
|
|
|
j a b f
|
|
|
|
i c d e
|
|
|
|
h g
|
|
|
|
"""
|
2016-08-01 11:20:08 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | oneway | turn:lanes |
|
|
|
|
| ka | secondary | Eschholzstr | yes | left;reverse\|through\|through\|none |
|
|
|
|
| kj | unclassified | kj | yes | |
|
|
|
|
| ac | secondary | Eschholzstr | yes | left;reverse\|none\|none\|none |
|
|
|
|
| ch | secondary | Eschholzstr | yes | |
|
|
|
|
| gd | secondary | Eschholzstr | yes | left;reverse\|through\|through\|none |
|
|
|
|
| db | secondary | Eschholzstr | yes | left;reverse\|through\|through\|none |
|
|
|
|
| bl | secondary | Eschholzstr | yes | |
|
|
|
|
| fb | residential | Haslacher Str | yes | left;reverse\|left;through\|right |
|
|
|
|
| ba | secondary_link | Haslacher Str | yes | left;reverse\|left;through |
|
|
|
|
| aj | unclassified | Haslacher Str | yes | |
|
|
|
|
| ic | unclassified | Haslacher Str | yes | left;reverse\|left\|through |
|
|
|
|
| cd | secondary_link | Haslacher Str | yes | left;reverse\|left\|through |
|
|
|
|
| de | residential | Haslacher Str | yes | |
|
|
|
|
|
|
|
|
And the relations
|
|
|
|
| type | way:from | way:to | node:via | restriction |
|
|
|
|
| restriction | ka | ac | a | only_straight_on |
|
|
|
|
| restriction | ic | cd | c | only_straight_on |
|
|
|
|
| restriction | gd | db | d | only_straight_on |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| i,e ||||
|
|
|
|
# Note: at the moment we don't care about routes, we care about the extract process triggering assertions
|
2016-08-02 01:41:40 -04:00
|
|
|
|
2016-09-20 14:39:55 -04:00
|
|
|
@todo
|
2016-08-02 01:41:40 -04:00
|
|
|
Scenario: Lane Parsing Issue #2706: None Assignments III - Minimal reproduction recipe
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
l
|
|
|
|
a b
|
|
|
|
d
|
|
|
|
|
|
|
|
"""
|
2016-08-02 01:41:40 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | oneway | turn:lanes |
|
|
|
|
| db | secondary | Eschholzstr | yes | left;reverse\|through\|through\|none |
|
|
|
|
| bl | secondary | Eschholzstr | yes | |
|
|
|
|
| ba | secondary_link | Haslacher Str | yes | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| d,a ||||
|
|
|
|
# Note: at the moment we don't care about routes, we care about the extract process triggering assertions
|
2016-08-08 09:44:58 -04:00
|
|
|
|
2016-08-12 11:04:40 -04:00
|
|
|
@reverse @2730 @todo
|
2016-08-08 09:44:58 -04:00
|
|
|
Scenario: Reverse on the right
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a c
|
|
|
|
b d
|
|
|
|
f e
|
|
|
|
"""
|
2016-08-08 09:44:58 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | name | turn:lanes:forward | oneway |
|
|
|
|
| ab | primary | in | left\|through\|right;reverse | yes |
|
|
|
|
| bc | primary | left | | no |
|
|
|
|
| bd | primary | through | | no |
|
|
|
|
| be | primary | right | | no |
|
|
|
|
| bf | primary | in | | yes |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,c | in,left,left | depart,turn left,arrive | ,left:true straight:false right;uturn:false, |
|
|
|
|
| a,d | in,through,through | depart,new name straight,arrive | ,left:false straight:true right;uturn:false, |
|
|
|
|
| a,e | in,right,right | depart,turn right,arrive | ,left:false straight:false right;uturn:true, |
|
2016-06-30 03:31:08 -04:00
|
|
|
|
|
|
|
@todo @2654
|
|
|
|
#https://github.com/Project-OSRM/osrm-backend/issues/2645
|
|
|
|
#http://www.openstreetmap.org/export#map=19/52.56054/13.32152
|
|
|
|
Scenario: Kurt-Schuhmacher-Damm
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
g f
|
|
|
|
|
|
|
|
j h e
|
|
|
|
|
|
|
|
a b c
|
|
|
|
i d
|
|
|
|
"""
|
2016-06-30 03:31:08 -04:00
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | highway | oneway | turn:lanes |
|
|
|
|
| ab | | motorway_link | yes | left\|none\|right |
|
|
|
|
| bc | | primary_link | yes | |
|
|
|
|
| cd | ksd | secondary | yes | |
|
|
|
|
| cef | ksd | primary | yes | |
|
|
|
|
| hj | | motorway_link | yes | |
|
|
|
|
| eh | | secondary_link | yes | |
|
|
|
|
| gh | ksd | primary | yes | |
|
|
|
|
| hbi | ksd | secondary | yes | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,f | ,ksd,ksd | depart,turn left,arrive | ,left:true none:true right:false, |
|
|
|
|
| a,i | ,ksd,ksd | depart,turn right,arrive | ,left:false none:true right:true, |
|
2016-08-17 03:49:19 -04:00
|
|
|
|
|
|
|
Scenario: Reverse Not Allowed
|
|
|
|
Given the node map
|
|
|
|
"""
|
|
|
|
n o
|
|
|
|
f - - e\- - g-j-m
|
|
|
|
d | |
|
|
|
|
a - 1 b/- - c-i-l
|
|
|
|
h k
|
|
|
|
"""
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | highway | oneway | turn:lanes:forward |
|
|
|
|
| abc | road | secondary | yes | left\|through\|right |
|
|
|
|
| cil | road | secondary | yes | |
|
|
|
|
| mjgef | road | secondary | yes | |
|
|
|
|
| bde | road | secondary_link | yes | |
|
|
|
|
| ngch | turn | secondary | yes | |
|
|
|
|
| kijo | turn | secondary | yes | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | bearings | route | turns |
|
|
|
|
| 1,a | 90,2 180,180 | | |
|
2017-02-10 11:51:01 -05:00
|
|
|
|
|
|
|
@3379
|
|
|
|
Scenario: Don't Turn through potential through lanes
|
|
|
|
Given the node map
|
|
|
|
"""
|
|
|
|
d
|
|
|
|
|
|
|
|
|
a - - - - b - - - - - c
|
|
|
|
|
|
|
|
|
e
|
|
|
|
"""
|
|
|
|
And the ways
|
|
|
|
| nodes | name | oneway | turn:lanes:forward |
|
|
|
|
| ab | road | yes | left\|none\|none |
|
|
|
|
| bc | road | yes | |
|
|
|
|
| ebd | cross | no | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,e | road,cross,cross | depart,turn right,arrive | ,left:false none:false none:true, |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,c | road,road | depart,arrive | ;left:false none:true none:true, |
|
2017-02-10 12:30:15 -05:00
|
|
|
|
|
|
|
@3379
|
|
|
|
Scenario: Don't Turn through potential through lanes
|
|
|
|
Given the node map
|
|
|
|
"""
|
|
|
|
d
|
|
|
|
|
|
|
|
|
a - - - - b - - - - - c
|
|
|
|
|
|
|
|
|
e
|
|
|
|
"""
|
|
|
|
And the ways
|
|
|
|
| nodes | name | oneway | turn:lanes:forward |
|
|
|
|
| ab | road | yes | none\|none\|right |
|
|
|
|
| bc | road | yes | |
|
|
|
|
| ebd | cross | no | |
|
|
|
|
|
|
|
|
When I route I should get
|
|
|
|
| waypoints | route | turns | lanes |
|
|
|
|
| a,d | road,cross,cross | depart,turn left,arrive | ,none:true none:false right:false, |
|
2017-07-10 06:46:18 -04:00
|
|
|
| a,c | road,road | depart,arrive | ;none:true none:true right:false, |
|
2017-06-22 08:28:32 -04:00
|
|
|
|
|
|
|
@4189
|
|
|
|
Scenario: U-turn after a traffic light
|
|
|
|
Given the node map
|
|
|
|
"""
|
|
|
|
j k
|
|
|
|
: :
|
|
|
|
f---g-h-i
|
|
|
|
: :
|
|
|
|
a-b-c-d-e
|
|
|
|
: :
|
|
|
|
l m
|
|
|
|
"""
|
|
|
|
|
|
|
|
And the nodes
|
|
|
|
| node | highway |
|
|
|
|
| b | traffic_signals |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | name | lanes | turn:lanes | oneway |
|
|
|
|
| ab | road1 | 3 | left\|through\|through;right | yes |
|
|
|
|
| bcde | road1 | 2 | | yes |
|
|
|
|
| ihgf | road1 | 2 | | yes |
|
|
|
|
| jgcl | road2 | 2 | | yes |
|
|
|
|
| mdhk | road2 | 2 | | yes |
|
|
|
|
|
|
|
|
When I route I should get
|
2017-07-10 06:46:18 -04:00
|
|
|
| waypoints | route | turns | lanes | locations |
|
|
|
|
| a,f | road1,road1,road1 | depart,continue uturn,arrive | ;left:false straight:true straight;right:false,left:true straight:false straight;right:false;;, | a,d,f |
|