Codebase list mkgmap / 3ca46d7
New upstream version 0.0.0+svn4262 Bas Couwenberg 5 years ago
5 changed file(s) with 199 addition(s) and 114 deletion(s). Raw diff Collapse all Expand all
0 svn.version: 4260
1 build.timestamp: 2018-12-28T10:15:41+0000
0 svn.version: 4262
1 build.timestamp: 2019-01-11T09:35:26+0000
33
44 # Belgium (BEL)
55
6 highway=trunk & mkgmap:country=BEL { add bicycle=no; add foot=no }
7 highway=cycleway & mkgmap:country=BEL { add foot=yes }
8 highway=bridleway & mkgmap:country=BEL { add foot=yes }
6 highway=trunk & mkgmap:country=BEL {add bicycle=no; add foot=no}
7 highway=cycleway & mkgmap:country=BEL {add foot=yes}
8 highway=bridleway & mkgmap:country=BEL {add foot=yes}
99
1010 # The Netherlands (NLD)
1111
12 highway=trunk & mkgmap:country=NLD { add bicycle=no; add foot=no }
13 highway=cycleway & mkgmap:country=NLD { add foot=yes }
14 highway=bridleway & mkgmap:country=NLD { add foot=yes }
12 highway=trunk & mkgmap:country=NLD {add bicycle=no; add foot=no}
13 highway=cycleway & mkgmap:country=NLD {add foot=yes}
14 highway=bridleway & mkgmap:country=NLD {add foot=yes}
1515
1616 # Spain (ESP)
1717
18 highway=trunk & mkgmap:country=ESP { add bicycle=yes; add foot=yes }
19 highway=bridleway & mkgmap:country=ESP { add bicycle=yes; add foot=yes }
18 highway=trunk & mkgmap:country=ESP {add bicycle=yes; add foot=yes}
19 highway=bridleway & mkgmap:country=ESP {add bicycle=yes; add foot=yes}
2020
21 # United Kingdom (GBR)
2122
23 highway=cycleway & mkgmap:country=GBR {add foot=yes}
24 highway=bridleway & mkgmap:country=GBR {
25 add bicycle=yes;
26 add foot=yes;
27 add motor_vehicle=private
28 }
99
1010 addr:housenumber=* {set mkgmap:execute_finalize_rules=true}
1111
12 aeroway=runway & highway!=* & is_closed()=false {name '${ref}'} [0x27 resolution 20]
13 (aeroway=taxiway | aeroway=taxilane) & highway!=* & is_closed()=false {name '${ref}'} [0x27 resolution 24]
12 abandoned=yes {deletealltags} # old, depreciated, ambiguous, method of handling abandoned
13
14 # do these as lines regardless of being closed unless explicity marked as area. continue in case also a highway
15 aeroway=runway & area!=yes {name '${ref}'} [0x27 resolution 20 continue]
16 (aeroway=taxiway | aeroway=taxilane) & area!=yes {name '${ref}'} [0x27 resolution 24 continue]
1417
1518 # Assign the street name for house number search
1619 highway=* & name=* {set mkgmap:street='${name}'}
1720
1821 # Mark highways with the toll flag
1922 highway=* & (toll=yes | toll=true) {set mkgmap:toll=yes}
20
21 # mark multipolygons as area
22 highway=* & mkgmap:mp_created=true {add area=yes}
2323
2424 # Hide proposed ways
2525 highway=proposed | highway=proposal | highway=planned | highway~'.*proposed.*' {delete highway; delete junction}
2626 # Hide removed ways
27 highway=razed | highway=dismantled {deletealltags}
27 highway=razed | highway=dismantled | highway=disused | highway=demolished {delete highway; delete junction}
2828 # Hide abandoned ways. Abandoned highways have some evidence of their former existence but are no longer used. These
2929 # abandoned highways could be useful in topographical maps.
3030 # https://wiki.openstreetmap.org/wiki/Key:abandoned:
31 (abandoned:highway=* & highway!=*) | highway=abandoned {deletealltags}
31 (abandoned:highway=* & (highway!=* | highway=yes)) | highway=abandoned {delete highway; delete junction}
3232 # Hide other non-existent ways
3333 highway=unbuilt | highway=neverbuilt | highway=rejected | highway~'x-.*' {delete highway; delete junction}
3434 # Remove highway tag from ways which are not suitable for routing
35 highway=traffic_signals | highway=junction | highway=island | highway=centre_line | highway=traffic_island | highway=stopline
35 highway=traffic_signals | highway=junction | highway=island | highway=centre_line | highway=traffic_island | highway=stopline |
36 highway=bus_stop | highway=bus_guideway | highway=emergency_access_point | highway=ohm:military:Trench
3637 {delete highway}
38 highway=via_ferrata {delete highway} # this shouldn't show as routable on default map: path only for specialists
3739 highway=piste | highway=ski {delete highway}
3840 highway=no | highway=none {delete highway}
3941
8890 (highway=bridleway | highway=path | highway=track) & mkgmap:unpaved!=0 {add mkgmap:unpaved=1}
8991 (highway=unsurfaced | highway=via_ferrata) {set mkgmap:unpaved=1}
9092
91 highway=* & mkgmap:unpaved!=1 & smoothness~'.*(bad|horrible|impassable)' {add mkgmap:road-speed='-2'}
93 highway=* & mkgmap:unpaved!=1 & smoothness~'.*(bad|horrible|impassable)' {add mkgmap:road-speed=-2}
9294
9395 # Good ways without relation
9496 highway=* & mkgmap:fast_road!=* & (int_ref=* | network=e-road | network=AH | network=TAH | network=US:I | network=US:US)
9799 highway=* & (access=hov | hov=designated | oneway=reversible)
98100 {set mkgmap:road-class=-2; set mkgmap:road-speed=-2; delete mkgmap:fast_road}
99101
102 # convert some specific to generic with restrictions (platform is in a bus station)
103 highway=steps | highway=corridor | highway=stepping_stones | highway=elevator | highway=escalator | highway=platform
104 {set highway=footway; add bicycle=no}
105 # virtual seems to be a way across a pedestrian area
106 highway=crossing | highway=virtual
107 {set highway=path} # following logic may change
108
100109 # Convert generic path to most specific
101 highway=footway & snowplowing!=no & (bicycle=yes | bicycle=designated | bicycle=permissive | bicycle=official)
102 {set highway=cycleway; set bicycle=yes; set foot=yes}
103 highway=path & snowplowing!=no & (bicycle=designated | bicycle=permissive | bicycle=official)
104 {set highway=cycleway; set bicycle=yes}
105 highway=path & (horse=designated | horse=permissive | horse=official)
106 {set highway=bridleway; set horse=yes}
110 highway=path & (designation=permissive_bridleway | designation=public_bridleway)
111 {set highway=bridleway; add foot=yes}
112 highway=path & (designation=permissive_footpath | designation=public_footpath)
113 {set highway=footway; add foot=designated}
114 highway=path & snowplowing!=no & (bicycle=designated | bicycle=permissive | bicycle=official | cycleway=lane)
115 {set highway=cycleway; add foot=yes}
116 highway=path & foot=designated
117 {set highway=footway}
107118
108119 leisure=track & area!=yes {add highway=footway; name '${name} (${sport})' | '${name}'}
109 (man_made=pier | man_made=piste:halfpipe) & area!=yes {add highway=footway; name '${ref} ${name}' | '${ref}' | '${name}'}
120 man_made=pier | man_made=piste:halfpipe {add highway=footway; name '${ref} ${name}' | '${ref}' | '${name}'}
110121
111122 # Roundabouts
112123 junction=roundabout & (highway=trunk | highway=trunk_link) [0x0c road_class=4 road_speed=2 resolution 24 continue]
127138 junction=roundabout & (highway=tertiary | highway=tertiary_link) [0x0c road_class=1 road_speed=1 resolution 24 continue]
128139 junction=roundabout & (highway=tertiary | highway=tertiary_link) [0x10804 resolution 21]
129140
130 junction=roundabout & (highway=unclassified | highway=minor ) [0x0c road_class=1 road_speed=1 resolution 21]
141 junction=roundabout & (highway=unclassified | highway=minor) [0x0c road_class=1 road_speed=1 resolution 21]
131142 junction=roundabout & highway=* [0x0c road_class=0 road_speed=1 resolution 22]
132143
133144 # Ways that may or may not be useable
166177 highway=minor [0x06 road_class=1 road_speed=3 resolution 21]
167178 highway=unclassified [0x06 road_class=0 road_speed=3 resolution 21]
168179
169 # Some countries allow, others disallow bicycling on pedestrian streets.
170 # To allow bicycling, add 'add bicycle=yes'
171 highway=pedestrian & area!=yes [0x16 road_class=0 road_speed=0 resolution 22]
180 highway=yes {set highway=footway} # fix common bad tagging - little bits of path to join other routable ways
181
182 # Some countries allow, others disallow bicycling on pedestrian streets. See inc/access_country
183
184 # highway=pedestrian could be closed polygon to represent a 'square', add route regardless and continue for polygon processing
185 highway=pedestrian {set tmp:stopMopUp=yes} [0x16 road_class=0 road_speed=0 resolution 22 continue with_actions]
186
172187 highway=living_street [0x06 road_class=0 road_speed=1 resolution 22]
173188 highway=residential [0x06 road_class=0 road_speed=2 resolution 22]
174189 highway=bridleway [0x07 road_class=0 road_speed=0 resolution 23]
175190 highway=byway [0x16 road_class=0 road_speed=0 resolution 23]
176191
192 highway=driveway {set highway=service; add service=driveway} # fix common bad tagging
193 highway=access {set highway=service} # fix common bad tagging
194 highway=access_ramp {set highway=footway} # proposed
195
177196 highway=service & service=parking_aisle [0x07 road_class=0 road_speed=1 resolution 24]
178 highway=service & (service=alley|service=driveway) [0x07 road_class=0 road_speed=0 resolution 23]
197 highway=service & (service=alley | service=driveway) [0x07 road_class=0 road_speed=0 resolution 23]
179198 highway=service [0x07 road_class=0 road_speed=2 resolution 22]
180199
181200 highway=cycleway [0x07 road_class=0 road_speed=1 resolution 23]
182201
183 highway=footway | highway=path | highway=steps [0x16 road_class=0 road_speed=0 resolution 23]
202 # highway=footway is often an area as well, continue for polygon processing
203 highway=footway {set tmp:stopMopUp=yes} [0x16 road_class=0 road_speed=0 resolution 23 continue with_actions]
204
205 highway=trail {set highway=path; add bicycle=no} # fix common bad tagging
206
207 highway=path [0x16 road_class=0 road_speed=0 resolution 23]
184208 highway=track [0x0a road_class=0 road_speed=1 resolution 22]
185209 highway=unsurfaced [0x0a road_class=0 road_speed=1 resolution 22]
186210 highway=road {add mkgmap:dead-end-check=false} [0x06 road_class=0 road_speed=1 resolution 22]
187211
212 # handle some rarer bits of road. Do just in case joining paths or bits of one-way roads
213 highway=turning_loop | highway=turning_circle | highway=layby | highway=escape | highway=emergency_bay
214 [0x07 road_class=0 road_speed=0 resolution 24]
215
216 # These are too specialized to have routing, so shouldn't drop into the mop-up, but, maybe needing TYP, can be shown on the map
217 highway=raceway | highway=gallop {add name='${highway}'} [0x30 resolution 23]
218
219 # Don't have routable for either of these:
220 # most 'rest_area' don't connect to the main road
221 # 'services' is normally a big area that covers the whole complex
222 highway=rest_area | highway=services {set tmp:stopMopUp=yes}
223
188224 # Mop up any unrecognised highway types
189 highway=* & area!=yes [0x07 road_class=0 road_speed=0 resolution 23]
225 #highway=* & tmp:stopMopUp!=yes {echotags 'mop-up highway'} # mostly actual road names
226 # It is considered best not to process unrecognised highway types
227 #highway=* & area!=yes & tmp:stopMopUp!=yes [0x07 road_class=0 road_speed=0 resolution 23]
190228
191229 natural=coastline [0x15 resolution 12]
192230 power=line [0x29 resolution 21]
193231
232 # following really should be removed, but see: http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2016q3/025104.html
194233 railway=abandoned [0x0a road_class=0 road_speed=1 resolution 22]
195234 railway=platform [0x16 road_class=0 road_speed=0 resolution 23]
196235 # Railway lines, note that many devices display type 0x14 only at resolution 24
224263 waterway=rapids|waterway=waterfall [0x1f resolution 22]
225264 waterway=stream | waterway=drain [0x18 resolution 22]
226265
266 # mop up any remaining water lines
267 waterway=* & waterway!=no & (area=no | (is_closed()=false & mkgmap:mp_created!=true))
268 {add name='${waterway|subst:"_=> "}'} [0x26 resolution 24]
269
227270 include 'inc/contour_lines';
228271
229272 <finalize>
242285 mkgmap:bicycle=yes & (mkgmap:foot=no & mkgmap:car=no & mkgmap:street!=* | mkgmap:synthesised=yes) {set mkgmap:numbers=false}
243286
244287 # Display highway shield for mayor roads if they have a ref and make them searchable by their name
245 (highway=motorway | highway=trunk) & ref=* {name '${ref|highway-symbol:hbox}'; addlabel '${name}'}
246 highway=primary & ref=* {name '${ref|highway-symbol:box}'; addlabel '${name}'}
288 (highway=motorway | highway=trunk) & ref=* {name '${ref|highway-symbol:hbox}'; addlabel '${name}'}
289 highway=primary & ref=* {name '${ref|highway-symbol:box}' ; addlabel '${name}'}
247290 (highway=secondary | highway=tertiary) & ref=* {name '${ref|highway-symbol:oval}'; addlabel '${name}'}
248291
249292 name=* {name '${name}'}
6363
6464 include 'inc/name';
6565
66 place=city & population > 999999 & name=* {set tmp:city=yes} [0x0100 resolution 12 continue with_actions]
67 place=city & population > 799999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0200 resolution 14 continue with_actions]
68 place=city & population > 399999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0300 resolution 15 continue with_actions]
69 place=city & population > 299999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0400 resolution 16 continue with_actions]
70 place=city & population > 199999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0500 resolution 16 continue with_actions]
71 place=city & population > 99999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0600 resolution 17 continue with_actions]
72 place=city & population > 49999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0700 resolution 17 continue with_actions]
73 place=city & population > 9999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0800 resolution 18 continue with_actions]
74
75 place=city & population > 0 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0800 resolution 18 continue with_actions]
76 place=city & tmp:city!=yes & name=* {set tmp:city=yes} [0x0700 resolution 18 continue with_actions]
77
78 place=town & population > 69999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0600 resolution 17 continue with_actions]
79 place=town & population > 19999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0700 resolution 18 continue with_actions]
80 place=town & population > 9999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0800 resolution 19 continue with_actions]
81 place=town & population > 4999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0900 resolution 19 continue with_actions]
82 place=town & population > 999 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0a00 resolution 19 continue with_actions]
83 place=town & population > 0 & tmp:city!=yes & name=* {set tmp:city=yes} [0x0b00 resolution 20 continue with_actions]
84 place=town & tmp:city!=yes & name=* {set tmp:city=yes} [0x0800 resolution 19 continue with_actions]
85
86 place=island & tmp:city!=yes {set tmp:city=yes} [0x650c resolution 20 continue with_actions]
87 place=islet & tmp:city!=yes {set tmp:city=yes} [0x650c resolution 22 continue with_actions]
88 place=village & tmp:city!=yes {set tmp:city=yes} [0x0900 resolution 22 continue with_actions]
89 place=suburb & tmp:city!=yes {set tmp:city=yes} [0x0a00 resolution 22 continue with_actions]
90 place=hamlet & tmp:city!=yes {set tmp:city=yes} [0x0b00 resolution 24 continue with_actions]
66 place=city & population > 999999 & name=* [0x0100 resolution 12]
67 place=city & population > 799999 & name=* [0x0200 resolution 14]
68 place=city & population > 399999 & name=* [0x0300 resolution 15]
69 place=city & population > 299999 & name=* [0x0400 resolution 16]
70 place=city & population > 199999 & name=* [0x0500 resolution 16]
71 place=city & population > 99999 & name=* [0x0600 resolution 17]
72 place=city & population > 49999 & name=* [0x0700 resolution 17]
73 place=city & population > 9999 & name=* [0x0800 resolution 18]
74
75 place=city & population > 0 & name=* [0x0800 resolution 18]
76 place=city & name=* [0x0700 resolution 18]
77
78 place=town & population > 69999 & name=* [0x0600 resolution 17]
79 place=town & population > 19999 & name=* [0x0700 resolution 18]
80 place=town & population > 9999 & name=* [0x0800 resolution 19]
81 place=town & population > 4999 & name=* [0x0900 resolution 19]
82 place=town & population > 999 & name=* [0x0a00 resolution 19]
83 place=town & population > 0 & name=* [0x0b00 resolution 20]
84 place=town & name=* [0x0800 resolution 19]
85
86 place=village & name=* [0x0900 resolution 22]
87 place=suburb & name=* [0x0a00 resolution 22]
88 place=hamlet & name=* [0x0b00 resolution 24]
89
90 place=island & name=* [0x650c resolution 20]
91 place=islet & name=* [0x650c resolution 22]
9192
9293 #aeroway=airport [0x5900 resolution 22]
9394 aeroway=airport [0x2f04 resolution 22]
122123 amenity=embassy & country!=* [0x3003 resolution 24 default_name 'Embassy']
123124 amenity=emergency_phone [0x2f12 resolution 24 default_name 'Emergency Phone']
124125 amenity=ferry_terminal [0x2f08 resolution 22]
125
126 amenity=fast_food & cuisine=grill [0x2a03 resolution 24]
127 amenity=fast_food & cuisine~'.*pizza.*' [0x2a0a resolution 24]
128 amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24]
129 amenity=fast_food [0x2a07 resolution 24]
130
126 # handle amenity=fast_food rules later in file
131127 amenity=fire_station [0x3008 resolution 24]
132128 amenity=food_court [0x2a13 resolution 24]
133129 amenity=fuel & fuel:HGV_diesel=yes [0x2f16 resolution 23]
148144 amenity=pub [0x2d02 resolution 24]
149145 amenity=public_building [0x3007 resolution 24]
150146 amenity=recycling [0x2f15 resolution 24 default_name 'Recycling']
151
152 amenity=restaurant & cuisine=american [0x2a01 resolution 24]
153 amenity=restaurant & cuisine=asian [0x2a02 resolution 24]
154 amenity=restaurant & cuisine=bagel [0x2a0d resolution 24]
155 amenity=restaurant & cuisine=barbecue [0x2a03 resolution 24]
156 amenity=restaurant & cuisine=british [0x2a11 resolution 24]
157 amenity=restaurant & cuisine=chinese [0x2a04 resolution 24]
158 amenity=restaurant & cuisine=curry [0x2a02 resolution 24]
159 amenity=restaurant & cuisine=deli [0x2a05 resolution 24]
160 amenity=restaurant & cuisine=french [0x2a0f resolution 24]
161 amenity=restaurant & cuisine=fish_and_chips [0x2a11 resolution 24]
162 amenity=restaurant & (cuisine=german | cuisine=bavarian) [0x2a10 resolution 24]
163 amenity=restaurant & cuisine=grill [0x2a03 resolution 24]
164 amenity=restaurant & cuisine=indian [0x2a02 resolution 24]
165 amenity=restaurant & cuisine=international [0x2a06 resolution 24]
166 amenity=restaurant & cuisine=italian [0x2a08 resolution 24]
167 amenity=restaurant & cuisine=japanese [0x2a02 resolution 24]
168 amenity=restaurant & cuisine=korean [0x2a02 resolution 24]
169 amenity=restaurant & cuisine=mexican [0x2a09 resolution 24]
170 amenity=restaurant & cuisine~'.*pizza.*' [0x2a0a resolution 24]
171 amenity=restaurant & cuisine=sea_food [0x2a0b resolution 24]
172 # often "seafood" is used instead of official tag "sea_food"
173 amenity=restaurant & cuisine=seafood [0x2a0b resolution 24]
174 amenity=restaurant & cuisine=spanish [0x2a09 resolution 24]
175 amenity=restaurant & cuisine=speciality [0x2a12 resolution 24]
176 amenity=restaurant & cuisine=steak [0x2a0c resolution 24]
177 amenity=restaurant & cuisine=thai [0x2a02 resolution 24]
178 amenity=restaurant & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a13 resolution 24]
179 amenity=restaurant [0x2a00 resolution 24]
180
147 # handle amenity=restaurant rules later in file
181148 amenity=school [0x2c05 resolution 24]
182149 # amenity=shelter is ambiguous; when possible, consider using other tags:
183150 # tourism=lean_to or tourism=picnic_site
184151 # shelter=yes on highway=bus_stop or highway=tram_stop or railway=halt
185 amenity=shelter [0x2b06 resolution 24 default_name 'Shelter']
152 amenity=shelter & shelter_type!=public_transport [0x2b06 resolution 24 default_name 'Shelter']
186153 # amenity=supermarket is superceded by shop=supermarket
187154 amenity=supermarket [0x2e02 resolution 24]
188155 amenity=taxi [0x2f17 resolution 24]
216183 leisure=marina [0x4300 resolution 24]
217184 leisure=nature_reserve & name=* [0x6612 resolution 24]
218185 leisure=park [0x2c06 resolution 24]
219 leisure=pitch {name '${name} (${sport})' | '${name}'} [0x2c08 resolution 24]
186 leisure=pitch {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24]
220187 leisure=playground [0x2c06 resolution 24 default_name 'Playground']
221188 leisure=recreation_ground [0x2c08 resolution 24 default_name 'Rec.']
222 leisure=sports_center | leisure=sports_centre {name '${name} (${sport})' | '${name}'} [0x2d0a resolution 24]
223 leisure=stadium {name '${name} (${sport})' | '${name}'} [0x2c08 resolution 24]
189 leisure=sports_center | leisure=sports_centre {name '${name} (${sport})' | '${sport}'} [0x2d0a resolution 24]
190 leisure=stadium {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24]
224191 leisure=swimming_pool [0x2d09 resolution 24]
225 leisure=track {name '${name} (${sport})' | '${name}'} [0x2c08 resolution 24]
192 leisure=track {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24]
226193 leisure=water_park [0x2d09 resolution 24]
227194
228195 man_made=tower | man_made=mast | landmark=chimney [0x6411 resolution 24]
305272 tourism=* & tourism!=yes & tourism!=no {add name='${tourism|subst:"_=> "}'}
306273 tourism=* & tourism!=no [0x2c0d resolution 24]
307274
275 # amenity=restaurant/fast_food/cafe/pub and shop=* can use cuisine, so have cuisine section later than where the others
276 # should take precedence
277 # Have the following 2 lines here rather than after cuisine=... so that, for amenity=fast_food, cuisine is ignored
278 amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24]
279 amenity=fast_food [0x2a07 resolution 24]
280
281 # "Food & Drink" Search has categories as follows, corresponding to 0x2a00 - 0x2a13:
282 # All, American, Asian, Barbeque, Chinese, Deli/Bakery, International, Fast Food, Italian, Mexican, Pizza,
283 # Seafood, Steak/Grill, Bagel/Donut, Cafe/Diner, French, German, British Isles, Speciality Food Products, Other
284 amenity=restaurant & cuisine!=*
285 [0x2a00 resolution 24]
286 cuisine=american | cuisine=burger
287 [0x2a01 resolution 24]
288 cuisine=asian | cuisine=japanese | cuisine=indian | cuisine=curry | cuisine=thai | cuisine=sushi | cuisine=korean
289 [0x2a02 resolution 24]
290 cuisine=barbecue | cuisine=bbq | cuisine=kebab | cuisine=chicken
291 [0x2a03 resolution 24]
292 cuisine=chinese | cuisine=vietnamese
293 [0x2a04 resolution 24]
294 cuisine=deli | cuisine=sandwich
295 [0x2a05 resolution 24]
296 cuisine=international
297 [0x2a06 resolution 24]
298 cuisine=fast_food
299 [0x2a07 resolution 24]
300 cuisine=italian | cuisine=pasta
301 [0x2a08 resolution 24]
302 cuisine=mexican | cuisine=spanish | cuisine=tapas
303 [0x2a09 resolution 24]
304 cuisine~'.*pizza.*'
305 [0x2a0a resolution 24]
306 cuisine=seafood | cuisine=sea_food | cuisine=fish
307 [0x2a0b resolution 24]
308 cuisine=steak | cuisine=grill | cuisine=steak_house
309 [0x2a0c resolution 24]
310 cuisine=bagel | cuisine=donut
311 [0x2a0d resolution 24]
312 cuisine=cafe | cuisine=diner | cuisine=coffee_shop
313 [0x2a0e resolution 24]
314 cuisine=french
315 [0x2a0f resolution 24]
316 cuisine=german | cuisine=bavarian
317 [0x2a10 resolution 24]
318 cuisine=british | cuisine=fish_and_chips
319 [0x2a11 resolution 24]
320 cuisine=speciality | cuisine=local | cuisine=regional
321 [0x2a12 resolution 24]
322 amenity=restaurant {add name='${cuisine|subst:"_=> "}'}
323 [0x2a13 resolution 24]
324 #common ones not handled:
325 # ice_cream,greek,turkish,noodle,portugese,pasties,lebanese,brazilian,mediterranean,oriental,caribbean,vegetarian
326
327 # Have the following 2 lines here rather than before cuisine=... so that, for amenity=fast_food, cuisine is respected
328 #amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24]
329 #amenity=fast_food [0x2a07 resolution 24]
330
308331 barrier=bollard | barrier=bus_trap | barrier=gate [0x660f resolution 24]
309332 barrier=block | barrier=cycle_barrier | barrier=stile | barrier=kissing_gate [0x660f resolution 24]
310333
314337 natural=glacier [0x650a resolution 24]
315338 natural=spring [0x6511 resolution 24]
316339 natural=stream [0x6512 resolution 24]
340 natural=water & (water=canal | water=lock) & name=* [0x6505 resolution 24]
317341 natural=water & name=* [0x6603 resolution 24]
318342 natural=waterfall | waterway=waterfall [0x6508 resolution 24]
319343 natural=wetland & name=* [0x6513 resolution 24]
1616
1717 aeroway=airport [0x07 resolution 20]
1818 aeroway=aerodrome [0x07 resolution 20]
19 aeroway=runway {name '${ref}'} [0x0e resolution 20]
20 aeroway=taxiway | aeroway=taxilane {name '${ref}'} [0x0e resolution 24]
19 aeroway=runway & area=yes {name '${ref}'} [0x0e resolution 20]
20 (aeroway=taxiway | aeroway=taxilane) & area=yes {name '${ref}'} [0x0e resolution 24]
2121 aeroway=heliport [0x07 resolution 20]
2222 aeroway=helipad [0x0e resolution 22]
2323
2424 amenity=kindergarten [0x0a resolution 22]
25 amenity=cafe | amenity=fast_food | amenity=restaurant | amenity=food_court [0x08 resolution 22]
25 amenity=cafe | amenity=fast_food | amenity=restaurant [0x08 resolution 24]
26 amenity=food_court [0x08 resolution 22]
2627 amenity=college [0x0a resolution 22]
2728 parking=underground | parking=multi-storey [0x06 resolution 22]
2829 amenity=parking | parking=surface [0x05 resolution 22]
5051 leisure=water_park [0x09 resolution 21]
5152
5253 place=village [0x03 resolution 19]
54 place=suburb [0x02 resolution 19]
5355
5456 shop=* {add name='${shop|subst:"_=> "}'} [0x08 resolution 22]
5557
5658 # squares and plazas
59 place=square [0x17 resolution 22]
5760 highway=pedestrian & (area=yes | mkgmap:mp_created=true) [0x17 resolution 22]
58 # other highways that have area=yes set must be parking lots
59 highway=* & (area=yes | mkgmap:mp_created=true) [0x05 resolution 22]
61 # following rule also renders a closed way without area attribute as a plaza
62 highway=pedestrian & area!=no [0x17 resolution 22]
6063
61 historic=museum | historic=memorial [0x1e resolution 21]
62 historic=archaeological_site | historic=ruins [0x1e resolution 21]
64 # footways areas are similar, but should be explicity marked as such
65 highway=footway & area=yes [0x17 resolution 24]
66
67 # other highways that have area=yes are probably parking lots, eg services/rest_area
68 (highway=services | highway=rest_area) & area!=no [0x05 resolution 22]
69
70 historic=* & historic!=no & historic!=yes & boundary!=* {add name='${historic|subst:"_=> "}'} [0x1e resolution 21]
6371
6472 landuse=basin [0x3f resolution 20]
6573 landuse=reservoir | (natural=water & water=reservoir) [0x3f resolution 20]
74
75 dock=drydock [0x4c resolution 22] # might also have natural=water
6676
6777 natural=bay [0x3d resolution 18]
6878 natural=glacier [0x4d resolution 18]
6979 natural=marsh [0x51 resolution 20]
7080 natural=mud [0x51 resolution 20]
7181 natural=wetland [0x51 resolution 20]
82 natural=water & water=canal [0x48 resolution 22]
83 natural=water & water=lock [0x4c resolution 22 default_name 'Lock']
84 natural=water & area_size() < 100000 [0x41 resolution 22] # Small Lake
7285 natural=water [0x3c resolution 18]
7386 natural=waterfall | waterway=waterfall [0x47 resolution 21]
7487 natural=sea {add mkgmap:skipSizeFilter=true; set mkgmap:drawLevel=2} [0x32 resolution 10]
7588
7689 waterway=riverbank [0x46 resolution 20]
90
91 # mop up any remaining water areas
92 waterway=* & waterway!=no & area!=no {add name='${waterway|subst:"_=> "}'} [0x3b resolution 22]
7793
7894 landuse=allotments [0x4e resolution 21]
7995 landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x1a resolution 21]
109125 tourism=* & area!=no & waterway!=* {add name='${tourism|subst:"_=> "}'} [0x1f resolution 24]
110126
111127 # man_made can be used on areas or lines
112 man_made=* & area!=no & (
113 man_made!=door & man_made!=embankment & man_made!=breakwater & man_made!=cable_line & man_made!=cutline &
114 man_made!=cutting & man_made!=levee & man_made!=trench & man_made!=groyne & man_made!=reinforced_slope)
115 {add name='${man_made|subst:"_=> "}'} [0x13 resolution 24]
116
117 man_made=* & area=yes {add name='${man_made|subst:"_=> "}'} [0x13 resolution 24]
128 man_made=* & area!=no {add name='${man_made|subst:"_=> "}'} [0x13 resolution 24]
118129
119130 # render small named islands
120131 place=island & name=* & area_size() < 1000000 [0x53 resolution 19]