commit
35e5525fbb
1 changed files with 18 additions and 1 deletions
|
@ -24,6 +24,10 @@ assign p_standby = 250 # Watt
|
||||||
assign validForCars = true
|
assign validForCars = true
|
||||||
assign pass1coefficient = 1.3
|
assign pass1coefficient = 1.3
|
||||||
assign turnInstructionMode = 1 # 0=none, 1=auto-choose, 2=locus-style, 3=osmand-style
|
assign turnInstructionMode = 1 # 0=none, 1=auto-choose, 2=locus-style, 3=osmand-style
|
||||||
|
assign avoid_toll = 1 # %avoid_toll% | Avoid paid roads | boolean
|
||||||
|
assign avoid_unpaved = 1 # %avoid_unpaved% | Avoid unpaved roads, if possible | boolean
|
||||||
|
assign avoid_motorways = 1 # %avoid_motorways% | Avoid motorways | boolean
|
||||||
|
|
||||||
|
|
||||||
# classifier constants
|
# classifier constants
|
||||||
|
|
||||||
|
@ -33,6 +37,15 @@ assign classifier_ferry = 2
|
||||||
|
|
||||||
---context:way # following code refers to way-tags
|
---context:way # following code refers to way-tags
|
||||||
|
|
||||||
|
assign is_avoided_toll_road
|
||||||
|
and avoid_toll toll=yes
|
||||||
|
|
||||||
|
assign ispaved surface=paved|asphalt|concrete|paving_stones
|
||||||
|
assign isunpaved not or surface= or ispaved or surface=fine_gravel surface=cobblestone
|
||||||
|
assign is_avoided_unpaved and avoid_unpaved isunpaved
|
||||||
|
assign is_avoided_motorway and avoid_motorways highway=motorway
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# calculate logical car access
|
# calculate logical car access
|
||||||
#
|
#
|
||||||
|
@ -173,6 +186,10 @@ assign maxspeed_explicit =
|
||||||
if reversedirection=yes then maxspeed_backward else maxspeed_forward
|
if reversedirection=yes then maxspeed_backward else maxspeed_forward
|
||||||
|
|
||||||
assign maxspeed =
|
assign maxspeed =
|
||||||
|
if or is_avoided_toll_road
|
||||||
|
is_avoided_motorway then 0
|
||||||
|
else if is_avoided_unpaved then 4
|
||||||
|
else
|
||||||
min onewayspeedlimit
|
min onewayspeedlimit
|
||||||
min accessspeedlimit
|
min accessspeedlimit
|
||||||
min maxspeed_explicit
|
min maxspeed_explicit
|
||||||
|
@ -242,7 +259,7 @@ assign caraccess
|
||||||
motorcar=yes|permissive|designated|destination
|
motorcar=yes|permissive|designated|destination
|
||||||
|
|
||||||
assign initialcost =
|
assign initialcost =
|
||||||
|
switch and avoid_toll barrier=toll_booth 1000000
|
||||||
switch caraccess
|
switch caraccess
|
||||||
0
|
0
|
||||||
1000000
|
1000000
|
||||||
|
|
Loading…
Reference in a new issue