Debian Codegraph @

resources/styles/default/points

raw
1 # -------------------------------------------------------------------
2 # This is the default mkgmap style file for converting OSM nodes
3 # into Garmin POIs.
4 # Any line prefaced with # is a comment and will not be applied.
5 # Each line is a rule, of the generalised format:
6 # OSM_tag(s)_to_match [Garmin_type_code resolution]
7 # See http://wiki.openstreetmap.org/wiki/Mkgmap/help/style_rules
8 # and http://wiki.openstreetmap.org/wiki/Mkgmap/help/Custom_styles
9 # for more information.
10
11 addr:housenumber=* {set mkgmap:execute_finalize_rules=true}
12
13 # impose routing/speed restrictions due to access/barrier. See option --link-pois-to-ways
14
15 vehicle=* {
16 add bicycle='${vehicle}';
17 add motor_vehicle='${vehicle}';
18 }
19 motor_vehicle=* {
20 add motorcar='${motor_vehicle}';
21 add goods='${motor_vehicle}';
22 add hgv='${motor_vehicle}';
23 add psv='${motor_vehicle}';
24 add emergency='${motor_vehicle}';
25 }
26 psv=* {
27 add taxi='${psv}';
28 add bus='${psv}';
29 }
30
31 barrier=* & bicycle=* {set mkgmap:bicycle = '${bicycle|subst:private=>no}'}
32 barrier=* & foot=* {set mkgmap:foot = '${foot|subst:private=>no}'}
33 barrier=* & hgv=* {set mkgmap:truck = '${hgv|subst:private=>no}'}
34 barrier=* & motorcar=* {set mkgmap:car = '${motorcar|subst:private=>no}'}
35 barrier=* & bus=* {set mkgmap:bus = '${bus|subst:private=>no}'}
36 barrier=* & taxi=* {set mkgmap:taxi = '${taxi|subst:private=>no}'}
37 barrier=* & emergency=* {set mkgmap:emergency='${emergency|subst:private=>no}'}
38 barrier=* & goods=* {set mkgmap:delivery = '${goods|subst:private=>no}'}
39
40 barrier=bollard | barrier=block {
41 add mkgmap:car=no;
42 add mkgmap:delivery=no;
43 add mkgmap:truck=no;
44 add mkgmap:bus=no;
45 add mkgmap:taxi=no;
46 add mkgmap:emergency=no;
47 }
48 barrier=cycle_barrier | barrier=kissing_gate | barrier=stile {
49 add mkgmap:bicycle=no;
50 add mkgmap:car=no;
51 add mkgmap:delivery=no;
52 add mkgmap:truck=no;
53 add mkgmap:bus=no;
54 add mkgmap:taxi=no;
55 add mkgmap:emergency=no;
56 set mkgmap:road-speed=0;
57 }
58 barrier=bus_trap {
59 add mkgmap:car=no;
60 add mkgmap:delivery=no;
61 add mkgmap:truck=no;
62 add mkgmap:taxi=no;
63 }
64 barrier=gate | barrier=lift_gate | barrier=swing_gate {
65 set mkgmap:road-speed=0;
66 }
67 barrier=* {add mkgmap:road-speed=1}
68 barrier=* & access=* {addaccess '${access|subst:private=>no}'}
69
70 internet_access=yes {name 'Internet ${name}' | 'Internet'} [0x2f12 resolution 24 continue]
71 internet_access=* & internet_access!=no & internet_access!=yes
72 {name 'Internet(${internet_access}) ${name}' | 'Internet(${internet_access})'} [0x2f12 resolution 24 continue]
73
74 (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station)
75 & (ref=* | route_ref=*)
76 {set ref='${ref|def:}(${route_ref})'}
77 (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station)
78 & lit=yes & (shelter=yes | covered=yes)
79 {set ref='${ref|def:}*'}
80 (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station)
81 & lit!=yes & (shelter=yes | covered=yes)
82 {set ref='${ref|def:}+'}
83 (public_transport=platform | highway=bus_stop | railway=tram_stop | railway=halt | railway=station)
84 & (shelter=no | covered=no)
85 {set ref='${ref|def:}-'}
86
87 include 'inc/name';
88
89 place=city & population > 999999 & name=* [0x0100 resolution 12]
90 place=city & population > 799999 & name=* [0x0200 resolution 14]
91 place=city & population > 399999 & name=* [0x0300 resolution 15]
92 place=city & population > 299999 & name=* [0x0400 resolution 16]
93 place=city & population > 199999 & name=* [0x0500 resolution 16]
94 place=city & population > 99999 & name=* [0x0600 resolution 17]
95 place=city & population > 49999 & name=* [0x0700 resolution 17]
96 place=city & population > 9999 & name=* [0x0800 resolution 18]
97
98 place=city & population > 0 & name=* [0x0800 resolution 18]
99 place=city & name=* [0x0700 resolution 18]
100
101 place=town & population > 69999 & name=* [0x0600 resolution 17]
102 place=town & population > 19999 & name=* [0x0700 resolution 18]
103 place=town & population > 9999 & name=* [0x0800 resolution 19]
104 place=town & population > 4999 & name=* [0x0900 resolution 19]
105 place=town & population > 999 & name=* [0x0a00 resolution 19]
106 place=town & population > 0 & name=* [0x0b00 resolution 20]
107 place=town & name=* [0x0800 resolution 19]
108
109 place=village & name=* [0x0900 resolution 22]
110 place=suburb & name=* [0x0a00 resolution 22]
111 place=hamlet & name=* [0x0b00 resolution 24]
112
113 place=island & name=* [0x650c resolution 20]
114 place=islet & name=* [0x650c resolution 22]
115
116 #aeroway=airport [0x5900 resolution 22]
117 aeroway=airport [0x2f04 resolution 22]
118 aeroway=aerodrome [0x2f04 resolution 22]
119 aeroway=helipad [0x5904 resolution 23]
120 aeroway=terminal [0x2f04 resolution 24]
121
122 amenity=atm [0x2f06 resolution 24 continue]
123 amenity=arts_centre [0x2c04 resolution 24]
124 amenity=bank [0x2f06 resolution 24]
125 amenity=bar [0x2d02 resolution 24 continue]
126 amenity=bench [0x6605 resolution 24 continue]
127 amenity=biergarten [0x2d02 resolution 24]
128 amenity=border_control | barrier=border_control [0x3006 resolution 20]
129 amenity=bus_station [0x2f08 resolution 23]
130 amenity=cafe {delete cuisine} [0x2a0e resolution 24 continue with_actions]
131 amenity=car_club [0x2f0d resolution 24]
132 amenity=car_rental [0x2f02 resolution 24]
133 amenity=car_sharing [0x2f02 resolution 24]
134 amenity=car_wash [0x2f0e resolution 24]
135 amenity=casino [0x2d04 resolution 24]
136 amenity=charging_station [0x2f01 resolution 24 default_name 'Car charging']
137 amenity=cinema [0x2d03 resolution 24]
138 amenity=college [0x2c05 resolution 24]
139 amenity=concert_hall [0x2c09 resolution 24]
140 amenity=conference_centre [0x2c09 resolution 24]
141 amenity=convention_center [0x2c09 resolution 24]
142 amenity=community_centre [0x3005 resolution 24]
143 amenity=community_center [0x3005 resolution 24]
144 amenity=courthouse [0x3004 resolution 24]
145 amenity=drinking_water [0x5000 resolution 24 default_name 'Water']
146 amenity=embassy & country=* {set name='${country} ${name|def:Embassy}'} [0x3003 resolution 24]
147 amenity=embassy & country!=* [0x3003 resolution 24 default_name 'Embassy']
148 amenity=emergency_phone [0x2f12 resolution 24 default_name 'Emergency Phone']
149 amenity=ferry_terminal [0x2f08 resolution 22]
150 # handle amenity=fast_food rules later in file
151 amenity=fire_station [0x3008 resolution 24]
152 amenity=food_court [0x2a13 resolution 24]
153 amenity=fuel & fuel:HGV_diesel=yes [0x2f16 resolution 23]
154 amenity=fuel & shop=convenience [0x2e06 resolution 24]
155 amenity=fuel [0x2f01 resolution 24]
156 amenity=grave_yard | amenity=crematorium [0x6403 resolution 24]
157 amenity=kindergarten [0x2c05 resolution 24]
158 amenity=library [0x2c03 resolution 24]
159 amenity=nightclub [0x2d02 resolution 24]
160 amenity=nursing_home [0x2f14 resolution 24]
161 (amenity=parking | amenity=parking_entrance) & access!=private & access!=no {add name='${access} parking'| 'Parking'} [0x2f0b resolution 24]
162 amenity=pharmacy [0x2e05 resolution 24]
163 amenity=place_of_worship [0x2c0b resolution 24]
164 amenity=police [0x3001 resolution 24]
165 amenity=post_box [0x2f15 resolution 24 default_name 'Post box']
166 amenity=post_office [0x2f05 resolution 24]
167 amenity=prison [0x3007 resolution 24 default_name 'Prison']
168 amenity=pub [0x2d02 resolution 24]
169 amenity=public_building [0x3007 resolution 24]
170 amenity=recycling [0x2f15 resolution 24 default_name 'Recycling']
171 # handle amenity=restaurant rules later in file
172 amenity=school [0x2c05 resolution 24]
173 # amenity=shelter is ambiguous; when possible, consider using other tags:
174 # tourism=lean_to or tourism=picnic_site
175 # shelter=yes on highway=bus_stop or highway=tram_stop or railway=halt
176 amenity=shelter & shelter_type=basic_hut [0x2b06 resolution 24 default_name 'Shelter']
177 # amenity=supermarket is superceded by shop=supermarket
178 amenity=supermarket [0x2e02 resolution 24]
179 amenity=taxi [0x2f17 resolution 24]
180 amenity=telephone [0x2f12 resolution 24 default_name 'Telephone']
181 amenity=theatre [0x2d01 resolution 24]
182 amenity=toilets [0x2f0c resolution 24 default_name 'Toilets']
183 amenity=townhall [0x3003 resolution 24]
184 amenity=university [0x2c05 resolution 24]
185 # amenity=zoo is superceded by tourism=zoo
186 amenity=zoo [0x2c07 resolution 24]
187
188 landuse=military [0x640b resolution 24]
189 landuse=village_green & name=* [0x2c06 resolution 24]
190
191 healthcare=hospital | amenity=hospital | amenity=clinic [0x3002 resolution 22]
192 healthcare=* | amenity=dentist | amenity=doctors [0x3002 resolution 24]
193
194 highway=motorway_junction & exit:road_ref=* {add exit:to='${exit_to}' | '${destination}'} [0x2000 resolution 24]
195
196 highway=services {add exit:facility="0x02,I,0x47,Features"} [0x230f resolution 20 default_name 'Services']
197
198 historic=museum [0x2c02 resolution 24]
199 historic=archaeological_site | historic=ruins [0x2c02 resolution 24]
200 historic=memorial [0x2c02 resolution 24]
201
202 leisure=common & name=* [0x2c06 resolution 24]
203 leisure=garden & name=* [0x2c06 resolution 24]
204 leisure=golf_course [0x2d05 resolution 24]
205 leisure=ice_rink [0x2d08 resolution 24]
206 leisure=marina [0x2f09 resolution 24]
207 leisure=nature_reserve [0x6612 resolution 24]
208 leisure=park [0x2c06 resolution 24]
209 leisure=pitch & (name=* | sport=*) {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24]
210 leisure=playground [0x2c06 resolution 24 default_name 'Playground']
211 leisure=recreation_ground [0x2c08 resolution 24 default_name 'Rec.']
212 leisure=sports_center | leisure=sports_centre {name '${name} (${sport})' | '${sport}'} [0x2d0a resolution 24]
213 leisure=stadium {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24]
214 (leisure=swimming_pool | amenity=swimming_pool) & access!=private & access!=no [0x2d09 resolution 24]
215 leisure=track {name '${name} (${sport})' | '${sport}'} [0x2c08 resolution 24]
216 leisure=water_park [0x2d09 resolution 24]
217
218 man_made=tower | man_made=mast | landmark=chimney [0x6411 resolution 24]
219
220 # Edge 705 displays 0x650a,0x6511,0x6512,0x6513,0x6603,0x6614 as hollow white circles, no menu
221 natural=cave_entrance [0x6601 resolution 24]
222 natural=cape [0x6606 resolution 24]
223 natural=cliff & name=* [0x6607 resolution 24]
224 natural=peak {name '${name|def:}${ele|height:m=>ft|def:}'} [0x6616 resolution 24]
225 natural=rock [0x6614 resolution 24]
226 natural=volcano [0x2c0c resolution 24]
227 natural=bay & name=* [0x6503 resolution 20]
228
229 railway=station [0x2f08 resolution 22]
230 railway=halt [0x2f08 resolution 23]
231 # if option --add-pois-to-lines in effect, add just 1 POI
232 (railway=platform | (public_transport=platform & railway=*)) & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f08 resolution 23]
233 public_transport=platform & (mkgmap:line2poi!=true | mkgmap:line2poitype=mid) [0x2f17 resolution 24]
234 highway=bus_stop | railway=tram_stop [0x2f17 resolution 24]
235
236 shop=* & name!=* & shop!=yes & shop!=no & shop!=none & shop!=vacant {set name='${shop|subst:"_=> "}'}
237 # Uncomment the following lines to enable these extra POI that some devices support
238 #shop=convenience [0x2e0e resolution 24]
239 #shop=florist [0x2e0f resolution 24]
240 #shop=gift | shop=art | shop=antiques [0x2e10 resolution 24]
241 #shop=music [0x2e11 resolution 24]
242 #shop=sports [0x2e12 resolution 24]
243 #shop=wine | shop=alcohol [0x2e13 resolution 24]
244 #shop=books [0x2e14 resolution 24]
245 # to here
246
247 shop=bakers [0x2e02 resolution 24]
248 shop=bakery [0x2e02 resolution 24]
249 shop=beauty [0x2f10 resolution 24]
250 shop=bicycle [0x2f13 resolution 24]
251 shop=boat [0x2f09 resolution 24]
252 shop=butcher [0x2e0c resolution 24]
253 shop=car [0x2f07 resolution 24]
254 shop=car_dealer [0x2f07 resolution 24]
255 shop=car_parts [0x2f07 resolution 24]
256 shop=car_rental [0x2f02 resolution 24]
257 shop=car_repair [0x2f03 resolution 24]
258 shop=car_wrecker [0x2f0a resolution 24]
259 shop=chemist [0x2e05 resolution 24]
260 shop=clothes [0x2e07 resolution 24]
261 shop=computer [0x2e0b resolution 24]
262 shop=convenience [0x2e02 resolution 24]
263 shop=department_store [0x2e01 resolution 24]
264 shop=doityourself [0x2e09 resolution 24]
265 shop=fashion [0x2e07 resolution 24]
266 shop=furniture [0x2e09 resolution 24]
267 shop=garden_centre [0x2e08 resolution 24]
268 shop=garden_center [0x2e08 resolution 24]
269 shop=general [0x2e03 resolution 24]
270 shop=hardware [0x2e09 resolution 24]
271 shop=hairdresser [0x2f10 resolution 24]
272 shop=mall [0x2e04 resolution 24]
273 shop=organic [0x2e0a resolution 24]
274 shop=outdoor [0x2e08 resolution 24]
275 shop=shoes [0x2e07 resolution 24]
276 shop=supermarket [0x2e02 resolution 24]
277 shop=tires [0x2f07 resolution 24]
278 shop=tyres [0x2f07 resolution 24]
279 shop=* & name=* [0x2e0c resolution 24]
280
281 sport=9pin [0x2d07 resolution 24]
282 sport=10pin | leisure=bowling_alley [0x2d07 resolution 24]
283 sport=airport [0x2d0b resolution 24]
284 sport=multi [0x2d0a resolution 24]
285 sport=skating [0x2d08 resolution 24]
286 sport=skiing [0x2d06 resolution 24]
287 sport=swimming [0x2d09 resolution 24]
288
289 tourism=alpine_hut [0x2b02 resolution 24]
290 tourism=attraction & historic=* [0x2c02 resolution 24]
291 tourism=attraction [0x2c04 resolution 24]
292 tourism=artwork [0x2c04 resolution 24]
293 tourism=aquarium [0x2c07 resolution 24]
294 tourism=bed_and_breakfast [0x2b02 resolution 24]
295 # NB: different devices use different codes for camp/caravan_site, have both!
296 tourism=camp_site [0x2b03 resolution 24] [0x2b05 resolution 24]
297 tourism=caravan_site [0x2b03 resolution 24] [0x2b05 resolution 24]
298 tourism=chalet [0x2b02 resolution 24]
299 tourism=guest_house [0x2b02 resolution 24]
300 tourism=hostel [0x2b02 resolution 24]
301 # Have both hotel &| restaurant POIs
302 tourism=hotel | tourism=motel {set tmp:stopMopUp=yes} [0x2b01 resolution 24 continue with_actions]
303 tourism=information [0x4c00 resolution 24]
304 # tourism=lean_to replaces some uses of amenity=shelter
305 tourism=lean_to [0x2b05 resolution 24 default_name 'lean-to']
306 tourism=wilderness_hut [0x2b07 resolution 24 default_name 'wilderness hut']
307 tourism=museum [0x2c02 resolution 24]
308 tourism=picnic_site [0x4a00 resolution 24]
309 tourism=resort [0x2b04 resolution 24]
310 tourism=theme_park [0x2c01 resolution 24]
311 tourism=viewpoint {name '${name} - ${description}' | '${name}'} [0x2c04 resolution 24]
312 tourism=wine_cellar [0x2c0a resolution 24]
313 tourism=zoo [0x2c07 resolution 24]
314 tourism=* & name!=* & tourism!=yes & tourism!=no {set name='${tourism|subst:"_=> "}'}
315 tourism=* & tourism!=no & tmp:stopMopUp!=yes [0x2c0d resolution 24]
316
317 # amenity=restaurant/fast_food/cafe/pub and shop=* can use cuisine, so have cuisine section later than where the others
318 # should take precedence
319 # Have the following 2 lines here rather than after cuisine=... so that, for amenity=fast_food, cuisine is ignored
320 amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24]
321 amenity=fast_food [0x2a07 resolution 24]
322
323 # "Food & Drink" Search has categories as follows, corresponding to 0x2a00 - 0x2a13:
324 # All, American, Asian, Barbeque, Chinese, Deli/Bakery, International, Fast Food, Italian, Mexican, Pizza,
325 # Seafood, Steak/Grill, Bagel/Donut, Cafe/Diner, French, German, British Isles, Speciality Food Products, Other
326 amenity=restaurant & cuisine!=*
327 [0x2a00 resolution 24]
328 cuisine=american | cuisine=burger
329 [0x2a01 resolution 24]
330 cuisine=asian | cuisine=japanese | cuisine=indian | cuisine=curry | cuisine=thai | cuisine=sushi | cuisine=korean
331 [0x2a02 resolution 24]
332 cuisine=barbecue | cuisine=bbq | cuisine=kebab | cuisine=chicken
333 [0x2a03 resolution 24]
334 cuisine=chinese | cuisine=vietnamese
335 [0x2a04 resolution 24]
336 cuisine=deli | cuisine=sandwich
337 [0x2a05 resolution 24]
338 cuisine=international
339 [0x2a06 resolution 24]
340 cuisine=fast_food
341 [0x2a07 resolution 24]
342 cuisine=italian | cuisine=pasta
343 [0x2a08 resolution 24]
344 cuisine=mexican | cuisine=spanish | cuisine=tapas
345 [0x2a09 resolution 24]
346 cuisine~'.*pizza.*'
347 [0x2a0a resolution 24]
348 cuisine=seafood | cuisine=sea_food | cuisine=fish
349 [0x2a0b resolution 24]
350 cuisine=steak | cuisine=grill | cuisine=steak_house
351 [0x2a0c resolution 24]
352 cuisine=bagel | cuisine=donut
353 [0x2a0d resolution 24]
354 cuisine=cafe | cuisine=diner | cuisine=coffee_shop
355 [0x2a0e resolution 24]
356 cuisine=french
357 [0x2a0f resolution 24]
358 cuisine=german | cuisine=bavarian
359 [0x2a10 resolution 24]
360 cuisine=british | cuisine=fish_and_chips
361 [0x2a11 resolution 24]
362 cuisine=speciality | cuisine=local | cuisine=regional
363 [0x2a12 resolution 24]
364 amenity=restaurant {add name='${cuisine|subst:"_=> "}'}
365 [0x2a13 resolution 24]
366 #common ones not handled:
367 # ice_cream,greek,turkish,noodle,portugese,pasties,lebanese,brazilian,mediterranean,oriental,caribbean,vegetarian
368
369 # Have the following 2 lines here rather than before cuisine=... so that, for amenity=fast_food, cuisine is respected
370 #amenity=fast_food & cuisine=* {add name='${cuisine|subst:"_=> "}'} [0x2a07 resolution 24]
371 #amenity=fast_food [0x2a07 resolution 24]
372
373 barrier=bollard | barrier=bus_trap | barrier=gate | barrier=block | barrier=cycle_barrier |
374 barrier=stile | barrier=kissing_gate | barrier=lift_gate | barrier=swing_gate
375 {add name='${barrier|subst:"_=> "}'} [0x3200 resolution 24]
376
377 landuse=basin [0x6603 resolution 24]
378 landuse=reservoir | water=reservoir [0x650f resolution 22]
379
380 natural=beach [0x6604 resolution 24]
381 natural=glacier [0x650a resolution 24]
382 natural=spring [0x6511 resolution 24]
383 natural=stream [0x6512 resolution 24]
384 natural=water & (water=canal | water=lock) & name=* [0x6505 resolution 24]
385 (water=lake | water=pond) & name=* [0x650d resolution 24]
386 natural=water & name=* [0x6603 resolution 24]
387 natural=waterfall | waterway=waterfall [0x6508 resolution 24]
388 natural=wetland & name=* [0x6513 resolution 24]
389
390 landuse=cemetery | landuse=cemetary | amenity=grave_yard [0x6403 resolution 24]
391 (landuse=wood | landuse=forest | natural=wood) & name=* [0x6618 resolution 24]
392
393 <finalize>
394 # The finalizer section is executed for each element when a rule with an element type matches
395
396 name=* {name '${name}'}
397 include 'inc/address';