Skip to content

Commit

Permalink
Test case for a highway fork with a link
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase committed Feb 21, 2018
1 parent 8788b0f commit 49811e1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions features/guidance/motorway.feature
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,25 @@ Feature: Motorway Guidance
| a,c | ,, | depart,fork slight left,arrive |
| a,e | ,,, | depart,fork slight right,fork slight left,arrive |
| a,f | ,,, | depart,fork slight right,fork slight right,arrive |


# https://www.openstreetmap.org/#map=19/53.46186/-2.24509
Scenario: Highway Fork with a Link
Given the node map
"""
/-----------d
a-b-c------------e
\-----------f
"""

And the ways
| nodes | highway |
| abce | motorway |
| cf | motorway |
| cd | motorway_link |

When I route I should get
| waypoints | route | turns |
| a,d | abce,cd,cd | depart,turn straight,arrive |
| a,e | abce,abce,abce | depart,fork slight left,arrive |
| a,f | abce,cf,cf | depart,fork slight right,arrive |

0 comments on commit 49811e1

Please sign in to comment.