# level 3 - bridges
#aeroway=runway [0x27 resolution 20]

# Contours take their name from the elevation setting.
#contour=elevation & contour_ext=elevation_minor
#	{ name '${ele|conv:m=>ft}'; }
#	[0x20 resolution 23]
#contour=elevation & contour_ext=elevation_medium
#	{ name '${ele|conv:m=>ft}'; }
#	[0x21 resolution 21]
#contour=elevation & contour_ext=elevation_major
#	{ name '${ele|conv:m=>ft}'; }
#	[0x22 resolution 20]
#contour=elevation | contour_ext=elevation
#	{ name '${ele|conv:m=>ft}'; }
#	[0x21 resolution 20]

# Set highway names to include the reference if there is one
#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}' }
#highway=primary {name '${ref|highway-symbol:box} ${name}' | '${ref|highway-symbol:box}' | '${name}' }
#highway=secondary {name '${ref|highway-symbol:oval} ${name}' | '${ref|highway-symbol:oval}' | '${name}' }
#highway=* {name '${ref} ${name}' | '${ref}' | '${name}' }

junction=roundabout & bridge=yes & highway=trunk [0x0c road_class=3 road_speed=5 resolution 22]
junction=roundabout & bridge=yes & highway=primary [0x0c road_class=3 road_speed=4 resolution 22]
junction=roundabout & bridge=yes & highway=secondary [0x0c road_class=2 road_speed=3 resolution 23]
junction=roundabout & bridge=yes & highway=tertiary [0x0c road_class=1 road_speed=3 resolution 23]
junction=roundabout & bridge=yes & highway=unclassified [0x0c road_class=1 road_speed=2 resolution 24]
junction=roundabout & bridge=yes [0x0c road_class=0 road_speed=1 resolution 24]

# Convert generic path to most specific
#highway=path & bicycle=designated {add highway=cycleway }
#highway=path & horse=designated {add highway=footway }
#highway=path & foot=designated {add highway=footway }

highway=motorway & bridge=yes [0x01 road_class=4 road_speed=7 resolution 22]
highway=motorway_link & bridge=yes [0x0b road_class=4 road_speed=3 resolution 22]
highway=trunk & bridge=yes [0x02 road_class=3 road_speed=6 resolution 22]
highway=trunk_link & bridge=yes [0x09 road_class=3 road_speed=3 resolution 22]
highway=primary & bridge=yes  [0x03 road_class=3 road_speed=5 resolution 23]
highway=primary_link & bridge=yes [0x08 road_class=3 road_speed=3 resolution 23]
highway=secondary & bridge=yes [0x04 road_class=2 road_speed=4 resolution 23]
highway=tertiary & bridge=yes [0x05 road_class=1 road_speed=3 resolution 23]
highway=residential & bridge=yes [0x06 road_class=0 road_speed=2 resolution 24]
highway=living_street & bridge=yes [0x06 road_class=0 road_speed=2 resolution 24]
highway=service & bridge=yes [0x07 road_class=0 road_speed=1 resolution 24]
highway=minor & bridge=yes [0x06 road_class=1 road_speed=2 resolution 24]
highway=unclassified & bridge=yes [0x06 road_class=1 road_speed=2 resolution 24]
highway=road & bridge=yes [0x06 road_class=1 road_speed=2 resolution 24]

#highway=unsurfaced & oneway=yes [0x0a road_class=0 road_speed=1 resolution 21]
##highway=pedestrian & area!=yes {add access = no; add foot = yes} [0x06 road_class=0 road_speed=0 resolution 22]
#
#highway=byway [0x16 road_class=0 road_speed=0 resolution 23]
#highway=bridleway {add access = no; add bicycle = yes; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]
#highway=cycleway {add access = no; add bicycle = yes; add foot = yes} [0x16 road_class=0 road_speed=1 resolution 23]
#highway=footway {add access = no; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]
#highway=path {add access = no; add bicycle = yes; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]
#highway=steps {add access = no; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]
#highway=track [0x0a road_class=0 road_speed=1 resolution 21]

# Mop up any unrecognised highway types
highway=* & area!=yes & bridge=yes [0x07 resolution 24]

#natural=coastline [0x15 resolution 12]
#power=line [0x29 resolution 20]

railway=light_rail & bridge=yes [0x14 resolution 22]
railway=rail & bridge=yes [0x14 resolution 22]
railway=subway & bridge=yes [0x14 resolution 23]
railway=tram & bridge=yes [0x14 resolution 24]
#railway=platform & bridge=yes {add access = no; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]

#route=ferry & oneway=yes [0x1a road_class=0 road_speed=0 resolution 18]

#waterway=canal [0x1f resolution 21]
#waterway=drain [0x1f resolution 22]
#waterway=river [0x1f resolution 18]
#waterway=stream [0x18 resolution 22]

#man_made=pipeline {name '${operator}'} [0x28 resolution 23]

# The following boundary styles are after the highway rules because ways
# are frequently tagged with both and we want the highway to take priority.
#boundary=administrative [0x1c resolution 18]
#boundary=national [0x1e resolution 17]
#boundary=political [0x1c resolution 17]

