experimental private profiles

This commit is contained in:
vcoppe 2024-04-02 17:38:40 +02:00
parent 385009b9e6
commit 7229bc4c54
5 changed files with 33 additions and 33 deletions

View file

@ -215,7 +215,7 @@ assign caraccess
switch or highway=residential highway=living_street 1 switch or highway=residential highway=living_street 1
switch highway=service 1 switch highway=service 1
0 0
or access=yes or access=permissive or access=designated access=destination or access=yes or access=permissive or access=designated or access=destination access=private
or vehicle=yes or vehicle=designated vehicle=destination or vehicle=yes or vehicle=designated vehicle=destination
or motor_vehicle=yes or motor_vehicle=permissive or motor_vehicle=designated motor_vehicle=destination or motor_vehicle=yes or motor_vehicle=permissive or motor_vehicle=designated motor_vehicle=destination
or motorcar=yes or motorcar=permissive or motorcar=designated motorcar=destination or motorcar=yes or motorcar=permissive or motorcar=designated motorcar=destination

View file

@ -139,23 +139,23 @@ assign initialcost
switch or shortest_way is_ldhr 0 initialcost_value switch or shortest_way is_ldhr 0 initialcost_value
assign defaultaccess switch access= not motorroad=yes switch or access=private access=no 0 1 assign defaultaccess switch access= not motorroad=yes switch access=no 0 1
assign bikeaccess assign bikeaccess
or any_cycleroute or any_cycleroute
switch bicycle= switch bicycle=
switch vehicle= switch vehicle=
defaultaccess defaultaccess
switch or vehicle=private vehicle=no switch vehicle=no
0 0
1 1
not or bicycle=private or bicycle=no bicycle=dismount not or bicycle=no bicycle=dismount
assign footaccess or any_hiking_route assign footaccess or any_hiking_route
or issidewalk or issidewalk
or and bikeaccess not foot=no or and bikeaccess not foot=no
or bicycle=dismount or bicycle=dismount
switch foot= defaultaccess not foot=private|no switch foot= defaultaccess not foot=no
assign accesspenalty switch footaccess 0 switch bikeaccess 4 100000 assign accesspenalty switch footaccess 0 switch bikeaccess 4 100000
@ -383,7 +383,7 @@ assign classifiermask add isbadoneway
assign defaultaccess assign defaultaccess
switch access= switch access=
1 # add default barrier restrictions here! 1 # add default barrier restrictions here!
switch or access=private access=no switch access=no
0 0
1 1
@ -392,10 +392,10 @@ assign bikeaccess
switch bicycle= switch bicycle=
switch vehicle= switch vehicle=
defaultaccess defaultaccess
switch or vehicle=private vehicle=no switch vehicle=no
0 0
1 1
switch or bicycle=private or bicycle=no bicycle=dismount switch or bicycle=no bicycle=dismount
0 0
1 1
@ -403,7 +403,7 @@ assign footaccess
or bicycle=dismount or bicycle=dismount
switch foot= switch foot=
defaultaccess defaultaccess
switch or foot=private foot=no switch foot=no
0 0
1 1

View file

@ -207,20 +207,20 @@ else 30
assign defaultaccess = assign defaultaccess =
if access= then not motorroad=yes if access= then not motorroad=yes
else if access=private|no then false else if access=no then false
else true else true
assign bikeaccess = assign bikeaccess =
if nodeaccessgranted then true if nodeaccessgranted then true
else if hascycleway then true else if hascycleway then true
else if bicycle= then ( if vehicle= then defaultaccess else not vehicle=private|no ) else if bicycle= then ( if vehicle= then defaultaccess else not vehicle=no )
else not bicycle=private|no|dismount else not bicycle=no|dismount
assign footaccess = assign footaccess =
if bikeaccess then true if bikeaccess then true
else if bicycle=dismount then true else if bicycle=dismount then true
else if foot= then defaultaccess else if foot= then defaultaccess
else not foot=private|no else not foot=no
assign accesspenalty = assign accesspenalty =
if bikeaccess then 0 if bikeaccess then 0
@ -532,7 +532,7 @@ assign initial_cost_node 0 # 0 as default
assign defaultaccess = assign defaultaccess =
if ( access= ) then if allow_default_barrier_restriction then not barrier=gate # add default barrier restrictions here! - modified v2.5.15, conditioned in 2.6 if ( access= ) then if allow_default_barrier_restriction then not barrier=gate # add default barrier restrictions here! - modified v2.5.15, conditioned in 2.6
else true else true
else if ( access=private|no ) then false else if ( access=no ) then false
else true else true
assign bikeaccess = assign bikeaccess =
@ -540,14 +540,14 @@ assign bikeaccess =
else if bicycle= then else if bicycle= then
( (
if vehicle= then defaultaccess if vehicle= then defaultaccess
else not vehicle=private|no else not vehicle=no
) )
else not bicycle=private|no|dismount else not bicycle=no|dismount
assign footaccess = assign footaccess =
if bicycle=dismount then true if bicycle=dismount then true
else if foot= then defaultaccess else if foot= then defaultaccess
else not foot=private|no else not foot=no
assign initialcost = assign initialcost =

View file

@ -207,20 +207,20 @@ else 30
assign defaultaccess = assign defaultaccess =
if access= then not motorroad=yes if access= then not motorroad=yes
else if access=private|no then false else if access=no then false
else true else true
assign bikeaccess = assign bikeaccess =
if nodeaccessgranted then true if nodeaccessgranted then true
else if hascycleway then true else if hascycleway then true
else if bicycle= then ( if vehicle= then defaultaccess else not vehicle=private|no ) else if bicycle= then ( if vehicle= then defaultaccess else not vehicle=no )
else not bicycle=private|no|dismount else not bicycle=no|dismount
assign footaccess = assign footaccess =
if bikeaccess then true if bikeaccess then true
else if bicycle=dismount then true else if bicycle=dismount then true
else if foot= then defaultaccess else if foot= then defaultaccess
else not foot=private|no else not foot=no
assign accesspenalty = assign accesspenalty =
if bikeaccess then 0 if bikeaccess then 0
@ -532,7 +532,7 @@ assign initial_cost_node 0 # 0 as default
assign defaultaccess = assign defaultaccess =
if ( access= ) then if allow_default_barrier_restriction then not barrier=gate # add default barrier restrictions here! - modified v2.5.15, conditioned in 2.6 if ( access= ) then if allow_default_barrier_restriction then not barrier=gate # add default barrier restrictions here! - modified v2.5.15, conditioned in 2.6
else true else true
else if ( access=private|no ) then false else if ( access=no ) then false
else true else true
assign bikeaccess = assign bikeaccess =
@ -540,14 +540,14 @@ assign bikeaccess =
else if bicycle= then else if bicycle= then
( (
if vehicle= then defaultaccess if vehicle= then defaultaccess
else not vehicle=private|no else not vehicle=no
) )
else not bicycle=private|no|dismount else not bicycle=no|dismount
assign footaccess = assign footaccess =
if bicycle=dismount then true if bicycle=dismount then true
else if foot= then defaultaccess else if foot= then defaultaccess
else not foot=private|no else not foot=no
assign initialcost = assign initialcost =

View file

@ -85,7 +85,7 @@ assign defaultaccess
else if highway=motorway|motorway_link then false else if highway=motorway|motorway_link then false
else true else true
) )
switch or access=private access=no switch access=no
false false
true true
@ -98,8 +98,8 @@ assign bikeaccess =
true true
switch vehicle= switch vehicle=
( if highway=footway then false else defaultaccess ) ( if highway=footway then false else defaultaccess )
not vehicle=private|no not vehicle=no
not or bicycle=private or bicycle=no bicycle=dismount not or bicycle=no bicycle=dismount
# #
# calculate logical foot access # calculate logical foot access
@ -109,7 +109,7 @@ assign footaccess =
or bicycle=dismount or bicycle=dismount
switch foot= switch foot=
defaultaccess defaultaccess
not or foot=private foot=no not foot=no
# #
# if not bike-, but foot-acess, just a moderate penalty, # if not bike-, but foot-acess, just a moderate penalty,
@ -327,7 +327,7 @@ assign dummyUsage = smoothness=
assign defaultaccess assign defaultaccess
switch access= switch access=
1 # add default barrier restrictions here! 1 # add default barrier restrictions here!
switch or access=private access=no switch access=no
0 0
1 1
@ -336,10 +336,10 @@ assign bikeaccess
switch bicycle= switch bicycle=
switch vehicle= switch vehicle=
defaultaccess defaultaccess
switch or vehicle=private vehicle=no switch vehicle=no
0 0
1 1
switch or bicycle=private or bicycle=no bicycle=dismount switch or bicycle=no bicycle=dismount
0 0
1 1
@ -347,7 +347,7 @@ assign footaccess
or bicycle=dismount or bicycle=dismount
switch foot= switch foot=
defaultaccess defaultaccess
switch or foot=private foot=no switch foot=no
0 0
1 1