-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- v5.27.1
- v5.27.0
- v5.27.0-rc.1
- v5.26.0
- v5.26.0-rc.2
- v5.26.0-rc.1
- v5.25.0
- v5.25.0-rc.2
- v5.25.0-rc.1
- v5.24.0
- v5.23.0
- v5.23.0-rc.2
- v5.23.0-rc.1
- v5.22.0
- v5.22.0+customsnapping.5
- v5.22.0+customsnapping.4
- v5.22.0+customsnapping.3
- v5.22.0+customsnapping.2
- v5.22.0+customsnapping.1
- v5.22.0-rc.2
- v5.22.0-rc.1
- v5.22.0-customsnapping.3
- v5.22.0-customsnapping.2
- v5.22.0-customsnapping.1
- v5.21.0
- v5.21.0-rc.1
- v5.21.0-customsnapping.11
- v5.21.0-customsnapping.10
- v5.21.0-customsnapping.9
- v5.21.0-customsnapping.8
- v5.21.0-customsnapping.7
- v5.21.0-customsnapping.6
- v5.21.0-customsnapping.5
- v5.21.0-customsnapping.4
- v5.21.0-customsnapping.3
- v5.21.0-customsnapping.2
- v5.21.0-customsnapping.1
- v5.20.1-rc.4
- v5.20.1-rc.3
- v5.20.1-rc.2
- v5.20.1-rc.1
- v5.20.0
- v5.20.0-rc.6
- v5.20.0-rc.5
- v5.20.0-rc.4
- v5.20.0-rc.3
- v5.20.0-rc.2
- v5.20.0-rc.1
- v5.20.0-alpha.4
- v5.20.0-alpha.3
- v5.20.0-alpha.2
- v5.20.0-alpha.1
- v5.19.0
- v5.19.0-rc.1
- v5.18.0
- v5.18.0-rc.1
- v5.18.0-moarshm.5
- v5.18.0-moarshm.4
- v5.18.0-moarshm.3
- v5.18.0-moarshm.2
- v5.18.0-moarshm.1
- v5.17.3
- v5.17.2
- v5.17.1
- v5.17.0
- v5.17.0-rc.5
- v5.17.0-rc.4
- v5.17.0-rc.3
- v5.17.0-rc.2
- v5.17.0-rc.1
- v5.16.6
- v5.16.5
- v5.16.4
- v5.16.3
- v5.16.2
- v5.16.1
- v5.16.0
- v5.16.0-rc.7
- v5.16.0-rc.6
- v5.16.0-rc.5
- v5.16.0-rc.4
- v5.16.0-rc.3
- v5.16.0-rc.2
- v5.16.0-rc.1
- v5.15.3
- v5.15.2
- v5.15.1
- v5.15.0
- v5.15.0-rc.3
- v5.15.0-rc.2
- v5.15.0-rc.1
- v5.15.0-latest.4
- v5.15.0-latest.3
- v5.15.0-latest.2
- v5.15.0-lastest.2
- v5.15.0-lastest.1
- v5.14.3
- v5.14.2
- v5.14.1
- v5.14.0
- v5.14.0-rc.1
- v5.13.0
- v5.13.0-rc.4
- v5.13.0-rc.3
- v5.13.0-rc.2
- v5.13.0-rc.1
- v5.13.0-glibc.2
- v5.13.0-glibc.1
- v5.13.0-cardinal.1
- v5.12.0
- v5.12.0-roundaboutexits.1
- v5.12.0-rc.1
- v5.11.0
- v5.11.0-rc.3
- v5.11.0-rc.2
- v5.11.0-rc.1
- v5.10.0
- v5.10.0-rc.2
- v5.10.0-rc.1
- v5.9.2
- v5.9.1
- v5.9.0
- v5.9.0-rc.3
- v5.9.0-rc.2
- v5.9.0-rc.1
- v5.8.1
- v5.8.0
- v5.8.0-rc.1
- v5.8.0-latest.1
Showing
9 changed files
with
279 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
Feature: Check zero speed updates | ||
|
||
Scenario: Matching on restricted way, single segment | ||
Given the query options | ||
| geometries | geojson | | ||
| annotations | true | | ||
|
||
Given the node map | ||
""" | ||
a-1--b--c-2-d | ||
""" | ||
|
||
And the ways | ||
| nodes | | ||
| abcd | | ||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
And the speed file | ||
""" | ||
2,3,0 | ||
""" | ||
|
||
When I match I should get | ||
| trace | code | | ||
| 12 | NoMatch | | ||
|
||
|
||
Scenario: Matching restricted way, both segments | ||
Given the node map | ||
""" | ||
a-1--b-2-c | ||
""" | ||
|
||
And the ways | ||
| nodes | oneway | | ||
| abc | no | | ||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
And the speed file | ||
""" | ||
2,3,0 | ||
3,2,0 | ||
""" | ||
|
||
When I match I should get | ||
| trace | code | | ||
| 12 | NoMatch | | ||
|
||
|
||
Scenario: Matching on restricted oneway | ||
Given the node map | ||
""" | ||
a-1--b-2-c | ||
""" | ||
|
||
And the ways | ||
| nodes | oneway | | ||
| abc | yes | | ||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
And the speed file | ||
""" | ||
2,3,0 | ||
""" | ||
|
||
When I match I should get | ||
| trace | code | | ||
| 12 | NoMatch | | ||
|
||
|
||
Scenario: Routing on restricted way | ||
Given the node map | ||
""" | ||
a-1-b-2-c | ||
""" | ||
|
||
And the ways | ||
| nodes | oneway | | ||
| abc | no | | ||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
And the speed file | ||
""" | ||
2,3,0 | ||
3,2,0 | ||
""" | ||
|
||
When I route I should get | ||
| from | to | code | | ||
| 1 | 2 | NoRoute | | ||
|
||
|
||
Scenario: Routing on restricted oneway | ||
Given the node map | ||
""" | ||
a-1-b-2-c | ||
""" | ||
|
||
And the ways | ||
| nodes | oneway | | ||
| abc | yes | | ||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
And the speed file | ||
""" | ||
2,3,0 | ||
3,2,0 | ||
""" | ||
|
||
When I route I should get | ||
| from | to | bearings | code | | ||
| 1 | 2 | 270 270 | NoRoute | | ||
|
||
|
||
Scenario: Via routing on restricted oneway | ||
Given the node map | ||
""" | ||
a-1-b-2-c-3-d | ||
""" | ||
|
||
And the ways | ||
| nodes | oneway | | ||
| abc | no | | ||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
And the speed file | ||
""" | ||
2,3,0 | ||
3,2,0 | ||
""" | ||
|
||
When I route I should get | ||
| waypoints | code | | ||
| 1,2,3 | NoRoute | | ||
| 3,2,1 | NoRoute | | ||
|
||
|
||
@trip | ||
Scenario: Trip | ||
Given the node map | ||
""" | ||
a b | ||
c d | ||
""" | ||
|
||
And the ways | ||
| nodes | | ||
| ab | | ||
| bc | | ||
| cb | | ||
| da | | ||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
And the speed file | ||
""" | ||
1,2,0 | ||
2,1,0 | ||
""" | ||
|
||
When I plan a trip I should get | ||
| waypoints | trips | code | | ||
| a,b,c,d | abcda | NoTrips | | ||
| d,b,c,a | dbcad | NoTrips | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.