-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added post process logic to collapse segregated turn instructions #4925
Changes from 35 commits
7b74910
1d3eac5
eea551d
b56d669
ea47f79
9a11432
20f47e6
482529e
e7c7f3e
9c81b73
b72b9de
0bf22f8
e9c6116
7d5e912
f956ddd
4690c93
8385f6a
c6b1d57
07a2a2d
06d11a0
832b52d
99275c6
3e0084a
6ad4d27
492e2fa
6578825
6ed640c
7027cb1
acad9f1
468bbec
6749f8b
fbbba61
498ee5e
18e2ad3
37f74ca
2f341b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,19 +13,23 @@ Feature: Divided road entry | |
d-------e-----f | ||
| | ||
| | ||
g | ||
i---g---j | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The test modification changes result of If There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above - intersection before the turn was added so the |
||
| | ||
| | ||
h | ||
""" | ||
|
||
And the ways | ||
| nodes | name | highway | oneway | | ||
| abc | main st | residential | -1 | | ||
| def | main st | residential | yes | | ||
| be | main st | residential | | | ||
| eg | side st | residential | | | ||
| nodes | name | highway | oneway | | ||
| abc | main st | residential | -1 | | ||
| def | main st | residential | yes | | ||
| be | main st | residential | | | ||
| egh | side st | residential | | | ||
| igj | maple st | residential | | | ||
|
||
When I route I should get | ||
| waypoints | route | turns | | ||
| g,a | side st,main st,main st| depart,end of road left,arrive | | ||
| h,a | side st,main st,main st| depart,end of road left,arrive | | ||
|
||
|
||
# Similar to previous one, but the joining way is tagged with the side-street name | ||
|
@@ -37,18 +41,22 @@ Feature: Divided road entry | |
d-------e-----f | ||
| | ||
| | ||
g | ||
i---g---j | ||
| | ||
| | ||
h | ||
""" | ||
|
||
And the ways | ||
| nodes | name | highway | oneway | | ||
| abc | main st | residential | -1 | | ||
| def | main st | residential | yes | | ||
| beg | side st | residential | | | ||
| nodes | name | highway | oneway | | ||
| abc | main st | residential | -1 | | ||
| def | main st | residential | yes | | ||
| begh | side st | residential | | | ||
| igj | maple st | residential | | | ||
|
||
When I route I should get | ||
| waypoints | route | turns | | ||
| g,a | side st,main st,main st| depart,end of road left,arrive | | ||
| h,a | side st,main st,main st| depart,end of road left,arrive | | ||
|
||
|
||
# Center join named after crossroad | ||
|
@@ -100,3 +108,32 @@ Feature: Divided road entry | |
When I route I should get | ||
| waypoints | route | turns | | ||
| g,a | side st,main st,main st| depart,turn left,arrive | | ||
|
||
# Verify end of road left turn across divided roads | ||
Scenario: Join on a divided road, named after the side street | ||
Given the node map | ||
""" | ||
a-----h--b-----c | ||
| | | ||
d-----i--e-----f | ||
| | | ||
| | | ||
m---j--g---n | ||
| | | ||
| | | ||
k l | ||
""" | ||
|
||
And the ways | ||
| nodes | name | highway | oneway | | ||
| ahbc | main st | residential | -1 | | ||
| dief | main st | residential | yes | | ||
| begl | side st | residential | -1 | | ||
| hijk | side st | residential | yes | | ||
| mjgn | maple st| residential | no | | ||
|
||
When I route I should get | ||
| waypoints | route | turns | | ||
| l,a | side st,main st,main st| depart,end of road left,arrive | | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -301,7 +301,7 @@ Feature: Turn Lane Guidance | |
| 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, | | ||
| i,l | cross,cross,cross | depart,continue uturn,arrive | ,left:true straight:false;left:true straight:false;left:true straight:false;left:false straight:true, | | ||
|
||
@partition-lanes | ||
Scenario: Turn Lanes at Segregated Road | ||
|
@@ -937,48 +937,52 @@ Feature: Turn Lane Guidance | |
Scenario: Partitioned turn, Slight Curve - maxspeed | ||
Given the node map | ||
""" | ||
f e | ||
| | | ||
| | | ||
| c | ||
a - b ' | | ||
g d | ||
f e | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The PR moves maneuvers locations to node
for this test and tests below. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The mini map was updated so there would be an intersection prior to the turn so |
||
| | | ||
i | | | ||
| | c | ||
h - a - b ' | | ||
j g d | ||
""" | ||
|
||
And the ways | ||
| nodes | name | highway | oneway | turn:lanes:forward | maxspeed | | ||
| ha | road | primary | yes | | 1 | | ||
| ab | road | primary | yes | left\|right | 1 | | ||
| bc | cross | primary | yes | | 1 | | ||
| fbg | cross | primary | yes | | 1 | | ||
| dce | cross | primary | yes | | 1 | | ||
| iaj | kross | primary | no | | 1 | | ||
|
||
When I route I should get | ||
| 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 | | ||
| h,g | road,cross,cross | depart,turn right,arrive | ;,left:false right:true, | h,b,g | | ||
| h,e | road,cross,cross | depart,end of road left,arrive | ;,left:true right:false;left:true right:false, | h,b,e | | ||
|
||
Scenario: Partitioned turn, Slight Curve | ||
Given the node map | ||
""" | ||
f e | ||
| | | ||
| | | ||
| c | ||
a - b ' | | ||
g d | ||
f e | ||
| | | ||
i | | | ||
| | c | ||
h - a - b ' | | ||
j g d | ||
""" | ||
|
||
And the ways | ||
| nodes | name | highway | oneway | turn:lanes:forward | | ||
| ha | road | primary | yes | | | ||
| ab | road | primary | yes | left\|right | | ||
| bc | cross | primary | yes | | | ||
| fbg | cross | primary | yes | | | ||
| dce | cross | primary | yes | | | ||
| iaj | kross | primary | no | | | ||
|
||
When I route I should get | ||
| 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 | | ||
| waypoints | route | turns | lanes | locations | | ||
| h,g | road,cross,cross | depart,turn right,arrive | ;,left:false right:true, | h,b,g | | ||
| h,e | road,cross,cross | depart,end of road left,arrive | ;,left:true right:false;left:true right:false, | h,b,e | | ||
|
||
Scenario: Lane Parsing Issue #2694 | ||
Given the node map | ||
|
@@ -1244,4 +1248,4 @@ Feature: Turn Lane Guidance | |
|
||
When I route I should get | ||
| 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 | | ||
| a,f | road1,road1,road1 | depart,continue uturn,arrive | ,;left:true straight:false straight;right:false;;, | a,c,f | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change of locations does not seem necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to match current map - it was producing odd results