* upgrade to api version 4 * set bike pushing speed to 4km/h and add mode change penalty * set cycleways for two-way and one-way roads according correctly * add changelog * adjust tests according to change of the walking speed * adjust tests according to new behaviour of opposite, track and lane in one-ways * refactor the cycleway identification * comment to understand weird counterintuitive testcase * adjust sliproad test because walking speed is now slower
60 lines
2.3 KiB
Gherkin
60 lines
2.3 KiB
Gherkin
@routing @surface @bicycle
|
|
Feature: Bike - Surfaces
|
|
|
|
Background:
|
|
Given the profile "bicycle"
|
|
|
|
Scenario: Bicycle - Slow surfaces
|
|
Then routability should be
|
|
| highway | surface | bothw |
|
|
| cycleway | | 48 s |
|
|
| cycleway | asphalt | 48 s |
|
|
| cycleway | cobblestone:flattened | 72 s |
|
|
| cycleway | paving_stones | 72 s |
|
|
| cycleway | compacted | 72 s |
|
|
| cycleway | cobblestone | 120 s |
|
|
| cycleway | fine_gravel | 120 s |
|
|
| cycleway | gravel | 120 s |
|
|
| cycleway | pebblestone | 120.1 s |
|
|
| cycleway | dirt | 120 s |
|
|
| cycleway | earth | 120 s |
|
|
| cycleway | grass | 120 s |
|
|
| cycleway | mud | 240 s |
|
|
| cycleway | sand | 240.1 s |
|
|
| cycleway | sett | 72 s |
|
|
|
|
Scenario: Bicycle - Good surfaces on small paths
|
|
Then routability should be
|
|
| highway | surface | bothw |
|
|
| cycleway | | 48 s |
|
|
| path | | 60 s |
|
|
| track | | 60 s |
|
|
| track | asphalt | 60 s |
|
|
| path | asphalt | 60 s |
|
|
|
|
Scenario: Bicycle - Surfaces should not make unknown ways routable
|
|
Then routability should be
|
|
| highway | surface | bothw |
|
|
| cycleway | | 48 s |
|
|
| nosense | | |
|
|
| nosense | asphalt | |
|
|
|
|
Scenario: Bicycle - Surfaces should not increase speed when pushing bikes
|
|
Given the node map
|
|
"""
|
|
a b
|
|
c d
|
|
"""
|
|
|
|
And the ways
|
|
| nodes | highway | oneway | surface |
|
|
| ab | primary | yes | asphalt |
|
|
| cd | footway | | asphalt |
|
|
|
|
When I route I should get
|
|
| from | to | route | modes | speed |
|
|
| a | b | ab,ab | cycling,cycling | 15 km/h |
|
|
| b | a | ab,ab | pushing bike,pushing bike | 4 km/h |
|
|
| c | d | cd,cd | pushing bike,pushing bike | 4 km/h |
|
|
| d | c | cd,cd | pushing bike,pushing bike | 4 km/h |
|