simple test for routing on areas
This commit is contained in:
parent
b95596d6b7
commit
ea90627e02
49
features/bicycle/area.feature
Normal file
49
features/bicycle/area.feature
Normal file
@ -0,0 +1,49 @@
|
||||
@routing @bicycle @area
|
||||
Feature: Bike - Squares and other areas
|
||||
|
||||
Background:
|
||||
Given the speedprofile "bicycle"
|
||||
|
||||
Scenario: Bike - Route along edge of a squares
|
||||
Given the node map
|
||||
| x | |
|
||||
| a | b |
|
||||
| d | c |
|
||||
|
||||
And the ways
|
||||
| nodes | area | highway |
|
||||
| xa | | primary |
|
||||
| abcda | yes | residential |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | b | abcda |
|
||||
| a | d | abcda |
|
||||
| b | c | abcda |
|
||||
| c | b | abcda |
|
||||
| c | d | abcda |
|
||||
| d | c | abcda |
|
||||
| d | a | abcda |
|
||||
| a | d | abcda |
|
||||
|
||||
Scenario: Bike - Don't route on buildings
|
||||
Given the node map
|
||||
| x | |
|
||||
| a | b |
|
||||
| d | c |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | area | building | access |
|
||||
| xa | primary | | | |
|
||||
| abcda | (nil) | yes | yes | yes |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route |
|
||||
| a | b | |
|
||||
| a | d | |
|
||||
| b | c | |
|
||||
| c | b | |
|
||||
| c | d | |
|
||||
| d | c | |
|
||||
| d | a | |
|
||||
| a | d | |
|
Loading…
Reference in New Issue
Block a user