osrm-backend/features/bicycle/turn_penalty.feature

33 lines
983 B
Gherkin
Raw Normal View History

2013-02-23 02:33:33 -05:00
@routing @bicycle @turn_penalty
Feature: Turn Penalties
Background:
2013-08-29 13:29:13 -04:00
Given the profile "turnbot"
2013-02-23 02:33:33 -05:00
Scenario: Bike - turns should incur a delay that depend on the angle
Given the node map
2013-08-29 13:29:13 -04:00
| c | d | e |
| b | j | f |
| a | s | g |
2013-02-23 02:33:33 -05:00
And the ways
2013-08-29 13:29:13 -04:00
| nodes |
| sj |
| ja |
| jb |
| jc |
| jd |
| je |
| jf |
| jg |
2013-02-23 02:33:33 -05:00
When I route I should get
2013-08-29 13:29:13 -04:00
| from | to | route | time | distance |
| s | a | sj,ja | 39s +-1 | 242m +-1 |
| s | b | sj,jb | 30s +-1 | 200m +-1 |
| s | c | sj,jc | 29s +-1 | 242m +-1 |
| s | d | sj,jd | 20s +-1 | 200m +-1 |
| s | e | sj,je | 29s +-1 | 242m +-1 |
| s | f | sj,jf | 30s +-1 | 200m +-1 |
| s | g | sj,jg | 39s +-1 | 242m +-1 |