Route over alternating oneways but not reversible ones, closes #2837.

- alternating: high frequency, route over them with penalty
- reversible: low frequency, do not route over them - time dependence

- http://wiki.openstreetmap.org/wiki/Tag:oneway%3Dreversible
- http://wiki.openstreetmap.org/wiki/Tag:oneway%3Dalternating

This distinction was made at the Elbe-Labe Meetup in Dresden, with
accompanying Wiki pages and tagging scheme. Thanks all involed!

- https://github.com/Project-OSRM/osrm-backend/issues/2837
- http://wiki.openstreetmap.org/wiki/Key:oneway
This commit is contained in:
Daniel J. Hofmann
2016-10-08 18:14:35 +02:00
committed by Daniel J. H
parent 6cf99c886f
commit a13cf3f2be
5 changed files with 45 additions and 2 deletions
+9
View File
@@ -85,3 +85,12 @@ Feature: Car - Oneway streets
When I route I should get
| from | to | route |
| a | c | ab,bc,bc |
# Reversible oneways (low frequency) vs alternating oneways (high frequency).
# See: https://github.com/Project-OSRM/osrm-backend/issues/2837
Scenario: Car - Route over alternating but not reversible oneways
Then routability should be
| highway | oneway | forw | backw |
| primary | reversible | | |
| primary | alternating | x | x |
+13
View File
@@ -22,3 +22,16 @@ Feature: Car - speeds
| residential | no | 31 km/h |
| living_street | no | 18 km/h |
| service | no | 23 km/h |
# Alternating oneways have to take average waiting time into account.
Scenario: Car - scaled speeds for oneway=alternating
Then routability should be
| highway | oneway | junction | bothw | # |
| tertiary | | | 43 km/h | |
| tertiary | alternating | | 20 km/h +- 5 | |
| motorway | | | 82 km/h | implied oneway |
| motorway | alternating | | 30 km/h +- 5 | implied oneway |
| motorway | reversible | | | unroutable |
| primary | | roundabout | 63 km/h | implied oneway |
| primary | alternating | roundabout | 25 km/h +- 5 | implied oneway |
| primary | reversible | roundabout | | unroutable |