don't allow bikes on highway=construction, fixes #582
This commit is contained in:
parent
0b1d268b09
commit
a4e322f085
@ -70,3 +70,12 @@ Feature: Bike - Accessability of different way types
|
|||||||
| motorway | | | | |
|
| motorway | | | | |
|
||||||
| motorway | yes | | foot | |
|
| motorway | yes | | foot | |
|
||||||
| motorway | | yes | | foot |
|
| motorway | | yes | | foot |
|
||||||
|
|
||||||
|
@construction
|
||||||
|
Scenario: Bike - Don't allow routing on ways still under construction
|
||||||
|
Then routability should be
|
||||||
|
| highway | foot | bicycle | bothw |
|
||||||
|
| primary | | | x |
|
||||||
|
| construction | | | |
|
||||||
|
| construction | yes | | |
|
||||||
|
| construction | | yes | |
|
||||||
|
@ -30,3 +30,10 @@ Bringing bikes on trains and subways
|
|||||||
| (nil) | some_tag | | |
|
| (nil) | some_tag | | |
|
||||||
| (nil) | some_tag | no | |
|
| (nil) | some_tag | no | |
|
||||||
| (nil) | some_tag | yes | x |
|
| (nil) | some_tag | yes | x |
|
||||||
|
|
||||||
|
@construction
|
||||||
|
Scenario: Bike - Don't route on railways under construction
|
||||||
|
Then routability should be
|
||||||
|
| highway | railway | bicycle | bothw |
|
||||||
|
| primary | | | x |
|
||||||
|
| (nil) | construction | yes | |
|
||||||
|
@ -130,7 +130,12 @@ function way_function (way, numberOfNodesInWay)
|
|||||||
then
|
then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- don't route on ways or railways that are still under construction
|
||||||
|
if highway=='construction' or railway=='construction' then
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
-- access
|
-- access
|
||||||
local access = Access.find_access_tag(way, access_tags_hierachy)
|
local access = Access.find_access_tag(way, access_tags_hierachy)
|
||||||
if access_tag_blacklist[access] then
|
if access_tag_blacklist[access] then
|
||||||
|
Loading…
Reference in New Issue
Block a user