Skip to content

Commit 895e4bf

Browse files
authored
Adds cucumber scenario for u turn restrictions at intersection (#4484)
1 parent cb90d58 commit 895e4bf

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

features/car/restrictions.feature

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,36 @@ Feature: Car - Turn restrictions
115115
| c | a | cj,aj,aj |
116116
| c | b | cj,bj,bj |
117117

118+
@no_turning
119+
Scenario: Car - No u-turn
120+
# https://www.openstreetmap.org/edit?node=54878482#map=19/34.05242/-117.19067
121+
Given the node map
122+
"""
123+
c
124+
3
125+
a 1 x 2 b
126+
4
127+
d
128+
"""
129+
130+
And the ways
131+
| nodes |
132+
| ax |
133+
| xb |
134+
| cx |
135+
| xd |
136+
137+
And the relations
138+
| type | way:from | way:to | node:via | restriction |
139+
| restriction | ax | ax | x | no_u_turn |
140+
| restriction | bx | bx | x | no_u_turn |
141+
| restriction | cx | cx | x | no_u_turn |
142+
| restriction | dx | dx | x | no_u_turn |
143+
144+
When I route I should get
145+
| waypoints | route | turns |
146+
| a,x,a | ax,xb,xb,xb,ax,ax | depart,new name straight,continue uturn,arrive,depart,arrive |
147+
118148
@no_turning
119149
Scenario: Car - Handle any no_* relation
120150
Given the node map

0 commit comments

Comments
 (0)