2013-09-12 08:15:50 -04:00
|
|
|
@routing @surface @bicycle
|
|
|
|
Feature: Bike - Surfaces
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "bicycle"
|
|
|
|
|
|
|
|
Scenario: Bicycle - Slow surfaces
|
|
|
|
Then routability should be
|
|
|
|
| highway | surface | bothw |
|
2016-10-11 10:21:55 -04:00
|
|
|
| cycleway | | 48 s |
|
2016-11-17 14:41:14 -05:00
|
|
|
| cycleway | asphalt | 47.9 s|
|
2016-10-11 10:21:55 -04:00
|
|
|
| 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 s |
|
|
|
|
| cycleway | dirt | 120 s |
|
|
|
|
| cycleway | earth | 120 s |
|
|
|
|
| cycleway | grass | 120 s |
|
|
|
|
| cycleway | mud | 240 s |
|
|
|
|
| cycleway | sand | 240 s |
|
2013-09-12 08:15:50 -04:00
|
|
|
|
|
|
|
Scenario: Bicycle - Good surfaces on small paths
|
|
|
|
Then routability should be
|
|
|
|
| highway | surface | bothw |
|
2016-10-11 10:21:55 -04:00
|
|
|
| cycleway | | 48 s |
|
2016-11-17 14:41:14 -05:00
|
|
|
| path | | 59.9 s|
|
2016-10-11 10:21:55 -04:00
|
|
|
| track | | 60 s |
|
|
|
|
| track | asphalt | 60 s |
|
|
|
|
| path | asphalt | 60 s |
|
2013-09-12 08:15:50 -04:00
|
|
|
|
|
|
|
Scenario: Bicycle - Surfaces should not make unknown ways routable
|
|
|
|
Then routability should be
|
|
|
|
| highway | surface | bothw |
|
2016-10-11 10:21:55 -04:00
|
|
|
| cycleway | | 48 s |
|
2013-09-12 08:15:50 -04:00
|
|
|
| nosense | | |
|
|
|
|
| nosense | asphalt | |
|
2016-06-25 06:01:50 -04:00
|
|
|
|
|
|
|
Scenario: Bicycle - Surfaces should not increase speed when pushing bikes
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b
|
|
|
|
c d
|
|
|
|
"""
|
2016-06-25 06:01:50 -04:00
|
|
|
|
|
|
|
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 | 6 km/h |
|
|
|
|
| c | d | cd,cd | pushing bike,pushing bike | 6 km/h |
|
|
|
|
| d | c | cd,cd | pushing bike,pushing bike | 6 km/h |
|