-
Notifications
You must be signed in to change notification settings - Fork 0
/
points
306 lines (193 loc) · 15.7 KB
/
points
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
#
include 'address';
# don't render not relevant mkgmap:line2poi tags
amenity=* & mkgmap:line2poi=true {delete amenity}
barrier=* & mkgmap:line2poi=true {delete barrier}
historic=* & mkgmap:line2poi=true {delete historic}
landuse=* & mkgmap:line2poi=true {delete landuse}
leisure=* & mkgmap:line2poi=true {delete leisure}
man_made=* & mkgmap:line2poi=true {delete man_made}
natural=* & mkgmap:line2poi=true {delete natural}
place=* & mkgmap:line2poi=true {delete place}
shop=* & mkgmap:line2poi=true {delete shop}
sport=* & mkgmap:line2poi=true {delete sport}
tourism=* & mkgmap:line2poi=true {delete tourism}
#
# don't render not relevant mkgmap:area2poi tags
amenity=* & mkgmap:area2poi=true {delete amenity}
barrier=* & mkgmap:area2poi=true {delete barrier}
historic=* & mkgmap:area2poi=true {delete historic}
landuse=* & landuse!=military & mkgmap:area2poi=true {delete landuse}
leisure=* & leisure!=nature_reserve & mkgmap:area2poi=true {delete leisure}
man_made=* & mkgmap:area2poi=true {delete man_made}
natural=* & mkgmap:area2poi=true {delete natural}
place=* & place!=island & place!=islet & mkgmap:line2poi=true {delete place}
shop=* & mkgmap:area2poi=true {delete shop}
sport=* & mkgmap:area2poi=true {delete sport}
tourism=* & mkgmap:area2poi=true {delete tourism}
military=* & military!=danger_area & military!=range & military!=airfield & mkgmap:area2poi=true {delete military}
################################################################
# Polygons naming
leisure=nature_reserve {add mkgmap:label:1='${name}' | 'Natural reserve'} [0x1b0f resolution 18]
landuse=military {add mkgmap:label:1='${name}' | 'Military area'} [0x1b0f resolution 18]
military=danger_area {add mkgmap:label:1='${name}' | 'Danger area'} [0x1b0f resolution 18]
military=range {add mkgmap:label:1='${name}' | 'Military area'} [0x1b0f resolution 20]
military=airfield {add mkgmap:label:1='${name}' | 'Airfield'} [0x1b0f resolution 20]
############################################################
aeroway=airport {add mkgmap:label:1='${name}' | 'Airport'} [0x5900 resolution 22]
aeroway=helipad {add mkgmap:label:1='${name}' | 'Helipad'} [0x5904 resolution 22]
aeroway=aerodrome {add mkgmap:label:1='${name}' | 'Aerodrom'} [0x5900 resolution 22]
aeroway=terminal {add mkgmap:label:1='${name}' | 'Terminal'} [0x5900 resolution 22 continue]
###########################################################
amenity=atm {add mkgmap:label:1='${operator}: ${name}' | '${name}' | '${operator}' } [0x2f06 resolution 24]
amenity=bank {add mkgmap:label:1='${name} (${operator})' | '${name}' | '${operator}' } [0x2f06 resolution 24]
###########################################################
amenity=restaurant {add mkgmap:label:1='${name}' | 'Restaurant'} [0x4500 resolution 24 continue]
amenity=food_court {add mkgmap:label:1='${name}' | 'Food court'} [0x4500 resolution 24 continue]
amenity=fast_food {add mkgmap:label:1='${name}' | 'Fast food'} [0x2a07 resolution 24 continue]
amenity=cafe {add mkgmap:label:1='${name}' | 'Cafe'} [0x2a0e resolution 24 continue]
amenity=pub | amenity=bar | amenity=biergarten | amenity=nightclub {add mkgmap:label:1='${name}'} [0x2d02 resolution 24 continue]
###########################################################
# amenity=supermarket is superceded by shop=supermarket
shop=supermarket | amenity=supermarket {add mkgmap:label:1='${name}'} [0x2e01 resolution 22]
shop=* & shop!=bicycle & shop!=outdoor {add mkgmap:label:1='${name}'} [0x2e03 resolution 22]
amenity=bicycle_rental {add mkgmap:label:1='${name}'} [0x2e0a resolution 22]
shop=bicycle {add mkgmap:label:1='${name}'} [0x2e0a resolution 22]
service:bicycle:repair=yes {add mkgmap:label:1='${name}'} [0x2f00 resolution 22]
shop=outdoor {add mkgmap:label:1='${name}'} [0x2e06 resolution 22]
###########################################################
amenity=police {add mkgmap:label:1='${name}'} [0x3001 resolution 22]
amenity=embassy & country=* {add mkgmap:label:1='Embassy ${country}' | 'Embassy'} [0x3003 resolution 24]
healthcare=hospital | amenity=hospital {add mkgmap:label:1='${name}'} [0x3002 resolution 22]
healthcare=* | amenity=dentist | amenity=doctors {add mkgmap:label:1='${name}'} [0x3002 resolution 22]
amenity=fire_station {add mkgmap:label:1='${name}'} [0x3004 resolution 22]
amenity=emergency_phone {add mkgmap:label:1='${name}'} [0x5100 resolution 24]
amenity=telephone {add mkgmap:label:1='${name}'} [0x5100 resolution 24]
mkgmap:is_in!=* & is_in=* { set mkgmap:is_in='${is_in}' }
internet_access=yes {add mkgmap:label:1='Internet ${name}'} [0x5101 resolution 24 continue]
internet_access=* & internet_access!=no & internet_access!=yes {add mkgmap:label:1='Internet ${name}' } [0x5101 resolution 24 continue]
amenity=pharmacy {add mkgmap:label:1='${name}'} [0x2e05 resolution 22]
amenity=post_office {add mkgmap:label:1='${name}'} [0x2f05 resolution 24]
amenity=post_box {add mkgmap:label:1='${name}'} [0x2f04 resolution 24]
###########################################################
amenity=fuel {add mkgmap:label:1='${operator}: ${name}' | '${name}' | '${operator}'} [0x2f01 resolution 22]
amenity=parking [0x2f0b resolution 22]
amenity=place_of_worship {add mkgmap:label:1='${name}'} [0x6404 resolution 24]
amenity=library {add mkgmap:label:1='${name}'} [0x2c03 resolution 24]
amenity=theatre {add mkgmap:label:1='${name}'} [0x2d01 resolution 24]
amenity=townhall {add mkgmap:label:1='${name}' | 'Townhall'} [0x3003 resolution 24]
amenity=toilets [0x4e00 resolution 22]
# amenity=zoo is superceded by tourism=zoo
#tourism=zoo | amenity=zoo [0x2c07 resolution 24]
###########################################################
leisure=sports_center | leisure=sports_centre {add mkgmap:label:1='${name} (${sport})' | '${name}'} [0x2d0a resolution 24]
sport=multi {add mkgmap:label:1='${name}'} [0x2d0a resolution 24]
sport=swimming {add mkgmap:label:1='${name}'} [0x2d09 resolution 24]
##########################################################
place=city {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x0400 resolution 14-22]
place=town {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x0800 resolution 16-22]
place=village {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x0900 resolution 20]
place=hamlet {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x0b00 resolution 22]
place=suburb {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x0a00 resolution 22]
place=island {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x650c resolution 20]
place=islet {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x650c resolution 22]
##########################################################
(highway=bus_stop | amenity=bus_station | railway=tram_stop | railway=halt | railway=station | amenity=ferry_terminal)
{
set ref='${ref|def:}(${route_ref})';
name '${name|def:} ${ref|def:}*${operator|def:}';
}
railway=halt {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x4d02 resolution 22]
railway=station {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x4d02 resolution 22]
railway=tram_stop {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x4d01 resolution 24]
highway=bus_stop | amenity=bus_station {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x2f08 resolution 22]
amenity=ferry_terminal {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x2f09 resolution 22]
leisure=marina {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x2f09 resolution 22]
##########################################################
highway=traffic_signals [0x6612 resolution 24]
highway=speed_camera [0x6613 resolution 24]
##########################################################
historic=museum {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x2c02 resolution 22]
historic=archaeological_site | historic=ruins {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x2c02 resolution 22]
historic=memorial | historic=monument {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x2c02 resolution 22]
tourism=attraction & historic=* & historic!=wayside_cross {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'historic attraction'} [0x2c02 resolution 22]
tourism=attraction {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'attraction'} [0x2c04 resolution 22]
cross=yes | man_made=cross | historic=wayside_cross [0x481f resolution 24]
# Attractions / community
historic=* & historic!=wayside_cross & historic!=ruins {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x2c0b resolution 24]
#######################################################
tourism=hotel | tourism=motel {add mkgmap:label:1= '${name|def:}(${stars}*)${operator|def:}' | '${name} ${operator}' | '${name}' | '${operator}' } [0x2b01 resolution 22]
tourism=guest_house {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'guest house'} [0x2b02 resolution 22]
tourism=camp_site {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'camp site'} [0x2b03 resolution 21]
tourism=caravan_site {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'caravan site'} [0x2b03 resolution 22]
tourism=bed_and_breakfast {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'b&b'} [0x2b02 resolution 22]
tourism=hostel {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'hostel'} [0x480a resolution 22]
tourism=chalet {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'chalet'} [0x480b resolution 22]
# tourism=lean_to replaces some uses of amenity=shelter
tourism=alpine_hut {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'alpine hut'} [0x4800 resolution 22]
tourism=wilderness_hut {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'wilderness hut'} [0x4801 resolution 22]
amenity=shelter | shelter_type=basic_hut {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'shelter'} [0x4803 resolution 22]
tourism=lean_to | shelter_type=lean_to {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'lean-to'} [0x4804 resolution 22]
natural=* & shelter=yes | shelter_type=rock_shelter {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'natural shelter'} [0x4807 resolution 22]
# Private
building=cabin | tourism=cabin {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'cabin'} [0x4805 resolution 22]
historic=ruins | building=collapsed {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}' | 'ruins'} [0x4806 resolution 22]
######################################################
# Picnic
tourism=picnic_site | leisure=picnic_table {add mkgmap:label:1='picnic site'} [0x4a00 resolution 22]
amenity=bbq {add mkgmap:label:1='bbq'} [0x4a01 resolution 22]
amenity=bench [0x6605 resolution 24]
#######################################################################
# Barriers
barrier=gate | barrier=lift_gate | barrier=swing_gate | barrier=bump_gate | barrier=bollard | barrier=block | barrier=chain [0x3006 resolution 24]
barrier=toll_booth {add mkgmap:label:1='toll'} [0x3006 resolution 24]
barrier=bollard | barrier=bus_trap [0x3006 resolution 24]
barrier=block | barrier=cycle_barrier | barrier=stile | barrier=kissing_gate [0x3006 resolution 24]
amenity=border_control | barrier=border_control {add mkgmap:label:1='border'} [0x3006 resolution 20]
########################################################################
amenity=drinking_water [0x5000 resolution 22]
waterway=drinking_point [0x5000 resolution 22]
( man_made=waterwell | amenity=water_well | amenity=waterwell ) {set man_made=water_well}
man_made=water_well [0x5001 resolution 22]
( amenity=quelle | natural=quelle | amenity=spring ) {set natural=spring}
natural=spring [0x6511 resolution 22]
########################################################################
# Sights
tourism=viewpoint & man_made=tower {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x5201 resolution 22]
tourism=viewpoint {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x5200 resolution 22]
man_made=mast | power=tower [0x660f resolution 22]
man_made=tower | landmark=chimney {add mkgmap:label:1='${name} (${ref})' | '${ref}' | '${name}'} [0x6411 resolution 20]
# Geographical (man-made)
man_made=mineshaft | man_made=adit | historic=mine {add mkgmap:label:1='${name}'} [0x640c resolution 22]
man_made=survey_point {add mkgmap:label:1='${name}'} [0x1a0e resolution 20]
man_made=lighthouse {add mkgmap:label:1='${name}'} [0x1b0e resolution 20]
man_made=cairn {add mkgmap:label:1='${name}'} [0x6607 resolution 22]
boundary=marker {add mkgmap:label:1='${name}'} [0x6607 resolution 22]
historic=boundary_stone {add mkgmap:label:1='${name}'} [0x6607 resolution 22]
# Geographical (water-based)
waterway=waterfall | natural=waterfall {add mkgmap:label:1='${name}'} [0x6508 resolution 20]
waterway=rapids {add mkgmap:label:1='${name}'} [0x650e resolution 20]
ford=yes | highway=ford {add mkgmap:label:1='${name}'} [0x6401 resolution 22 continue]
# Geographical (land-based)
#ele=* & ele ~ '^[+-]?(?:\d+\,?\d*|\d*\.?\d+)[\r\n]*$' {add altitude=number}
#ele=* & altitude!=number {add altitude=no_number}
natural=peak {add mkgmap:label:1='${name} (${ele}m)' | '(${ele}m)' | '${name}'} [0x6616 resolution 20]
mountain_pass=yes {add mkgmap:label:1='${name} (${ele}m)' | '(${ele}m)' | '${name}'} [0x6401 resolution 22]
natural=rock {add mkgmap:label:1='${name}'} [0x6614 resolution 20]
natural=volcano {add mkgmap:label:1='${name} (${ele}m)' | '(${ele}m)' | '${name}'} [0x2c0c resolution 20]
natural=stone {add mkgmap:label:1='${name}'} [0x6606 resolution 22]
natural=tree {add mkgmap:label:1='${name}'} [0x6618 resolution 24]
natural=cave_entrance {add mkgmap:label:1='${name}'} [0x6601 resolution 22]
################################################################
# Information
tourism=information & information!=* {add mkgmap:label:1='${name} - (${operator})'| '${name} - (${description})' | '${name}' | '${description}' | '${operator}' | '${ref}'} [0x4c01 resolution 20]
information=office {add mkgmap:label:1='${name} - (${operator})'| '${name} - (${description})' | '${name}' | '${description}' | '${operator}' | '${ref}'} [0x4c01 resolution 20]
information=guidepost [0x4c02 resolution 20]
information=board | information=terminal [0x4c03 resolution 20]
information=map [0x4c04 resolution 20]
################################################################
# Beacons and Buoyes
man_made=beacon | airmark=beacon | landmark=beacon {add mkgmap:label:1='${name}'} [0x190e resolution 22]
seamark:type=* {add mkgmap:label:1='${name}'} [0x180e resolution 22]
<finalize>
# The finalizer section is executed for each element when a rule with an element type matches