osrm-backend/features/testbot/uturn.feature

93 lines
2.3 KiB
Gherkin
Raw Normal View History

2014-10-09 08:30:06 -04:00
@routing @uturn @via @testbot
2014-07-22 05:50:46 -04:00
Feature: U-turns at via points
Background:
Given the profile "testbot"
Scenario: U-turns at via points disabled by default
Given the node map
| a | b | c | d |
| | e | f | g |
And the ways
| nodes |
| ab |
| bc |
| cd |
| be |
| dg |
| ef |
| fg |
When I route I should get
2016-03-23 08:04:23 -04:00
| waypoints | route |
| a,e,c | ab,be,be,ef,fg,dg,cd,cd |
2014-07-22 05:50:46 -04:00
Scenario: Query param to allow U-turns at all via points
Given the node map
| a | b | c | d |
| | e | f | g |
And the query options
| uturns | true |
And the ways
| nodes |
| ab |
| bc |
| cd |
| be |
| dg |
| ef |
| fg |
When I route I should get
2016-03-31 20:46:27 -04:00
| waypoints | route |
| a,e,c | ab,be,be,be,bc,bc |
2014-07-22 05:50:46 -04:00
Scenario: Instructions at via points at u-turns
Given the node map
| a | b | c | d |
| | e | f | g |
And the query options
| uturns | true |
And the ways
| nodes |
| ab |
| bc |
| cd |
| be |
| dg |
| ef |
| fg |
When I route I should get
2016-03-23 08:04:23 -04:00
| waypoints | route |
| a,e,c | ab,be,be,be,bc,bc |
2015-11-30 23:23:32 -05:00
Scenario: u-turn mixed with non-uturn vias
Given the node map
| a | 1 | b | 3 | c | 5 | d |
| | | 2 | | | | 4 |
| | | e | | f | | g |
And the query options
| uturns | true |
And the ways
2016-04-05 08:51:27 -04:00
| nodes | oneway |
| ab | no |
| bc | no |
| cd | no |
| be | yes |
| dg | no |
| ef | no |
| fg | no |
2015-11-30 23:23:32 -05:00
When I route I should get
2016-04-05 08:51:27 -04:00
| waypoints | route |
| 1,2,3,4,5 | ab,be,be,be,ef,fg,dg,cd,bc,bc,bc,cd,dg,dg,dg,cd,cd |
2015-11-30 23:23:32 -05:00