osrm-backend/features/bicycle/turn_penalty.feature

34 lines
1008 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
| from | to | route | time | distance |
| s | a | sj,ja,ja | 39s +-1 | 242m +-1 |
| s | b | sj,jb,jb | 30s +-1 | 200m +-1 |
| s | c | sj,jc,jc | 29s +-1 | 242m +-1 |
| s | d | sj,jd,jd | 20s +-1 | 200m +-1 |
| s | e | sj,je,je | 29s +-1 | 242m +-1 |
| s | f | sj,jf,jf | 30s +-1 | 200m +-1 |
| s | g | sj,jg,jg | 39s +-1 | 242m +-1 |