#Namen
highway=motorway {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}' }
highway=trunk {name '${ref|highway-symbol:hbox} ${name}' | '${ref|highway-symbol:hbox}' | '${name}'; add display_name = '${name} (${ref})' }
#highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}'; add display_name = '${name} (${ref})' }
# Convert generic path to most specific
highway=footway & snowplowing!=no
& (bicycle=yes|bicycle=designated|bicycle=permissive|bicycle=official)
{set highway=cycleway; set bicycle=yes}
highway=path & snowplowing!=no
& (bicycle=designated|bicycle=permissive|bicycle=official)
{set highway=cycleway; set bicycle=yes}
highway=path & (horse=designated|horse=permissive|horse=official)
{set highway=bridleway; set horse=yes}
highway=path
{set highway=footway}

leisure=track & area!=yes
{add highway=footway; name '${name} (${sport})' | '${name}'}
(man_made=pier | man_made=piste:halfpipe) & area!=yes
{add highway=footway; name '${ref} ${name}' | '${ref}' | '${name}' }

#unbefestigte
highway=*
& (surface=cobblestone | surface=compacted | surface=dirt |
   surface=earth | surface=grass | surface=grass_paver |
   surface=gravel | surface=grit | surface=ground | surface=mud |
   surface=pebblestone | surface=sand | surface=unpaved |
   mtb:scale=* |
   tracktype ~ 'grade[2-6]' |
   smoothness ~ '.*(bad|horrible|impassable)' |
   sac_scale ~ '.*(mountain|alpine)_hiking' |
   sport=via_ferrata)
{ add mkgmap:unpaved=1 }

(highway=bridleway | highway=track | highway=unsurfaced)
& surface!=* & tracktype!=* & smoothness!=* & sac_scale!=*
{ add mkgmap:unpaved=1 }

highway=path & bicycle!=designated
& surface!=* & tracktype!=* & smoothness!=* & sac_scale!=*
{ add mkgmap:unpaved=1 }

#Autobahn
highway=motorway  | highway=motorway_link {add oneway=yes; add bicycle=no; add foot=no} [0x01  resolution 24 continue]
highway=motorway  | highway=motorway_link {add oneway=yes; add bicycle=no; add foot=no} [0x010f01 resolution 23-22 continue]
highway=motorway  | highway=motorway_link {add oneway=yes; add bicycle=no; add foot=no} [0x010f02 resolution 21-10]

#Kraftfahrstrae
highway=trunk  |   highway=trunk_link    {add bicycle=no; add foot=no}                  [0x08 resolution 24 continue]
highway=trunk  |   highway=trunk_link    {add bicycle=no; add foot=no}                  [0x010f03 				resolution 23-22 continue]
highway=trunk  |   highway=trunk_link    {add bicycle=no; add foot=no}                  [0x010f04 				resolution 21-15]

#Bundesstrae
highway=primary | highway=primary_link      	[0x10 road_class=0 road_speed=1 resolution 24 continue]
highway=primary | highway=primary_link		[0x010f05 resolution 23-22 continue]
highway=primary | highway=primary_link		[0x010f06 resolution 21-19]

#Strae
highway=road | highway=minor | highway=unclassified              [0x03 road_class=2 road_speed=7 resolution 24 continue]
highway=road | highway=minor | highway=unclassified              [0x010f07 resolution 23-22 continue]
highway=road | highway=minor | highway=unclassified              [0x010f08 resolution 21-20 continue]
oneway= (yes|true) & highway=road | oneway= (yes|true) & highway=minor  | oneway= (yes|true) & highway=unclassified              [0x010e0b resolution 24 continue]
oneway= (yes|true) & highway=road | oneway= (yes|true) & highway=minor  | oneway= (yes|true) & highway=unclassified              [0x010e0c resolution 23-22 continue]
oneway= (yes|true) & highway=road | oneway= (yes|true) & highway=minor  | oneway= (yes|true) & highway=unclassified              [0x010e0d resolution 21-20 continue]
highway=road | highway=minor | highway=unclassified[0x010e1f resolution 10-9]


#Landstrae
highway=secondary     | highway=secondary_link                                                     [0x02 road_class=3 road_speed=5 resolution 24 continue]
highway=secondary      | highway=secondary_link                                                    [0x010f09 resolution 23-22 continue]
highway=secondary     | highway=secondary_link                                                     [0x010f0a resolution 21-19 continue]
oneway= (yes|true) & highway=secondary     |oneway= (yes|true) & highway=secondary_link            [0x010e0e resolution 24 continue]
oneway= (yes|true) & highway=secondary      |oneway= (yes|true) & highway=secondary_link           [0x010e0f resolution 23-22 continue]
oneway= (yes|true) & highway=secondary     |oneway= (yes|true) & highway=secondary_link            [0x010e10 resolution 21-19 continue]
highway=secondary     | highway=secondary_link [0x010e1f resolution 10-9]



#Kreisstrae
highway=tertiary                                                     [0x05 road_class=2 road_speed=7 resolution 24 continue]
highway=tertiary                                                     [0x010f0b resolution 23-22 continue]
highway=tertiary                                                     [0x010f0d resolution 21-19 continue]
oneway= (yes|true) & highway=tertiary                                                     [0x010e08 resolution 24 continue]
oneway= (yes|true) & highway=tertiary                                                     [0x010e09 resolution 23-22 continue]
oneway= (yes|true) & highway=tertiary                                                     [0x010e0a resolution 21-19 continue]
highway=tertiary                                                     [0x010e1f resolution 10-9]



#Wohnstrae
highway=residential  |highway=living_street | highway=service     [0x06 road_class=2 road_speed=3 resolution 24 continue]
highway=residential  |highway=living_street | highway=service	[0x010f0e resolution 23-22 continue]
highway=residential  |highway=living_street | highway=service	[0x010f0f resolution 21-21 continue]
oneway= (yes|true) & highway=residential  | oneway= (yes|true) & highway=living_street | oneway= (yes|true) & highway=service [0x010e05 resolution 24 continue]
oneway= (yes|true) & highway=residential  | oneway= (yes|true) & highway=living_street | oneway= (yes|true) & highway=service [0x010e06 resolution 23-22 continue]
oneway= (yes|true) & highway=residential  | oneway= (yes|true) & highway=living_street | oneway= (yes|true) & highway=service [0x010e07 resolution 21-21 continue]
highway=residential  |highway=living_street | highway=service	[0x010e1f resolution 10-9]


#Radweg
highway=cycleway      {add access=no; add bicycle=yes; add foot=yes} [0x04 road_class=3 road_speed=5 resolution 24 continue]
highway=cycleway      {add access=no; add bicycle=yes; add foot=yes} [0x010f10 resolution 23-22 continue]
highway=cycleway      {add access=no; add bicycle=yes; add foot=yes} [0x010f11 resolution 21-20]

#Reitweg
highway=bridleway | highway=byway | highway=unsurfaced     {add access=no; add bicycle=yes; add foot=yes} [0x1d road_class=1 road_speed=5 resolution 24 continue]
highway=bridleway | highway=byway | highway=unsurfaced     {add access=no; add bicycle=yes; add foot=yes} [0x010f14 resolution 23-22 continue]
highway=bridleway | highway=byway | highway=unsurfaced     {add access=no; add bicycle=yes; add foot=yes} [0x010f15 resolution 21-21]

#Fuweg
highway=footpath|highway=pedestrian & area!=yes|highway=footway|highway=path{add access=no; add bicycle=no; add foot=yes}[0x0d road_class=1 road_speed=5 resolution 24 continue]
highway=footpath|highway=pedestrian & area!=yes|highway=footway|highway=path{add access=no; add bicycle=no; add foot=yes}[0x010f16 resolution 23-22 continue]
highway=footpath|highway=pedestrian & area!=yes|highway=footway|highway=path{add access=no; add bicycle=no; add foot=yes}[0x010f17 resolution 21-21]

#Kreisel
junction=roundabout & *                       [0x0c road_class=2 road_speed=5 resolution 24 continue]
junction=roundabout & *                       [0x010f18 resolution 23-18]

#Grade1
highway=track & tracktype=grade1 {add access=no; add bicycle=yes; add foot=yes} [0x13 road_class=1 road_speed=1 resolution 24 continue]
highway=track & tracktype=grade1 {add access=no; add bicycle=yes; add foot=yes} [0x010f19 resolution 23-22 continue]
highway=track & tracktype=grade1 {add access=no; add bicycle=yes; add foot=yes} [0x010f1a resolution 21-21]

#Grade2
highway=track & tracktype=grade2 {add access=no; add bicycle=yes; add foot=yes} [0x0a road_class=2 road_speed=5 resolution 24 continue]
highway=track & tracktype=grade2 {add access=no; add bicycle=yes; add foot=yes} [0x010f1b resolution 23-22 continue]
highway=track & tracktype=grade2 {add access=no; add bicycle=yes; add foot=yes} [0x010f1c resolution 21-21]

#Grade4/5
highway=track & tracktype=grade4|highway=track & tracktype=grade5 {add access=no; add bicycle=no; add foot=yes}  [0x0f  road_class=1 road_speed=5 resolution 24 continue]
highway=track & tracktype=grade4|highway=track & tracktype=grade5 {add access=no; add bicycle=no; add foot=yes}  [0x010f1d resolution 23-22 continue]
highway=track & tracktype=grade4|highway=track & tracktype=grade5 {add access=no; add bicycle=no; add foot=yes}  [0x010f1e resolution 21-21]

#Piste
highway=track  & *                  {add access=no; add bicycle=yes; add foot=yes} [0x0e  road_class=1 road_speed=5 resolution 24 continue]
highway=track  & *                  {add access=no; add bicycle=yes; add foot=yes} [0x010e00 resolution 23-22 continue]
highway=track  & *                  {add access=no; add bicycle=yes; add foot=yes} [0x010e01 resolution 21-21]

#Treppe
highway=steps {add access = no; add foot = yes}              [0x26 resolution 24-23 continue]
highway=steps {add access = no; add foot = yes}              [0x010f1f resolution 22-21]

#Zug
railway=*                              [0x14 resolution 24-23 continue]
railway=*                              [0x010f00 resolution 22-18]

#Strom
power=line [0x29 resolution 24-22 continue]
power=line [0x010e02 resolution 21-15]

#Flsse
waterway=dam [0x10e15 road_class=2 road_speed=2 resolution 20]
waterway=* [0x1f resolution 24-22 continue]
waterway=* [0x010e03 resolution 21-10]

#diverses
natural=coastline [0x15 resolution 10]
man_made=breakwater [0x15 resolution 10]

route=ferry [0x1a road_class=0 road_speed=0 resolution 20]
barrier=hedge [0x10f0c resolution 20]
boundary=*  [0x1e resolution 24-22 continue]
boundary=*	[0x010e04 resolution 21-10]
aeroway=runway [0x10f12 resolution 18]
aeroway=taxiway [0x10f13 resolution 20]
aerialway=* [0x10e14 resolution 20]

#was brig bleibt
highway=*  [0x00 road_class=1 road_speed=2 resolution 10]






