parent
5c9b7fa7bf
commit
3ff7949c28
14 changed files with 98 additions and 75 deletions
|
|
@ -30,6 +30,8 @@ assign initialcost switch route=ferry 20000 0
|
|||
#
|
||||
# calculate logical car access
|
||||
#
|
||||
assign isresidentialorliving = or highway=residential|living_street living_street=yes
|
||||
|
||||
assign caraccess
|
||||
switch motorcar=
|
||||
switch motor_vehicle=
|
||||
|
|
@ -42,7 +44,7 @@ assign caraccess
|
|||
switch or highway=tertiary highway=tertiary_link 1
|
||||
switch highway=unclassified 1
|
||||
switch route=ferry 1
|
||||
switch or highway=residential highway=living_street 1
|
||||
switch isresidentialorliving 1
|
||||
switch highway=service 1
|
||||
0
|
||||
or access=yes or access=permissive or access=designated access=destination
|
||||
|
|
@ -82,7 +84,7 @@ assign costfactor
|
|||
switch highway=unclassified 2.5
|
||||
switch route=ferry 5.67
|
||||
switch highway=bridleway 5
|
||||
switch or highway=residential highway=living_street 3.5
|
||||
switch isresidentialorliving 3.5
|
||||
switch highway=service 3.5
|
||||
switch or highway=track or highway=road highway=path
|
||||
switch tracktype=grade1 5
|
||||
|
|
@ -91,12 +93,12 @@ assign costfactor
|
|||
10000
|
||||
|
||||
assign trafficsourcedensity =
|
||||
if highway=residential|living_street then 1
|
||||
if isresidentialorliving then 1
|
||||
else if and maxspeed=30|50 highway=tertiary|secondary|primary then 1
|
||||
else 0
|
||||
|
||||
assign istrafficbackbone
|
||||
if greater costfactor 9999 then false
|
||||
if greater costfactor 9999 then false
|
||||
else if highway=motorway|motorway_link then true
|
||||
else false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue