-
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.
Save both forward and reverse datasources.
- Loading branch information
Showing
9 changed files
with
97 additions
and
31 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
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,34 @@ | ||
@routing @speed @traffic | ||
Feature: Traffic - speeds | ||
|
||
Scenario: There should be different forward/reverse datasources | ||
Given the profile "testbot" | ||
|
||
And the node map | ||
""" | ||
a b c d e f g h i | ||
""" | ||
|
||
And the ways | ||
| nodes | highway | | ||
| abcdefghi | primary | | ||
|
||
And the contract extra arguments "--segment-speed-file {speeds_file}" | ||
And the customize extra arguments "--segment-speed-file {speeds_file}" | ||
|
||
# Note: 180km/h == 50m/s for speed annotations | ||
And the speed file | ||
""" | ||
1,2,180,1 | ||
2,1,180,1 | ||
3,4,180,1 | ||
5,6,180,1 | ||
8,7,180,1 | ||
""" | ||
And the query options | ||
| annotations | datasources,speed | | ||
|
||
When I route I should get | ||
| from | to | route | a:datasources | a:speed | | ||
| a | i | abcdefghi,abcdefghi | 1:0:1:0:1:0:0:0 | 50:10:50:10:50:10:10:10 | | ||
| i | a | abcdefghi,abcdefghi | 0:1:0:0:0:0:0:1 | 10:50:10:10:10:10:10:50 | |
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
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
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