Skip to content

Commit 6d2860e

Browse files
committed
Test case for a highway fork with a link
1 parent d2764bc commit 6d2860e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

features/guidance/motorway.feature

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,25 @@ Feature: Motorway Guidance
323323
| a,c | ,, | depart,fork slight left,arrive |
324324
| a,e | ,,, | depart,fork slight right,fork slight left,arrive |
325325
| a,f | ,,, | depart,fork slight right,fork slight right,arrive |
326+
327+
328+
# https://www.openstreetmap.org/#map=19/53.46186/-2.24509
329+
Scenario: Highway Fork with a Link
330+
Given the node map
331+
"""
332+
/-----------d
333+
a-b-c------------e
334+
\-----------f
335+
"""
336+
337+
And the ways
338+
| nodes | highway |
339+
| abce | motorway |
340+
| cf | motorway |
341+
| cd | motorway_link |
342+
343+
When I route I should get
344+
| waypoints | route | turns |
345+
| a,d | abce,cd,cd | depart,turn straight,arrive |
346+
| a,e | abce,abce,abce | depart,fork slight left,arrive |
347+
| a,f | abce,cf,cf | depart,fork slight right,arrive |

0 commit comments

Comments
 (0)