Skip to content

Commit

Permalink
Test for turn angle calculation the initial road order breaking, #4331
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase committed Sep 18, 2017
1 parent 5661726 commit 00fd869
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions features/guidance/turn.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1349,3 +1349,24 @@ Feature: Simple Turns
When I route I should get
| waypoints | route | turns |
| a,d | ab,dc,dc | depart,turn left,arrive |


# https://www.openstreetmap.org/node/1332083066
Scenario: Turns ordering must respect initial bearings
Given the node map
"""
a . be .
\ c.
d/ .f . g
"""

And the ways
| nodes | highway | oneway |
| ab | primary | yes |
| bcd | primary | yes |
| befg | primary | yes |

When I route I should get
| waypoints | route | turns |
| a,d | ab,bcd,bcd | depart,fork slight left,arrive |
| a,g | ab,befg,befg | depart,fork slight right,arrive |

0 comments on commit 00fd869

Please sign in to comment.