2012-12-03 05:05:51 -05:00
|
|
|
@routing @bicycle @stop_area @todo
|
|
|
|
Feature: Bike - Stop areas for public transport
|
2014-03-27 16:46:53 -04:00
|
|
|
# Platforms and railway/bus lines are connected using a relation rather that a way, as specified in:
|
|
|
|
# http://wiki.openstreetmap.org/wiki/Tag:public_transport%3Dstop_area
|
2012-12-03 05:05:51 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Background:
|
|
|
|
Given the profile "bicycle"
|
2012-12-03 05:05:51 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
Scenario: Bike - Platforms tagged using public_transport
|
|
|
|
Then routability should be
|
|
|
|
| highway | public_transport | bicycle | bothw |
|
|
|
|
| primary | | | x |
|
|
|
|
| (nil) | platform | | x |
|
|
|
|
|
|
|
|
Scenario: Bike - railway platforms
|
|
|
|
Given the node map
|
2016-09-30 03:33:08 -04:00
|
|
|
"""
|
|
|
|
a b c d
|
|
|
|
s t
|
|
|
|
"""
|
2012-12-03 05:05:51 -05:00
|
|
|
|
|
|
|
And the nodes
|
2013-08-29 13:29:13 -04:00
|
|
|
| node | public_transport |
|
|
|
|
| c | stop_position |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | highway | railway | bicycle | public_transport |
|
|
|
|
| abcd | (nil) | train | yes | |
|
|
|
|
| st | (nil) | (nil) | | platform |
|
2012-12-03 05:05:51 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
And the relations
|
|
|
|
| type | public_transport | node:stop | way:platform |
|
|
|
|
| public_transport | stop_area | c | st |
|
2012-12-03 05:05:51 -05:00
|
|
|
|
2013-08-29 13:29:13 -04:00
|
|
|
When I route I should get
|
2016-03-31 19:25:08 -04:00
|
|
|
| from | to | route |
|
|
|
|
| a | d | abcd,abcd |
|
|
|
|
| s | t | st,st |
|
|
|
|
| s | d | /st,.+,abcd/,abcd/ |
|