Add support for bicycle_road=yes
This commit is contained in:
parent
603e72bb7c
commit
5fe5cca3a1
8 changed files with 172 additions and 158 deletions
|
@ -63,6 +63,8 @@ assign defaultaccess =
|
||||||
assign bikeaccess
|
assign bikeaccess
|
||||||
or any_cycleroute
|
or any_cycleroute
|
||||||
switch bicycle=
|
switch bicycle=
|
||||||
|
switch bicycle_road=yes
|
||||||
|
1
|
||||||
switch vehicle=
|
switch vehicle=
|
||||||
defaultaccess
|
defaultaccess
|
||||||
switch or vehicle=private vehicle=no
|
switch or vehicle=private vehicle=no
|
||||||
|
@ -145,7 +147,7 @@ assign costfactor
|
||||||
switch tracktype=grade3 10.0
|
switch tracktype=grade3 10.0
|
||||||
switch tracktype=grade4 20.0
|
switch tracktype=grade4 20.0
|
||||||
switch tracktype=grade5 30.0
|
switch tracktype=grade5 30.0
|
||||||
switch bicycle=designated 2.0
|
switch or bicycle=designated bicycle_road=yes 2.0
|
||||||
switch ispaved 2.0 100.0
|
switch ispaved 2.0 100.0
|
||||||
10.0
|
10.0
|
||||||
|
|
||||||
|
@ -167,7 +169,7 @@ assign priorityclassifier =
|
||||||
else if ( isresidentialorliving ) then 6
|
else if ( isresidentialorliving ) then 6
|
||||||
else if ( highway=service ) then 6
|
else if ( highway=service ) then 6
|
||||||
else if ( highway=cycleway ) then 6
|
else if ( highway=cycleway ) then 6
|
||||||
else if ( bicycle=designated ) then 6
|
else if ( or bicycle=designated bicycle_road=yes ) then 6
|
||||||
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
||||||
else if ( highway=bridleway|road|path|footway ) then 4
|
else if ( highway=bridleway|road|path|footway ) then 4
|
||||||
else if ( highway=steps ) then 2
|
else if ( highway=steps ) then 2
|
||||||
|
|
|
@ -48,7 +48,8 @@ assign bikeaccess =
|
||||||
if any_cycleroute then true
|
if any_cycleroute then true
|
||||||
else if bicycle= then
|
else if bicycle= then
|
||||||
(
|
(
|
||||||
if vehicle= then
|
if bicycle_road=yes then true
|
||||||
|
else if vehicle= then
|
||||||
(
|
(
|
||||||
if access= then not or motorroad=yes highway=footway
|
if access= then not or motorroad=yes highway=footway
|
||||||
else if access=private|no then false
|
else if access=private|no then false
|
||||||
|
@ -169,7 +170,7 @@ assign costfactor
|
||||||
switch tracktype=grade3 10.0
|
switch tracktype=grade3 10.0
|
||||||
switch tracktype=grade4 20.0
|
switch tracktype=grade4 20.0
|
||||||
switch tracktype=grade5 30.0
|
switch tracktype=grade5 30.0
|
||||||
switch bicycle=designated 1.3
|
switch or bicycle=designated bicycle_road=yes 1.3
|
||||||
switch ispaved 2.0 100.0
|
switch ispaved 2.0 100.0
|
||||||
10.0
|
10.0
|
||||||
|
|
||||||
|
@ -191,7 +192,7 @@ assign priorityclassifier =
|
||||||
else if ( isresidentialorliving ) then 6
|
else if ( isresidentialorliving ) then 6
|
||||||
else if ( highway=service ) then 6
|
else if ( highway=service ) then 6
|
||||||
else if ( highway=cycleway ) then 6
|
else if ( highway=cycleway ) then 6
|
||||||
else if ( bicycle=designated ) then 6
|
else if ( or bicycle=designated bicycle_road=yes ) then 6
|
||||||
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
||||||
else if ( highway=bridleway|road|path|footway ) then 4
|
else if ( highway=bridleway|road|path|footway ) then 4
|
||||||
else if ( highway=steps ) then 2
|
else if ( highway=steps ) then 2
|
||||||
|
|
|
@ -58,6 +58,8 @@ assign defaultaccess
|
||||||
assign bikeaccess
|
assign bikeaccess
|
||||||
or any_cycleroute
|
or any_cycleroute
|
||||||
switch bicycle=
|
switch bicycle=
|
||||||
|
switch bicycle_road=yes
|
||||||
|
1
|
||||||
switch vehicle=
|
switch vehicle=
|
||||||
defaultaccess
|
defaultaccess
|
||||||
switch or vehicle=private vehicle=no
|
switch or vehicle=private vehicle=no
|
||||||
|
@ -140,7 +142,7 @@ assign costfactor
|
||||||
switch tracktype=grade3 10.0
|
switch tracktype=grade3 10.0
|
||||||
switch tracktype=grade4 20.0
|
switch tracktype=grade4 20.0
|
||||||
switch tracktype=grade5 30.0
|
switch tracktype=grade5 30.0
|
||||||
switch bicycle=designated 2.0
|
switch or bicycle=designated bicycle_road=yes 2.0
|
||||||
switch ispaved 2.0 100.0
|
switch ispaved 2.0 100.0
|
||||||
10.0
|
10.0
|
||||||
|
|
||||||
|
@ -162,7 +164,7 @@ assign priorityclassifier =
|
||||||
else if ( isresidentialorliving ) then 6
|
else if ( isresidentialorliving ) then 6
|
||||||
else if ( highway=service ) then 6
|
else if ( highway=service ) then 6
|
||||||
else if ( highway=cycleway ) then 6
|
else if ( highway=cycleway ) then 6
|
||||||
else if ( bicycle=designated ) then 6
|
else if ( or bicycle=designated bicycle_road=yes ) then 6
|
||||||
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
||||||
else if ( highway=bridleway|road|path|footway ) then 4
|
else if ( highway=bridleway|road|path|footway ) then 4
|
||||||
else if ( highway=steps ) then 2
|
else if ( highway=steps ) then 2
|
||||||
|
|
|
@ -640,6 +640,8 @@ sidewalk:bicycle;0000000439 yes designated
|
||||||
sidewalk:left:bicycle;0000001722 yes designated
|
sidewalk:left:bicycle;0000001722 yes designated
|
||||||
sidewalk:right:bicycle;0000002667 yes designated
|
sidewalk:right:bicycle;0000002667 yes designated
|
||||||
|
|
||||||
|
bicycle_road;0000006521 yes designated
|
||||||
|
|
||||||
---context:node
|
---context:node
|
||||||
|
|
||||||
highway;0001314954 bus_stop
|
highway;0001314954 bus_stop
|
||||||
|
|
|
@ -36,6 +36,8 @@ assign defaultaccess
|
||||||
assign bikeaccess
|
assign bikeaccess
|
||||||
or any_cycleroute
|
or any_cycleroute
|
||||||
switch bicycle=
|
switch bicycle=
|
||||||
|
switch bicycle_road=yes
|
||||||
|
1
|
||||||
switch vehicle=
|
switch vehicle=
|
||||||
defaultaccess
|
defaultaccess
|
||||||
switch or vehicle=private vehicle=no
|
switch or vehicle=private vehicle=no
|
||||||
|
@ -85,7 +87,7 @@ assign priorityclassifier =
|
||||||
else if ( isresidentialorliving ) then 6
|
else if ( isresidentialorliving ) then 6
|
||||||
else if ( highway=service ) then 6
|
else if ( highway=service ) then 6
|
||||||
else if ( highway=cycleway ) then 6
|
else if ( highway=cycleway ) then 6
|
||||||
else if ( bicycle=designated ) then 6
|
else if ( or bicycle=designated bicycle_road=yes ) then 6
|
||||||
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
||||||
else if ( highway=bridleway|road|path|footway ) then 4
|
else if ( highway=bridleway|road|path|footway ) then 4
|
||||||
else if ( highway=steps ) then 2
|
else if ( highway=steps ) then 2
|
||||||
|
|
|
@ -52,7 +52,7 @@ assign is_ldcr =
|
||||||
if ignore_cycleroutes then false
|
if ignore_cycleroutes then false
|
||||||
else any_cycleroute
|
else any_cycleroute
|
||||||
|
|
||||||
assign isbike = or bicycle=yes or or bicycle=permissive bicycle=designated lcn=yes
|
assign isbike = or bicycle_road=yes or bicycle=yes or or bicycle=permissive bicycle=designated lcn=yes
|
||||||
assign ispaved = surface=paved|asphalt|concrete|paving_stones
|
assign ispaved = surface=paved|asphalt|concrete|paving_stones
|
||||||
assign isunpaved = not or surface= or ispaved surface=fine_gravel|cobblestone
|
assign isunpaved = not or surface= or ispaved surface=fine_gravel|cobblestone
|
||||||
assign probablyGood = or ispaved and isbike not isunpaved
|
assign probablyGood = or ispaved and isbike not isunpaved
|
||||||
|
@ -102,7 +102,8 @@ assign bikeaccess =
|
||||||
if any_cycleroute then true
|
if any_cycleroute then true
|
||||||
else if bicycle= then
|
else if bicycle= then
|
||||||
(
|
(
|
||||||
if vehicle= then defaultaccess
|
if bicycle_road=yes then true
|
||||||
|
else if vehicle= then defaultaccess
|
||||||
else not vehicle=private|no
|
else not vehicle=private|no
|
||||||
)
|
)
|
||||||
else not bicycle=private|no|dismount
|
else not bicycle=private|no|dismount
|
||||||
|
@ -260,7 +261,7 @@ assign priorityclassifier =
|
||||||
else if ( isresidentialorliving ) then 6
|
else if ( isresidentialorliving ) then 6
|
||||||
else if ( highway=service ) then 6
|
else if ( highway=service ) then 6
|
||||||
else if ( highway=cycleway ) then 6
|
else if ( highway=cycleway ) then 6
|
||||||
else if ( bicycle=designated ) then 6
|
else if ( or bicycle=designated bicycle_road=yes ) then 6
|
||||||
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
||||||
else if ( highway=bridleway|road|path|footway ) then 4
|
else if ( highway=bridleway|road|path|footway ) then 4
|
||||||
else if ( highway=steps ) then 2
|
else if ( highway=steps ) then 2
|
||||||
|
|
|
@ -50,7 +50,7 @@ assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route
|
||||||
assign nodeaccessgranted or any_cycleroute lcn=yes
|
assign nodeaccessgranted or any_cycleroute lcn=yes
|
||||||
|
|
||||||
assign cycleway
|
assign cycleway
|
||||||
or highway=cycleway and highway=path|footway bicycle=designated|yes
|
or bicycle_road=yes or highway=cycleway and highway=path|footway bicycle=designated|yes
|
||||||
|
|
||||||
assign footway
|
assign footway
|
||||||
or highway=footway and highway=path foot=designated|yes
|
or highway=footway and highway=path foot=designated|yes
|
||||||
|
@ -99,6 +99,8 @@ assign defaultaccess
|
||||||
assign bikeaccess
|
assign bikeaccess
|
||||||
or any_cycleroute
|
or any_cycleroute
|
||||||
switch bicycle=
|
switch bicycle=
|
||||||
|
switch bicycle_road=yes
|
||||||
|
1
|
||||||
switch vehicle=
|
switch vehicle=
|
||||||
defaultaccess
|
defaultaccess
|
||||||
switch or vehicle=private vehicle=no
|
switch or vehicle=private vehicle=no
|
||||||
|
@ -369,7 +371,7 @@ assign priorityclassifier =
|
||||||
else if ( or highway=residential|living_street living_street=yes ) then 6
|
else if ( or highway=residential|living_street living_street=yes ) then 6
|
||||||
else if ( highway=service ) then 6
|
else if ( highway=service ) then 6
|
||||||
else if ( highway=cycleway ) then 6
|
else if ( highway=cycleway ) then 6
|
||||||
else if ( bicycle=designated ) then 6
|
else if ( or bicycle=designated bicycle_road=yes ) then 6
|
||||||
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
||||||
else if ( highway=bridleway|road|path|footway ) then 4
|
else if ( highway=bridleway|road|path|footway ) then 4
|
||||||
else if ( highway=steps ) then 2
|
else if ( highway=steps ) then 2
|
||||||
|
|
|
@ -50,7 +50,7 @@ assign any_cycleroute or route_bicycle_icn=yes or route_bicycle_ncn=yes or route
|
||||||
assign nodeaccessgranted or any_cycleroute lcn=yes
|
assign nodeaccessgranted or any_cycleroute lcn=yes
|
||||||
|
|
||||||
assign cycleway
|
assign cycleway
|
||||||
or highway=cycleway and highway=path|footway bicycle=designated|yes
|
or bicycle_road=yes or highway=cycleway and highway=path|footway bicycle=designated|yes
|
||||||
|
|
||||||
assign footway
|
assign footway
|
||||||
or highway=footway and highway=path foot=designated|yes
|
or highway=footway and highway=path foot=designated|yes
|
||||||
|
@ -99,6 +99,8 @@ assign defaultaccess
|
||||||
assign bikeaccess
|
assign bikeaccess
|
||||||
or any_cycleroute
|
or any_cycleroute
|
||||||
switch bicycle=
|
switch bicycle=
|
||||||
|
switch bicycle_road=yes
|
||||||
|
1
|
||||||
switch vehicle=
|
switch vehicle=
|
||||||
defaultaccess
|
defaultaccess
|
||||||
switch or vehicle=private vehicle=no
|
switch or vehicle=private vehicle=no
|
||||||
|
@ -369,7 +371,7 @@ assign priorityclassifier =
|
||||||
else if ( or highway=residential|living_street living_street=yes ) then 6
|
else if ( or highway=residential|living_street living_street=yes ) then 6
|
||||||
else if ( highway=service ) then 6
|
else if ( highway=service ) then 6
|
||||||
else if ( highway=cycleway ) then 6
|
else if ( highway=cycleway ) then 6
|
||||||
else if ( bicycle=designated ) then 6
|
else if ( or bicycle=designated bicycle_road=yes ) then 6
|
||||||
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
else if ( highway=track ) then if tracktype=grade1 then 6 else 4
|
||||||
else if ( highway=bridleway|road|path|footway ) then 4
|
else if ( highway=bridleway|road|path|footway ) then 4
|
||||||
else if ( highway=steps ) then 2
|
else if ( highway=steps ) then 2
|
||||||
|
|
Loading…
Reference in a new issue