osrm-backend/features/testbot/routes.feature

38 lines
1.0 KiB
Gherkin
Raw Normal View History

2013-01-10 11:06:16 -05:00
@routing @testbot @routes @todo
Feature: OSM Route Relation
2013-08-29 13:29:13 -04:00
Background:
Given the profile "testbot"
2013-01-10 11:06:16 -05:00
2013-08-29 13:29:13 -04:00
Scenario: Prioritize ways that are part of route relations
# This scenario assumes that the testbot uses an impedance of 0.5 for ways that are part of 'testbot' routes.
2013-01-10 11:06:16 -05:00
2013-08-29 13:29:13 -04:00
Given the node map
2016-09-30 03:33:08 -04:00
"""
s t
a b c
u v
"""
2013-01-10 11:06:16 -05:00
2013-08-29 13:29:13 -04:00
And the ways
| nodes |
| ab |
| bc |
| as |
| stb |
| bu |
| uvc |
And the relations
| type | route | way:route |
| route | testbot | as,stb |
| route | testbot | bu,uvc |
When I route I should get
| from | to | route | distance | time |
| b | c | bc | 300m +-1 | 30s +-1 |
| c | b | bc | 300m +-1 | 30s +-1 |
| a | b | as,stb | 500m +-1 | 50s +-1 |
| b | a | stb,as | 500m +-1 | 50s +-1 |