1 | *[barrier=wire_fence] {
|
---|
2 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
3 | group: tr("deprecated tagging");
|
---|
4 | suggestAlternative: "barrier=fence + fence_type=chain_link";
|
---|
5 | fixAdd: "barrier=fence";
|
---|
6 | fixAdd: "fence_type=chain_link";
|
---|
7 | assertMatch: "way barrier=wire_fence";
|
---|
8 | assertNoMatch: "way barrier=fence";
|
---|
9 | }
|
---|
10 |
|
---|
11 | *[barrier=wood_fence] {
|
---|
12 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
13 | suggestAlternative: "barrier=fence + fence_type=wood";
|
---|
14 | group: tr("deprecated tagging");
|
---|
15 | fixAdd: "barrier=fence";
|
---|
16 | fixAdd: "fence_type=wood";
|
---|
17 | }
|
---|
18 |
|
---|
19 | node[highway=ford] {
|
---|
20 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
21 | suggestAlternative: "ford=yes";
|
---|
22 | group: tr("deprecated tagging");
|
---|
23 | fixRemove: "highway";
|
---|
24 | fixAdd: "ford=yes";
|
---|
25 | }
|
---|
26 | way[highway=ford] {
|
---|
27 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
28 | suggestAlternative: "highway=* + ford=yes";
|
---|
29 | group: tr("deprecated tagging");
|
---|
30 | }
|
---|
31 |
|
---|
32 | way[class] {
|
---|
33 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
34 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
35 | suggestAlternative: "highway";
|
---|
36 | group: tr("deprecated tagging");
|
---|
37 | }
|
---|
38 |
|
---|
39 | *[highway=stile] {
|
---|
40 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
41 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
42 | suggestAlternative: "barrier=stile";
|
---|
43 | group: tr("deprecated tagging");
|
---|
44 | fixRemove: "highway";
|
---|
45 | fixAdd: "barrier=stile";
|
---|
46 | }
|
---|
47 |
|
---|
48 | *[highway=incline] {
|
---|
49 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
50 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
51 | suggestAlternative: "incline";
|
---|
52 | group: tr("deprecated tagging");
|
---|
53 | }
|
---|
54 |
|
---|
55 | *[highway=incline_steep] {
|
---|
56 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
57 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
58 | suggestAlternative: "incline";
|
---|
59 | group: tr("deprecated tagging");
|
---|
60 | }
|
---|
61 |
|
---|
62 | *[highway=unsurfaced] {
|
---|
63 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
64 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
65 | suggestAlternative: "highway=* + surface=unpaved";
|
---|
66 | group: tr("deprecated tagging");
|
---|
67 | fixAdd: "highway=road";
|
---|
68 | fixAdd: "surface=unpaved";
|
---|
69 | }
|
---|
70 |
|
---|
71 | *[landuse=wood] {
|
---|
72 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
73 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
74 | suggestAlternative: "landuse=forest";
|
---|
75 | suggestAlternative: "natural=wood";
|
---|
76 | group: tr("deprecated tagging");
|
---|
77 | }
|
---|
78 |
|
---|
79 | *[natural=marsh] {
|
---|
80 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
81 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
82 | suggestAlternative: "natural=wetland + wetland=marsh";
|
---|
83 | group: tr("deprecated tagging");
|
---|
84 | fixAdd: "natural=wetland";
|
---|
85 | fixAdd: "wetland=marsh";
|
---|
86 | }
|
---|
87 |
|
---|
88 | *[highway=byway] {
|
---|
89 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
90 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
91 | group: tr("deprecated tagging");
|
---|
92 | }
|
---|
93 |
|
---|
94 | *[power_source] {
|
---|
95 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
96 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
97 | suggestAlternative: "generator:source";
|
---|
98 | group: tr("deprecated tagging");
|
---|
99 | }
|
---|
100 |
|
---|
101 | *[power_rating] {
|
---|
102 | /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
|
---|
103 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
104 | suggestAlternative: "generator:output";
|
---|
105 | group: tr("deprecated tagging");
|
---|
106 | }
|
---|
107 |
|
---|
108 | *[shop=antique] {
|
---|
109 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
110 | suggestAlternative: "shop=antiques";
|
---|
111 | group: tr("deprecated tagging");
|
---|
112 | fixAdd: "shop=antiques";
|
---|
113 | }
|
---|
114 |
|
---|
115 | *[shop=bags] {
|
---|
116 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
117 | suggestAlternative: "shop=bag";
|
---|
118 | group: tr("deprecated tagging");
|
---|
119 | fixAdd: "shop=bag";
|
---|
120 | }
|
---|
121 |
|
---|
122 | /* #17527 */
|
---|
123 | *[shop=fashion] {
|
---|
124 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
125 | suggestAlternative: "shop=clothes";
|
---|
126 | group: tr("deprecated tagging");
|
---|
127 | fixAdd: "shop=clothes";
|
---|
128 | }
|
---|
129 |
|
---|
130 | *[shop=organic] {
|
---|
131 | /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
|
---|
132 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
133 | suggestAlternative: "shop=* + organic=yes";
|
---|
134 | suggestAlternative: "shop=* + organic=only";
|
---|
135 | group: tr("deprecated tagging");
|
---|
136 | }
|
---|
137 |
|
---|
138 | *[shop=pets] {
|
---|
139 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
140 | suggestAlternative: "shop=pet";
|
---|
141 | group: tr("deprecated tagging");
|
---|
142 | fixAdd: "shop=pet";
|
---|
143 | }
|
---|
144 |
|
---|
145 | *[shop=pharmacy] {
|
---|
146 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
147 | suggestAlternative: "amenity=pharmacy";
|
---|
148 | group: tr("deprecated tagging");
|
---|
149 | fixChangeKey: "shop => amenity";
|
---|
150 | }
|
---|
151 |
|
---|
152 | *[bicycle_parking=sheffield] {
|
---|
153 | /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
|
---|
154 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
155 | suggestAlternative: "bicycle_parking=stands";
|
---|
156 | group: tr("deprecated tagging");
|
---|
157 | fixAdd: "bicycle_parking=stands";
|
---|
158 | }
|
---|
159 |
|
---|
160 | *[amenity=emergency_phone] {
|
---|
161 | /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
|
---|
162 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
163 | suggestAlternative: "emergency=phone";
|
---|
164 | group: tr("deprecated tagging");
|
---|
165 | fixRemove: "amenity";
|
---|
166 | fixAdd: "emergency=phone";
|
---|
167 | }
|
---|
168 |
|
---|
169 | *[sport=gaelic_football] {
|
---|
170 | /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
|
---|
171 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
172 | suggestAlternative: "sport=gaelic_games";
|
---|
173 | group: tr("deprecated tagging");
|
---|
174 | fixAdd: "sport=gaelic_games";
|
---|
175 | }
|
---|
176 |
|
---|
177 | *[power=station] {
|
---|
178 | /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
|
---|
179 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
180 | suggestAlternative: "power=plant";
|
---|
181 | suggestAlternative: "power=substation";
|
---|
182 | group: tr("deprecated tagging");
|
---|
183 | }
|
---|
184 |
|
---|
185 | *[power=sub_station] {
|
---|
186 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
187 | suggestAlternative: "power=substation";
|
---|
188 | group: tr("deprecated tagging");
|
---|
189 | fixAdd: "power=substation";
|
---|
190 | }
|
---|
191 |
|
---|
192 | *[generator:method=dam] {
|
---|
193 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
194 | suggestAlternative: "generator:method=water-storage";
|
---|
195 | group: tr("deprecated tagging");
|
---|
196 | fixAdd: "generator:method=water-storage";
|
---|
197 | }
|
---|
198 |
|
---|
199 | *[generator:method=pumped-storage] {
|
---|
200 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
201 | suggestAlternative: "generator:method=water-pumped-storage";
|
---|
202 | group: tr("deprecated tagging");
|
---|
203 | fixAdd: "generator:method=water-pumped-storage";
|
---|
204 | }
|
---|
205 |
|
---|
206 | *[generator:method=pumping] {
|
---|
207 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
208 | suggestAlternative: "generator:method=water-pumped-storage";
|
---|
209 | group: tr("deprecated tagging");
|
---|
210 | fixAdd: "generator:method=water-pumped-storage";
|
---|
211 | }
|
---|
212 |
|
---|
213 | *[fence_type=chain] {
|
---|
214 | /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
|
---|
215 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
216 | suggestAlternative: "barrier=chain";
|
---|
217 | suggestAlternative: "barrier=fence + fence_type=chain_link";
|
---|
218 | group: tr("deprecated tagging");
|
---|
219 | }
|
---|
220 |
|
---|
221 | *[building=entrance] {
|
---|
222 | /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
|
---|
223 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
224 | suggestAlternative: "entrance";
|
---|
225 | group: tr("deprecated tagging");
|
---|
226 | }
|
---|
227 |
|
---|
228 | *[board_type=board] {
|
---|
229 | /* see #9213 - Useless tag proposed in internal preset for years */
|
---|
230 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
231 | group: tr("deprecated tagging");
|
---|
232 | fixRemove: "board_type";
|
---|
233 | }
|
---|
234 |
|
---|
235 | *[man_made=measurement_station] {
|
---|
236 | /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
|
---|
237 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
238 | suggestAlternative: "man_made=monitoring_station";
|
---|
239 | group: tr("deprecated tagging");
|
---|
240 | fixAdd: "man_made=monitoring_station";
|
---|
241 | }
|
---|
242 |
|
---|
243 | *[measurement=water_level] {
|
---|
244 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
245 | suggestAlternative: "monitoring:water_level=yes";
|
---|
246 | group: tr("deprecated tagging");
|
---|
247 | fixRemove: "measurement";
|
---|
248 | fixAdd: "monitoring:water_level=yes";
|
---|
249 | }
|
---|
250 |
|
---|
251 | *[measurement=weather] {
|
---|
252 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
253 | suggestAlternative: "monitoring:weather=yes";
|
---|
254 | group: tr("deprecated tagging");
|
---|
255 | fixRemove: "measurement";
|
---|
256 | fixAdd: "monitoring:weather=yes";
|
---|
257 | }
|
---|
258 |
|
---|
259 | *[measurement=seismic] {
|
---|
260 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
261 | suggestAlternative: "monitoring:seismic_activity=yes";
|
---|
262 | group: tr("deprecated tagging");
|
---|
263 | fixRemove: "measurement";
|
---|
264 | fixAdd: "monitoring:seismic_activity=yes";
|
---|
265 | }
|
---|
266 |
|
---|
267 | *[monitoring:river_level] {
|
---|
268 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
269 | suggestAlternative: "monitoring:water_level";
|
---|
270 | group: tr("deprecated tagging");
|
---|
271 | fixChangeKey: "monitoring:river_level => monitoring:water_level";
|
---|
272 | }
|
---|
273 |
|
---|
274 | *[stay] {
|
---|
275 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
276 | suggestAlternative: "maxstay";
|
---|
277 | group: tr("deprecated tagging");
|
---|
278 | fixChangeKey: "stay => maxstay";
|
---|
279 | }
|
---|
280 |
|
---|
281 | *[emergency=aed] {
|
---|
282 | /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
|
---|
283 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
284 | suggestAlternative: "emergency=defibrillator";
|
---|
285 | group: tr("deprecated tagging");
|
---|
286 | fixAdd: "emergency=defibrillator";
|
---|
287 | }
|
---|
288 |
|
---|
289 | /* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
|
---|
290 | *[day_on][!restriction],
|
---|
291 | *[day_off][!restriction],
|
---|
292 | *[date_on][!restriction],
|
---|
293 | *[date_off][!restriction],
|
---|
294 | *[hour_on][!restriction],
|
---|
295 | *[hour_off][!restriction] {
|
---|
296 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
297 | suggestAlternative: "*:conditional";
|
---|
298 | group: tr("deprecated tagging");
|
---|
299 | assertMatch: "node day_on=0-12";
|
---|
300 | }
|
---|
301 |
|
---|
302 | /* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
|
---|
303 | *[access=designated] {
|
---|
304 | throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
|
---|
305 | assertMatch: "way access=designated";
|
---|
306 | }
|
---|
307 | *[access=official] {
|
---|
308 | throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
|
---|
309 | assertMatch: "way access=official";
|
---|
310 | }
|
---|
311 |
|
---|
312 | /* see #10085 - give warning for fixme=yes */
|
---|
313 | *[fixme=yes], *[FIXME=yes] {
|
---|
314 | throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
|
---|
315 | assertMatch: "way fixme=yes";
|
---|
316 | }
|
---|
317 |
|
---|
318 | *[name][name=~/^(?i)fixme$/] {
|
---|
319 | throwWarning: tr("Wrong usage of {0} tag. Remove {1}, because it is clear that the name is missing even without an additional tag.", "{0.key}", "{0.tag}");
|
---|
320 | fixRemove: "name";
|
---|
321 | assertMatch: "node name=fixme";
|
---|
322 | assertMatch: "node name=Fixme";
|
---|
323 | assertMatch: "node name=FIXME";
|
---|
324 | assertNoMatch: "node name=valid name";
|
---|
325 | }
|
---|
326 |
|
---|
327 | *[note][note=~/^(?i)fixme$/] {
|
---|
328 | throwWarning: tr("{0} is unspecific. Instead use the key fixme with the information what exactly should be fixed in the value of fixme.", "{0.tag}");
|
---|
329 | }
|
---|
330 |
|
---|
331 | /* see #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
|
---|
332 | *[type=broad_leaved],
|
---|
333 | *[type=broad_leafed] {
|
---|
334 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
335 | suggestAlternative: "leaf_type=broadleaved";
|
---|
336 | group: tr("deprecated tagging");
|
---|
337 | fixRemove: "{0.key}";
|
---|
338 | fixAdd: "leaf_type=broadleaved";
|
---|
339 | }
|
---|
340 |
|
---|
341 | *[wood=coniferous],
|
---|
342 | *[type=coniferous],
|
---|
343 | *[type=conifer] {
|
---|
344 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
345 | suggestAlternative: "leaf_type=needleleaved";
|
---|
346 | group: tr("deprecated tagging");
|
---|
347 | fixRemove: "{0.key}";
|
---|
348 | fixAdd: "leaf_type=needleleaved";
|
---|
349 | }
|
---|
350 |
|
---|
351 | *[wood=mixed] {
|
---|
352 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
353 | suggestAlternative: "leaf_type=mixed";
|
---|
354 | group: tr("deprecated tagging");
|
---|
355 | fixRemove: "wood";
|
---|
356 | fixAdd: "leaf_type=mixed";
|
---|
357 | }
|
---|
358 |
|
---|
359 | *[wood=evergreen],
|
---|
360 | *[type=evergreen] {
|
---|
361 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
362 | suggestAlternative: "leaf_cycle=evergreen";
|
---|
363 | group: tr("deprecated tagging");
|
---|
364 | fixRemove: "{0.key}";
|
---|
365 | fixAdd: "leaf_cycle=evergreen";
|
---|
366 | }
|
---|
367 |
|
---|
368 | *[type=deciduous],
|
---|
369 | *[type=deciduos] {
|
---|
370 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
371 | suggestAlternative: "leaf_cycle=deciduous";
|
---|
372 | group: tr("deprecated tagging");
|
---|
373 | fixRemove: "type";
|
---|
374 | fixAdd: "leaf_cycle=deciduous";
|
---|
375 | }
|
---|
376 |
|
---|
377 | *[wood=deciduous] {
|
---|
378 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
379 | suggestAlternative: "leaf_type + leaf_cycle";
|
---|
380 | group: tr("deprecated tagging");
|
---|
381 | }
|
---|
382 |
|
---|
383 | node[type=palm],
|
---|
384 | way[type=palm] {
|
---|
385 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
386 | suggestAlternative: "leaf_type";
|
---|
387 | suggestAlternative: "trees";
|
---|
388 | suggestAlternative: "species";
|
---|
389 | group: tr("deprecated tagging");
|
---|
390 | }
|
---|
391 |
|
---|
392 | *[natural=land] {
|
---|
393 | throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
|
---|
394 | group: tr("deprecated tagging");
|
---|
395 | assertMatch: "way natural=land";
|
---|
396 | }
|
---|
397 |
|
---|
398 | /* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
|
---|
399 | *[bridge=causeway] {
|
---|
400 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
401 | suggestAlternative: "ford=yes";
|
---|
402 | suggestAlternative: "bridge=low_water_crossing";
|
---|
403 | suggestAlternative: "embankment=yes";
|
---|
404 | group: tr("deprecated tagging");
|
---|
405 | }
|
---|
406 | *[bridge=swing] {
|
---|
407 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
408 | suggestAlternative: "bridge:movable=swing";
|
---|
409 | suggestAlternative: "bridge:structure=simple-suspension";
|
---|
410 | group: tr("deprecated tagging");
|
---|
411 | }
|
---|
412 | *[bridge=suspension] {
|
---|
413 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
414 | suggestAlternative: "bridge=yes + bridge:structure=suspension";
|
---|
415 | group: tr("deprecated tagging");
|
---|
416 | fixAdd: "bridge=yes";
|
---|
417 | fixAdd: "bridge:structure=suspension";
|
---|
418 | }
|
---|
419 | *[bridge=pontoon] {
|
---|
420 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
421 | suggestAlternative: "bridge=yes + bridge:structure=floating";
|
---|
422 | group: tr("deprecated tagging");
|
---|
423 | fixAdd: "bridge=yes";
|
---|
424 | fixAdd: "bridge:structure=floating";
|
---|
425 | }
|
---|
426 |
|
---|
427 | /* See #10530 - Incorrect tag proposed in internal preset for years */
|
---|
428 | *[fee=interval],
|
---|
429 | *[lit=interval],
|
---|
430 | *[supervised=interval] {
|
---|
431 | throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
|
---|
432 | group: tr("deprecated tagging");
|
---|
433 | }
|
---|
434 |
|
---|
435 | /* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
|
---|
436 | *[/josm\/ignore/] {
|
---|
437 | throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
|
---|
438 | group: tr("deprecated tagging");
|
---|
439 | fixDeleteObject: this;
|
---|
440 | }
|
---|
441 |
|
---|
442 | /* see #8281 */
|
---|
443 | *[sport=diving] {
|
---|
444 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
445 | suggestAlternative: "sport=scuba_diving";
|
---|
446 | suggestAlternative: "sport=cliff_diving";
|
---|
447 | group: tr("deprecated tagging");
|
---|
448 | }
|
---|
449 |
|
---|
450 | /* see #8281 */
|
---|
451 | *[parking=park_and_ride] {
|
---|
452 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
453 | suggestAlternative: "amenity=parking + park_ride=yes";
|
---|
454 | group: tr("deprecated tagging");
|
---|
455 | fixRemove: "parking";
|
---|
456 | fixAdd: "amenity=parking";
|
---|
457 | fixAdd: "park_ride=yes";
|
---|
458 | }
|
---|
459 |
|
---|
460 | /* see #10661, #10837, #11737, #12771 */
|
---|
461 | *[traffic_calming=yes],
|
---|
462 | *[access=restricted],
|
---|
463 | *[barrier=yes],
|
---|
464 | *[aerialway=yes][!public_transport],
|
---|
465 | *[amenity=yes],
|
---|
466 | *[leisure=yes],
|
---|
467 | *[shop="*"],
|
---|
468 | *[shop=yes][amenity!=fuel],
|
---|
469 | *[craft=yes],
|
---|
470 | *[service=yes],
|
---|
471 | *[place=yes] {
|
---|
472 | throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
|
---|
473 | }
|
---|
474 |
|
---|
475 | /* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
|
---|
476 | *[place_name][!name] {
|
---|
477 | throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
|
---|
478 | fixChangeKey: "place_name => name";
|
---|
479 | }
|
---|
480 | *[place][place_name = *name] {
|
---|
481 | throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
|
---|
482 | fixRemove: "{1.key}";
|
---|
483 | }
|
---|
484 |
|
---|
485 | way[sidewalk=yes] {
|
---|
486 | throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
|
---|
487 | }
|
---|
488 |
|
---|
489 | *[waterway=water_point] {
|
---|
490 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
491 | suggestAlternative: "amenity=water_point";
|
---|
492 | group: tr("deprecated tagging");
|
---|
493 | fixChangeKey: "waterway => amenity";
|
---|
494 | }
|
---|
495 | *[waterway=waste_disposal] {
|
---|
496 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
497 | suggestAlternative: "amenity=waste_disposal";
|
---|
498 | group: tr("deprecated tagging");
|
---|
499 | fixChangeKey: "waterway => amenity";
|
---|
500 | }
|
---|
501 | *[waterway=mooring] {
|
---|
502 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
503 | suggestAlternative: "mooring=yes";
|
---|
504 | group: tr("deprecated tagging");
|
---|
505 | fixRemove: "waterway";
|
---|
506 | fixAdd: "mooring=yes";
|
---|
507 | }
|
---|
508 |
|
---|
509 | /* see #10837 */
|
---|
510 | *[building][levels],
|
---|
511 | *[building:part=yes][levels] {
|
---|
512 | throwWarning: tr("{0} is deprecated", "{1.key}");
|
---|
513 | suggestAlternative: "building:levels";
|
---|
514 | group: tr("deprecated tagging");
|
---|
515 | fixChangeKey: "levels => building:levels";
|
---|
516 | }
|
---|
517 |
|
---|
518 | /* see #10691 */
|
---|
519 | *[protected_class] {
|
---|
520 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
521 | suggestAlternative: "protect_class";
|
---|
522 | group: tr("deprecated tagging");
|
---|
523 | fixChangeKey: "protected_class => protect_class";
|
---|
524 | }
|
---|
525 |
|
---|
526 | /* see #11070 */
|
---|
527 | *[lock=unknown],
|
---|
528 | *[hide=unknown],
|
---|
529 | *[shelter=unknown],
|
---|
530 | *[access=unknown],
|
---|
531 | *[capacity:parent=unknown],
|
---|
532 | *[capacity:women=unknown],
|
---|
533 | *[capacity:disabled=unknown],
|
---|
534 | *[crossing=unknown],
|
---|
535 | *[foot=unknown] {
|
---|
536 | throwWarning: tr("Unspecific tag {0}", "{0.tag}");
|
---|
537 | }
|
---|
538 |
|
---|
539 | /* unclear definition, see #11183 */
|
---|
540 | *[sport=skiing] {
|
---|
541 | throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
|
---|
542 | suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
|
---|
543 | group: tr("deprecated tagging");
|
---|
544 | }
|
---|
545 |
|
---|
546 | /* see #11223 */
|
---|
547 | *[waterway=wadi] {
|
---|
548 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
549 | suggestAlternative: "{0.key}=* + intermittent=yes";
|
---|
550 | suggestAlternative: "natural=valley";
|
---|
551 | group: tr("deprecated tagging");
|
---|
552 | }
|
---|
553 |
|
---|
554 | /* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
|
---|
555 | way[oneway=1][!waterway] {
|
---|
556 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
557 | suggestAlternative: "oneway=yes";
|
---|
558 | group: tr("deprecated tagging");
|
---|
559 | fixAdd: "oneway=yes";
|
---|
560 | }
|
---|
561 |
|
---|
562 | /* see #11329, #15667 */
|
---|
563 | way[oneway=-1][!waterway] {
|
---|
564 | throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
|
---|
565 | }
|
---|
566 |
|
---|
567 | *[drinkable] {
|
---|
568 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
569 | suggestAlternative: "drinking_water";
|
---|
570 | group: tr("deprecated tagging");
|
---|
571 | }
|
---|
572 |
|
---|
573 | /* see #10329, #15877 */
|
---|
574 | /* simple key change */
|
---|
575 | *[color][!colour] {
|
---|
576 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
577 | suggestAlternative: "colour";
|
---|
578 | group: tr("deprecated tagging");
|
---|
579 | fixChangeKey: "color => colour";
|
---|
580 | assertMatch: "way color=red";
|
---|
581 | assertNoMatch: "way color=red colour=red";
|
---|
582 | }
|
---|
583 | area[building:color][!building:colour] {
|
---|
584 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
585 | suggestAlternative: "building:colour";
|
---|
586 | group: tr("deprecated tagging");
|
---|
587 | fixChangeKey: "building:color => building:colour";
|
---|
588 | assertMatch: "way building:color=red";
|
---|
589 | assertNoMatch: "way building:color=red building:colour=red";
|
---|
590 | }
|
---|
591 | area[roof:color][!roof:colour] {
|
---|
592 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
593 | suggestAlternative: "roof:colour";
|
---|
594 | group: tr("deprecated tagging");
|
---|
595 | fixChangeKey: "roof:color => roof:colour";
|
---|
596 | assertMatch: "way roof:color=red";
|
---|
597 | assertNoMatch: "way roof:color=red roof:colour=red";
|
---|
598 | }
|
---|
599 | /* both tags with same value, remove color */
|
---|
600 | *[color][colour][color=*colour] {
|
---|
601 | throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
|
---|
602 | suggestAlternative: "colour";
|
---|
603 | group: tr("deprecated tagging");
|
---|
604 | set samecolor;
|
---|
605 | fixRemove: "color";
|
---|
606 | assertMatch: "way color=red colour=red";
|
---|
607 | assertNoMatch: "way color=red colour=green";
|
---|
608 | }
|
---|
609 | area[building:color][building:colour]["building:color"=*"building:colour"] {
|
---|
610 | throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
|
---|
611 | suggestAlternative: "building:colour";
|
---|
612 | group: tr("deprecated tagging");
|
---|
613 | set samebuildingcolor;
|
---|
614 | fixRemove: "building:color";
|
---|
615 | assertMatch: "way building:color=red building:colour=red";
|
---|
616 | assertNoMatch: "way building:color=red building:colour=green";
|
---|
617 | }
|
---|
618 | area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
|
---|
619 | throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
|
---|
620 | suggestAlternative: "roof:colour";
|
---|
621 | group: tr("deprecated tagging");
|
---|
622 | set sameroofcolor;
|
---|
623 | fixRemove: "roof:color";
|
---|
624 | assertMatch: "way roof:color=red roof:colour=red";
|
---|
625 | assertNoMatch: "way roof:color=red roof:colour=green";
|
---|
626 | }
|
---|
627 | /* both tags with different values, no autofix */
|
---|
628 | *[color][colour]!.samecolor {
|
---|
629 | throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
|
---|
630 | suggestAlternative: "colour";
|
---|
631 | group: tr("deprecated tagging");
|
---|
632 | assertNoMatch: "way color=red colour=red";
|
---|
633 | assertMatch: "way color=red colour=green";
|
---|
634 | }
|
---|
635 | *[building:color][building:colour]!.samebuildingcolor {
|
---|
636 | throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
|
---|
637 | suggestAlternative: "building:colour";
|
---|
638 | group: tr("deprecated tagging");
|
---|
639 | assertNoMatch: "way building:color=red building:colour=red";
|
---|
640 | assertMatch: "way building:color=red building:colour=green";
|
---|
641 | }
|
---|
642 | *[roof:color][roof:colour]!.sameroofcolor {
|
---|
643 | throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
|
---|
644 | suggestAlternative: "roof:colour";
|
---|
645 | group: tr("deprecated tagging");
|
---|
646 | assertNoMatch: "way roof:color=red roof:colour=red";
|
---|
647 | assertMatch: "way roof:color=red roof:colour=green";
|
---|
648 | }
|
---|
649 | /* further more universal checks, no autofix */
|
---|
650 | *[/:color/][!building:color][!roof:color] {
|
---|
651 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
652 | suggestAlternative: ":colour";
|
---|
653 | group: tr("deprecated tagging");
|
---|
654 | assertNoMatch: "way color=red";
|
---|
655 | assertNoMatch: "way roof:color=grey";
|
---|
656 | assertMatch: "way cycleway:surface:color=grey";
|
---|
657 | }
|
---|
658 | *[/color:/] {
|
---|
659 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
660 | suggestAlternative: "colour:";
|
---|
661 | group: tr("deprecated tagging");
|
---|
662 | assertNoMatch: "way color=red";
|
---|
663 | assertMatch: "way color:back=grey";
|
---|
664 | }
|
---|
665 |
|
---|
666 | /* see #11234 */
|
---|
667 | *[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
|
---|
668 | throwWarning: tr("{0}", "{0.key}");
|
---|
669 | group: tr("key with uncommon character");
|
---|
670 | }
|
---|
671 |
|
---|
672 | /* see #11330 */
|
---|
673 | *[/^.$/],
|
---|
674 | node[/^..$/],
|
---|
675 | way[/^..$/],
|
---|
676 | relation[/^..$/][!to] {
|
---|
677 | throwWarning: tr("uncommon short key");
|
---|
678 | assertNoMatch: "relation to=Berlin";
|
---|
679 | assertMatch: "relation fo=bar";
|
---|
680 | assertMatch: "way to=bar";
|
---|
681 | assertMatch: "node fo=bar";
|
---|
682 | assertMatch: "node f=b";
|
---|
683 | }
|
---|
684 |
|
---|
685 | /* see #11439 */
|
---|
686 | *[sport=hockey] {
|
---|
687 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
688 | suggestAlternative: "sport=field_hockey";
|
---|
689 | suggestAlternative: "sport=ice_hockey";
|
---|
690 | group: tr("deprecated tagging");
|
---|
691 | }
|
---|
692 |
|
---|
693 | /* see #11471 */
|
---|
694 | *[sport=billard],
|
---|
695 | *[sport=billards],
|
---|
696 | *[sport=billiard] {
|
---|
697 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
698 | suggestAlternative: "sport=billiards";
|
---|
699 | group: tr("deprecated tagging");
|
---|
700 | fixAdd: "sport=billiards";
|
---|
701 | }
|
---|
702 |
|
---|
703 | /* see #11499, #16928 */
|
---|
704 | *[payment:credit_cards=yes] {
|
---|
705 | throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:mastercard=yes", "payment:visa=yes");
|
---|
706 | }
|
---|
707 | *[payment:debit_cards=yes] {
|
---|
708 | throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:maestro=yes", "payment:girocard=yes");
|
---|
709 | }
|
---|
710 | *[payment:electronic_purses=yes] {
|
---|
711 | throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:ep_geldkarte=yes", "payment:ep_quick=yes");
|
---|
712 | }
|
---|
713 | *[payment:cryptocurrencies=yes] {
|
---|
714 | throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:bitcoin=yes", "payment:litecoin=yes");
|
---|
715 | }
|
---|
716 |
|
---|
717 | /* defunct payment cards */
|
---|
718 | *[payment:ep_quick],
|
---|
719 | *[payment:ep_cash],
|
---|
720 | *[payment:ep_proton],
|
---|
721 | *[payment:ep_chipknip] {
|
---|
722 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
723 | group: tr("deprecated tagging");
|
---|
724 | fixRemove: "{0.key}";
|
---|
725 | }
|
---|
726 |
|
---|
727 | /* see #8717 */
|
---|
728 | *[kp][highway=milestone],
|
---|
729 | *[kp][railway=milestone],
|
---|
730 | *[kp][waterway=milestone] {
|
---|
731 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
732 | suggestAlternative: "distance";
|
---|
733 | group: tr("deprecated tagging");
|
---|
734 | fixChangeKey: "kp => distance";
|
---|
735 | }
|
---|
736 | *[pk][highway=milestone],
|
---|
737 | *[pk][railway=milestone],
|
---|
738 | *[pk][waterway=milestone] {
|
---|
739 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
740 | suggestAlternative: "distance";
|
---|
741 | group: tr("deprecated tagging");
|
---|
742 | fixChangeKey: "pk => distance";
|
---|
743 | }
|
---|
744 |
|
---|
745 | *[postcode] {
|
---|
746 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
747 | suggestAlternative: "addr:postcode";
|
---|
748 | group: tr("deprecated tagging");
|
---|
749 | suggestAlternative: "postal_code";
|
---|
750 | }
|
---|
751 |
|
---|
752 | *[water=intermittent] {
|
---|
753 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
754 | suggestAlternative: "intermittent=yes";
|
---|
755 | group: tr("deprecated tagging");
|
---|
756 | fixRemove: "water";
|
---|
757 | fixAdd: "intermittent=yes";
|
---|
758 | }
|
---|
759 |
|
---|
760 | /* #10907, #14141 */
|
---|
761 | /* type=waterway on ways is questionable, but the autofix doesn't make it better, so disabled; type=route and type=network is used only on relations */
|
---|
762 | way[type][type!=waterway][man_made=pipeline],
|
---|
763 | node[type][pipeline=marker] {
|
---|
764 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
765 | suggestAlternative: "substance";
|
---|
766 | group: tr("deprecated tagging");
|
---|
767 | fixChangeKey: "type => substance";
|
---|
768 | }
|
---|
769 |
|
---|
770 | *[landuse=farm] {
|
---|
771 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
772 | suggestAlternative: "landuse=farmland";
|
---|
773 | suggestAlternative: "landuse=farmyard";
|
---|
774 | group: tr("deprecated tagging");
|
---|
775 | }
|
---|
776 |
|
---|
777 | /* #12135 comment:11 */
|
---|
778 | *[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
|
---|
779 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
780 | suggestAlternative: "{1.tag}";
|
---|
781 | group: tr("deprecated tagging");
|
---|
782 | fixRemove: "seamark";
|
---|
783 | }
|
---|
784 | *[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
|
---|
785 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
786 | suggestAlternative: "{1.tag}";
|
---|
787 | group: tr("deprecated tagging");
|
---|
788 | }
|
---|
789 | /* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
|
---|
790 | *[landuse=conservation] {
|
---|
791 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
792 | suggestAlternative: "boundary=protected_area";
|
---|
793 | group: tr("deprecated tagging");
|
---|
794 | fixAdd: "boundary=protected_area";
|
---|
795 | fixRemove: "landuse";
|
---|
796 | }
|
---|
797 |
|
---|
798 | /* #12205 */
|
---|
799 | *[amenity=kiosk] {
|
---|
800 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
801 | suggestAlternative: "shop=kiosk";
|
---|
802 | group: tr("deprecated tagging");
|
---|
803 | fixChangeKey: "amenity => shop";
|
---|
804 | }
|
---|
805 | *[amenity=shop] {
|
---|
806 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
807 | suggestAlternative: "shop=*";
|
---|
808 | group: tr("deprecated tagging");
|
---|
809 | }
|
---|
810 | *[shop=fishmonger] {
|
---|
811 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
812 | suggestAlternative: "shop=seafood";
|
---|
813 | group: tr("deprecated tagging");
|
---|
814 | fixAdd: "shop=seafood";
|
---|
815 | }
|
---|
816 | *[shop=fish] {
|
---|
817 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
818 | suggestAlternative: "shop=seafood";
|
---|
819 | suggestAlternative: "shop=pet";
|
---|
820 | suggestAlternative: "shop=fishing";
|
---|
821 | group: tr("deprecated tagging");
|
---|
822 | }
|
---|
823 | *[shop=betting] {
|
---|
824 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
825 | suggestAlternative: "shop=bookmaker";
|
---|
826 | suggestAlternative: "shop=lottery";
|
---|
827 | suggestAlternative: "amenity=casino";
|
---|
828 | suggestAlternative: "leisure=amusement_arcade";
|
---|
829 | suggestAlternative: "leisure=adult_gaming_centre";
|
---|
830 | suggestAlternative: "amenity=gambling";
|
---|
831 | group: tr("deprecated tagging");
|
---|
832 | }
|
---|
833 | *[shop=perfume] {
|
---|
834 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
835 | suggestAlternative: "shop=perfumery";
|
---|
836 | group: tr("deprecated tagging");
|
---|
837 | fixAdd: "shop=perfumery";
|
---|
838 | }
|
---|
839 | *[amenity=exercise_point] {
|
---|
840 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
841 | suggestAlternative: "leisure=fitness_station";
|
---|
842 | group: tr("deprecated tagging");
|
---|
843 | fixAdd: "leisure=fitness_station";
|
---|
844 | fixRemove: "amenity";
|
---|
845 | }
|
---|
846 | *[shop=auto_parts] {
|
---|
847 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
848 | suggestAlternative: "shop=car_parts";
|
---|
849 | group: tr("deprecated tagging");
|
---|
850 | fixAdd: "shop=car_parts";
|
---|
851 | }
|
---|
852 | *[amenity=car_repair] {
|
---|
853 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
854 | suggestAlternative: "shop=car_repair";
|
---|
855 | group: tr("deprecated tagging");
|
---|
856 | fixChangeKey: "amenity => shop";
|
---|
857 | }
|
---|
858 |
|
---|
859 | /* #12311 */
|
---|
860 | *[amenity=studio][type=audio],
|
---|
861 | *[amenity=studio][type=radio],
|
---|
862 | *[amenity=studio][type=television],
|
---|
863 | *[amenity=studio][type=video] {
|
---|
864 | throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
|
---|
865 | suggestAlternative: "studio";
|
---|
866 | group: tr("deprecated tagging");
|
---|
867 | fixChangeKey: "type => studio";
|
---|
868 | }
|
---|
869 |
|
---|
870 | /* #11507, #12297, #15409 */
|
---|
871 | *[power=cable_distribution_cabinet] {
|
---|
872 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
873 | suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
|
---|
874 | group: tr("deprecated tagging");
|
---|
875 | fixAdd: "man_made=street_cabinet";
|
---|
876 | fixRemove: "power";
|
---|
877 | }
|
---|
878 |
|
---|
879 | /* #16430 */
|
---|
880 | *[power][location=kiosk] {
|
---|
881 | throwWarning: tr("{0} is deprecated", "{1.tag}");
|
---|
882 | group: tr("deprecated tagging");
|
---|
883 | fixAdd: "man_made=street_cabinet";
|
---|
884 | fixAdd: "street_cabinet=power";
|
---|
885 | fixRemove: "location";
|
---|
886 | }
|
---|
887 |
|
---|
888 | /* #12276 */
|
---|
889 | *[man_made=well] {
|
---|
890 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
891 | suggestAlternative: "man_made=water_well";
|
---|
892 | suggestAlternative: "man_made=petroleum_well";
|
---|
893 | group: tr("deprecated tagging");
|
---|
894 | }
|
---|
895 | *[amenity=dog_bin],
|
---|
896 | *[amenity=dog_waste_bin] {
|
---|
897 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
898 | suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
|
---|
899 | group: tr("deprecated tagging");
|
---|
900 | fixAdd: "amenity=waste_basket";
|
---|
901 | fixAdd: "waste=dog_excrement";
|
---|
902 | fixAdd: "vending=excrement_bags";
|
---|
903 | }
|
---|
904 | *[amenity=artwork] {
|
---|
905 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
906 | suggestAlternative: "tourism=artwork";
|
---|
907 | group: tr("deprecated tagging");
|
---|
908 | fixAdd: "tourism=artwork";
|
---|
909 | fixRemove: "amenity";
|
---|
910 | }
|
---|
911 | *[amenity=community_center] {
|
---|
912 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
913 | suggestAlternative: "amenity=community_centre";
|
---|
914 | group: tr("deprecated tagging");
|
---|
915 | fixAdd: "amenity=community_centre";
|
---|
916 | }
|
---|
917 | *[man_made=cut_line] {
|
---|
918 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
919 | suggestAlternative: "man_made=cutline";
|
---|
920 | group: tr("deprecated tagging");
|
---|
921 | fixAdd: "man_made=cutline";
|
---|
922 | }
|
---|
923 | *[amenity=park] {
|
---|
924 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
925 | suggestAlternative: "leisure=park";
|
---|
926 | group: tr("deprecated tagging");
|
---|
927 | fixAdd: "leisure=park";
|
---|
928 | fixRemove: "amenity";
|
---|
929 | }
|
---|
930 | *[amenity=hotel] {
|
---|
931 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
932 | suggestAlternative: "tourism=hotel";
|
---|
933 | group: tr("deprecated tagging");
|
---|
934 | fixAdd: "tourism=hotel";
|
---|
935 | fixRemove: "amenity";
|
---|
936 | }
|
---|
937 | *[shop=window],
|
---|
938 | *[shop=windows] {
|
---|
939 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
940 | suggestAlternative: "craft=window_construction";
|
---|
941 | group: tr("deprecated tagging");
|
---|
942 | fixAdd: "craft=window_construction";
|
---|
943 | fixRemove: "shop";
|
---|
944 | }
|
---|
945 | *[amenity=education] {
|
---|
946 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
947 | suggestAlternative: "amenity=college";
|
---|
948 | suggestAlternative: "amenity=school";
|
---|
949 | suggestAlternative: "amenity=university";
|
---|
950 | group: tr("deprecated tagging");
|
---|
951 | }
|
---|
952 | *[shop=gallery] {
|
---|
953 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
954 | suggestAlternative: "shop=art";
|
---|
955 | group: tr("deprecated tagging");
|
---|
956 | fixAdd: "shop=art";
|
---|
957 | }
|
---|
958 | *[shop=gambling],
|
---|
959 | *[leisure=gambling] {
|
---|
960 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
961 | suggestAlternative: "shop=bookmaker";
|
---|
962 | suggestAlternative: "shop=lottery";
|
---|
963 | suggestAlternative: "amenity=casino";
|
---|
964 | suggestAlternative: "leisure=amusement_arcade";
|
---|
965 | suggestAlternative: "amenity=gambling";
|
---|
966 | group: tr("deprecated tagging");
|
---|
967 | }
|
---|
968 | *[office=real_estate],
|
---|
969 | *[office=real_estate_agent] {
|
---|
970 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
971 | suggestAlternative: "office=estate_agent";
|
---|
972 | group: tr("deprecated tagging");
|
---|
973 | fixAdd: "office=estate_agent";
|
---|
974 | }
|
---|
975 | *[shop=glass] {
|
---|
976 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
977 | suggestAlternative: "shop=glaziery";
|
---|
978 | suggestAlternative: "craft=glaziery";
|
---|
979 | group: tr("deprecated tagging");
|
---|
980 | }
|
---|
981 | *[amenity=proposed],
|
---|
982 | *[amenity=proposed],
|
---|
983 | *[amenity=disused],
|
---|
984 | *[shop=disused],
|
---|
985 | *[highway=abandoned],
|
---|
986 | *[historic=abandoned] {
|
---|
987 | throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
|
---|
988 | group: tr("deprecated tagging");
|
---|
989 | }
|
---|
990 |
|
---|
991 | /* #12431 */
|
---|
992 | *[amenity=swimming_pool] {
|
---|
993 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
994 | suggestAlternative: "leisure=swimming_pool";
|
---|
995 | group: tr("deprecated tagging");
|
---|
996 | fixChangeKey: "amenity => leisure";
|
---|
997 | }
|
---|
998 |
|
---|
999 | /* #17379 */
|
---|
1000 | *[amenity=sauna] {
|
---|
1001 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1002 | suggestAlternative: "leisure=sauna";
|
---|
1003 | group: tr("deprecated tagging");
|
---|
1004 | fixChangeKey: "amenity => leisure";
|
---|
1005 | }
|
---|
1006 |
|
---|
1007 | /* #12494, #17554 */
|
---|
1008 | *[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
|
---|
1009 | throwWarning: tr("{0}", "{0.key}");
|
---|
1010 | group: tr("questionable key (ending with a number)");
|
---|
1011 | assertMatch: "way name_1=foo";
|
---|
1012 | assertNoMatch: "way note_2=foo";
|
---|
1013 | assertNoMatch: "way description_3=foo";
|
---|
1014 | assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
|
---|
1015 | }
|
---|
1016 |
|
---|
1017 | /* #12500 */
|
---|
1018 | *[sport=skating] {
|
---|
1019 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1020 | suggestAlternative: "sport=ice_skating";
|
---|
1021 | suggestAlternative: "sport=roller_skating";
|
---|
1022 | group: tr("deprecated tagging");
|
---|
1023 | }
|
---|
1024 |
|
---|
1025 | way[barrier=wall][type=noise_barrier][!wall],
|
---|
1026 | way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
|
---|
1027 | throwWarning: tr("{0} is deprecated", "{1.tag}");
|
---|
1028 | suggestAlternative: "wall=noise_barrier";
|
---|
1029 | group: tr("deprecated tagging");
|
---|
1030 | fixChangeKey: "type => wall";
|
---|
1031 | }
|
---|
1032 | way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
|
---|
1033 | throwWarning: tr("{0} is deprecated", "{1.tag}");
|
---|
1034 | suggestAlternative: "wall=noise_barrier";
|
---|
1035 | group: tr("deprecated tagging");
|
---|
1036 | }
|
---|
1037 |
|
---|
1038 | /* #8978, 12588 */
|
---|
1039 | *[amenity=public_building] {
|
---|
1040 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1041 | suggestAlternative: "amenity=townhall";
|
---|
1042 | suggestAlternative: "amenity=community_centre";
|
---|
1043 | suggestAlternative: "amenity=hospital";
|
---|
1044 | suggestAlternative: "leisure=sports_centre";
|
---|
1045 | suggestAlternative: "office=government";
|
---|
1046 | suggestAlternative: "building=hospital";
|
---|
1047 | suggestAlternative: "building=public";
|
---|
1048 | suggestAlternative: "...";
|
---|
1049 | group: tr("deprecated tagging");
|
---|
1050 | }
|
---|
1051 |
|
---|
1052 | /* #12708 */
|
---|
1053 | *[vending=news_papers] {
|
---|
1054 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1055 | suggestAlternative: "vending=newspapers";
|
---|
1056 | group: tr("deprecated tagging");
|
---|
1057 | fixAdd: "vending=newspapers";
|
---|
1058 | }
|
---|
1059 |
|
---|
1060 | /* #12771 */
|
---|
1061 | *[service=drive_through] {
|
---|
1062 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1063 | suggestAlternative: "service=drive-through";
|
---|
1064 | group: tr("deprecated tagging");
|
---|
1065 | fixAdd: "service=drive-through";
|
---|
1066 | }
|
---|
1067 |
|
---|
1068 | /* #12771 */
|
---|
1069 | way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|yes)$/], /* drive_through and yes have special warnings */
|
---|
1070 | way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
|
---|
1071 | way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
|
---|
1072 | throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
|
---|
1073 | }
|
---|
1074 |
|
---|
1075 | /* #13008 */
|
---|
1076 | *[name:botanical] {
|
---|
1077 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1078 | suggestAlternative: "species";
|
---|
1079 | group: tr("deprecated tagging");
|
---|
1080 | }
|
---|
1081 |
|
---|
1082 | /* #11344, #13101, #15480 */
|
---|
1083 | node[pole=air_to_ground],
|
---|
1084 | node[pole=transition] {
|
---|
1085 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1086 | suggestAlternative: "location:transition=yes";
|
---|
1087 | group: tr("deprecated tagging");
|
---|
1088 | fixAdd: "location:transition=yes";
|
---|
1089 | fixRemove: "pole";
|
---|
1090 | }
|
---|
1091 | node[tower=air_to_ground],
|
---|
1092 | node[tower=transition] {
|
---|
1093 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1094 | suggestAlternative: "location:transition=yes";
|
---|
1095 | group: tr("deprecated tagging");
|
---|
1096 | fixAdd: "location:transition=yes";
|
---|
1097 | fixRemove: "tower";
|
---|
1098 | }
|
---|
1099 |
|
---|
1100 | /* #13138 */
|
---|
1101 | area[landuse=pond] {
|
---|
1102 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1103 | suggestAlternative: "natural=water + water=pond";
|
---|
1104 | group: tr("deprecated tagging");
|
---|
1105 | fixAdd: "natural=water";
|
---|
1106 | fixAdd: "water=pond";
|
---|
1107 | fixRemove: "landuse";
|
---|
1108 | }
|
---|
1109 |
|
---|
1110 | *[shop=souvenir],
|
---|
1111 | *[shop=souvenirs],
|
---|
1112 | *[shop=souveniers] {
|
---|
1113 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1114 | suggestAlternative: "shop=gift";
|
---|
1115 | group: tr("deprecated tagging");
|
---|
1116 | fixAdd: "shop=gift";
|
---|
1117 | }
|
---|
1118 |
|
---|
1119 | *[vending=animal_food] {
|
---|
1120 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1121 | suggestAlternative: "vending=animal_feed";
|
---|
1122 | group: tr("deprecated tagging");
|
---|
1123 | fixAdd: "vending=animal_feed";
|
---|
1124 | }
|
---|
1125 |
|
---|
1126 | /* #14376 */
|
---|
1127 | node[vending=photos][amenity=vending_machine],
|
---|
1128 | node[vending=photo][amenity=vending_machine] {
|
---|
1129 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1130 | suggestAlternative: "amenity=photo_booth";
|
---|
1131 | group: tr("deprecated tagging");
|
---|
1132 | fixRemove: "vending";
|
---|
1133 | fixAdd: "amenity=photo_booth";
|
---|
1134 |
|
---|
1135 | }
|
---|
1136 | node[vending=photos][amenity!=vending_machine] {
|
---|
1137 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1138 | suggestAlternative: "amenity=photo_booth";
|
---|
1139 | group: tr("deprecated tagging");
|
---|
1140 | }
|
---|
1141 |
|
---|
1142 | /* #13653 */
|
---|
1143 | node[highway=emergency_access_point][phone][!emergency_telephone_code],
|
---|
1144 | way[highway=emergency_access_point][phone][!emergency_telephone_code] {
|
---|
1145 | throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
|
---|
1146 | suggestAlternative: "emergency_telephone_code";
|
---|
1147 | group: tr("deprecated tagging");
|
---|
1148 | fixChangeKey: "phone => emergency_telephone_code";
|
---|
1149 | assertMatch: "node highway=emergency_access_point phone=123";
|
---|
1150 | assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
|
---|
1151 | assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
|
---|
1152 | assertNoMatch: "node phone=123";
|
---|
1153 | }
|
---|
1154 | node[highway=emergency_access_point][phone=*emergency_telephone_code],
|
---|
1155 | way[highway=emergency_access_point][phone=*emergency_telephone_code] {
|
---|
1156 | throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
|
---|
1157 | suggestAlternative: "emergency_telephone_code";
|
---|
1158 | group: tr("deprecated tagging");
|
---|
1159 | fixRemove: "phone";
|
---|
1160 | assertNoMatch: "node highway=emergency_access_point phone=123";
|
---|
1161 | assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
|
---|
1162 | assertMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
|
---|
1163 | }
|
---|
1164 | node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
|
---|
1165 | way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
|
---|
1166 | throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
|
---|
1167 | suggestAlternative: "emergency_telephone_code";
|
---|
1168 | group: tr("deprecated tagging");
|
---|
1169 | assertNoMatch: "node highway=emergency_access_point phone=123";
|
---|
1170 | assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
|
---|
1171 | assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
|
---|
1172 | }
|
---|
1173 |
|
---|
1174 | /* #13879 */
|
---|
1175 | way[tracktype=1] {
|
---|
1176 | throwError: tr("{0}", "{0.tag}");
|
---|
1177 | suggestAlternative: "tracktype=grade1";
|
---|
1178 | group: tr("misspelled value");
|
---|
1179 | fixAdd: "tracktype=grade1";
|
---|
1180 | }
|
---|
1181 | way[tracktype=2] {
|
---|
1182 | throwError: tr("{0}", "{0.tag}");
|
---|
1183 | suggestAlternative: "tracktype=grade2";
|
---|
1184 | group: tr("misspelled value");
|
---|
1185 | fixAdd: "tracktype=grade2";
|
---|
1186 | }
|
---|
1187 | way[tracktype=3] {
|
---|
1188 | throwError: tr("{0}", "{0.tag}");
|
---|
1189 | suggestAlternative: "tracktype=grade3";
|
---|
1190 | group: tr("misspelled value");
|
---|
1191 | fixAdd: "tracktype=grade3";
|
---|
1192 | }
|
---|
1193 | way[tracktype=4] {
|
---|
1194 | throwError: tr("{0}", "{0.tag}");
|
---|
1195 | suggestAlternative: "tracktype=grade4";
|
---|
1196 | group: tr("misspelled value");
|
---|
1197 | fixAdd: "tracktype=grade4";
|
---|
1198 | }
|
---|
1199 | way[tracktype=5] {
|
---|
1200 | throwError: tr("{0}", "{0.tag}");
|
---|
1201 | suggestAlternative: "tracktype=grade5";
|
---|
1202 | group: tr("misspelled value");
|
---|
1203 | fixAdd: "tracktype=grade5";
|
---|
1204 | }
|
---|
1205 | way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
|
---|
1206 | throwError: tr("wrong value: {0}", "{0.tag}");
|
---|
1207 | suggestAlternative: "tracktype=grade1";
|
---|
1208 | suggestAlternative: "tracktype=grade2";
|
---|
1209 | suggestAlternative: "tracktype=grade3";
|
---|
1210 | suggestAlternative: "tracktype=grade4";
|
---|
1211 | suggestAlternative: "tracktype=grade5";
|
---|
1212 | }
|
---|
1213 |
|
---|
1214 | area[area][area!=yes][area!=no] {
|
---|
1215 | throwError: tr("wrong value: {0}", "{0.tag}");
|
---|
1216 | suggestAlternative: "area=yes";
|
---|
1217 | suggestAlternative: "area=no";
|
---|
1218 | }
|
---|
1219 |
|
---|
1220 | /* #13953 */
|
---|
1221 | *[amenity=hunting_stand][lock=yes],
|
---|
1222 | *[amenity=hunting_stand][lock=no] {
|
---|
1223 | throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
|
---|
1224 | suggestAlternative: "lockable";
|
---|
1225 | group: tr("deprecated tagging");
|
---|
1226 | fixChangeKey: "lock => lockable";
|
---|
1227 | }
|
---|
1228 |
|
---|
1229 | *[amenity=advertising][!advertising] {
|
---|
1230 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1231 | suggestAlternative: "advertising=*";
|
---|
1232 | group: tr("deprecated tagging");
|
---|
1233 | }
|
---|
1234 | *[amenity=advertising][advertising] {
|
---|
1235 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1236 | suggestAlternative: "advertising=*";
|
---|
1237 | group: tr("deprecated tagging");
|
---|
1238 | fixRemove: "amenity";
|
---|
1239 | }
|
---|
1240 |
|
---|
1241 | way[direction=up][incline=up],
|
---|
1242 | way[direction=down][incline=down],
|
---|
1243 | way[direction=up][!incline],
|
---|
1244 | way[direction=down][!incline] {
|
---|
1245 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1246 | suggestAlternative: "incline";
|
---|
1247 | group: tr("deprecated tagging");
|
---|
1248 | fixChangeKey: "direction => incline";
|
---|
1249 | }
|
---|
1250 | way[direction=up][incline][incline!=up],
|
---|
1251 | way[direction=down][incline][incline!=down] {
|
---|
1252 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1253 | suggestAlternative: "incline";
|
---|
1254 | group: tr("deprecated tagging");
|
---|
1255 | }
|
---|
1256 |
|
---|
1257 | way[building=y],
|
---|
1258 | way[building=1] {
|
---|
1259 | throwError: tr("{0}", "{0.tag}");
|
---|
1260 | suggestAlternative: "building=yes";
|
---|
1261 | group: tr("misspelled value");
|
---|
1262 | fixAdd: "building=yes";
|
---|
1263 | }
|
---|
1264 |
|
---|
1265 | /* #15675 */
|
---|
1266 | node[power=transformer][location=pole][transformer] {
|
---|
1267 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
1268 | group: tr("deprecated tagging");
|
---|
1269 | fixChangeKey: "location => power";
|
---|
1270 | }
|
---|
1271 | node[power=transformer][location=pole][!transformer] {
|
---|
1272 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
1273 | group: tr("deprecated tagging");
|
---|
1274 | fixChangeKey: "location => power";
|
---|
1275 | fixAdd: "transformer=yes";
|
---|
1276 | }
|
---|
1277 |
|
---|
1278 | node[tourism=picnic_table],
|
---|
1279 | node[amenity=picnic_table],
|
---|
1280 | node[leisure=picnic],
|
---|
1281 | node[leisure=picnic_site] {
|
---|
1282 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1283 | suggestAlternative: "tourism=picnic_site";
|
---|
1284 | suggestAlternative: "leisure=picnic_table";
|
---|
1285 | group: tr("deprecated tagging");
|
---|
1286 | }
|
---|
1287 |
|
---|
1288 | /* #15804 */
|
---|
1289 | relation[water=salt],
|
---|
1290 | way[water=salt],
|
---|
1291 | way[water=salt_pool],
|
---|
1292 | way[water=salt_panne],
|
---|
1293 | way[water=salt_pond] {
|
---|
1294 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1295 | suggestAlternative: "salt=yes";
|
---|
1296 | suggestAlternative: "landuse=salt_pond";
|
---|
1297 | group: tr("deprecated tagging");
|
---|
1298 | }
|
---|
1299 |
|
---|
1300 | /* #15805 */
|
---|
1301 | way[water=tidal] {
|
---|
1302 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1303 | suggestAlternative: "tidal=yes";
|
---|
1304 | fixAdd: "tidal=yes";
|
---|
1305 | fixRemove: "water";
|
---|
1306 | group: tr("deprecated tagging");
|
---|
1307 | }
|
---|
1308 |
|
---|
1309 | *[amenity=toilet] {
|
---|
1310 | throwError: tr("{0}", "{0.tag}");
|
---|
1311 | suggestAlternative: "amenity=toilets";
|
---|
1312 | group: tr("misspelled value");
|
---|
1313 | fixAdd: "amenity=toilets";
|
---|
1314 | }
|
---|
1315 |
|
---|
1316 | way[power=busbar] {
|
---|
1317 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1318 | suggestAlternative: "power=line + line=busbar";
|
---|
1319 | group: tr("deprecated tagging");
|
---|
1320 | fixAdd: "power=line";
|
---|
1321 | fixAdd: "line=busbar";
|
---|
1322 | }
|
---|
1323 |
|
---|
1324 | /* #16924 */
|
---|
1325 | *[man_made=MDF],
|
---|
1326 | *[man_made=telephone_exchange] {
|
---|
1327 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1328 | suggestAlternative: "telecom=exchange";
|
---|
1329 | fixAdd: "telecom=exchange";
|
---|
1330 | fixRemove: "man_made";
|
---|
1331 | group: tr("deprecated tagging");
|
---|
1332 | }
|
---|
1333 | *[building=central_office] {
|
---|
1334 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1335 | suggestAlternative: "telecom=exchange";
|
---|
1336 | fixAdd: "telecom=exchange";
|
---|
1337 | fixAdd: "building=yes";
|
---|
1338 | group: tr("deprecated tagging");
|
---|
1339 | }
|
---|
1340 | *[telecom=central_office] {
|
---|
1341 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1342 | suggestAlternative: "telecom=exchange";
|
---|
1343 | fixAdd: "telecom=exchange";
|
---|
1344 | group: tr("deprecated tagging");
|
---|
1345 | }
|
---|
1346 |
|
---|
1347 | /* #16925 */
|
---|
1348 | node[communication=outdoor_dslam],
|
---|
1349 | node[man_made=outdoor_dslam],
|
---|
1350 | node[street_cabinet=outdoor_dslam] {
|
---|
1351 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1352 | suggestAlternative: "telecom=service_device";
|
---|
1353 | fixAdd: "telecom=service_device";
|
---|
1354 | fixRemove: "{0.key}";
|
---|
1355 | group: tr("deprecated tagging");
|
---|
1356 | }
|
---|
1357 | node[telecom=dslam],
|
---|
1358 | node[telecom=outdoor_dslam] {
|
---|
1359 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1360 | suggestAlternative: "telecom=service_device";
|
---|
1361 | fixAdd: "telecom=service_device";
|
---|
1362 | group: tr("deprecated tagging");
|
---|
1363 | }
|
---|
1364 |
|
---|
1365 | /* #15774 */
|
---|
1366 | node[amenity=fire_hydrant] {
|
---|
1367 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1368 | suggestAlternative: "emergency=fire_hydrant";
|
---|
1369 | fixChangeKey: "amenity => emergency";
|
---|
1370 | group: tr("deprecated tagging");
|
---|
1371 | }
|
---|
1372 | node[fire_hydrant:type=pond] {
|
---|
1373 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1374 | suggestAlternative: "water_source=pond";
|
---|
1375 | fixAdd: "water_source=pond";
|
---|
1376 | fixRemove: "{0.key}";
|
---|
1377 | group: tr("deprecated tagging");
|
---|
1378 | }
|
---|
1379 | node[fire_hydrant:flow_capacity] {
|
---|
1380 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1381 | suggestAlternative: "flow_rate";
|
---|
1382 | group: tr("deprecated tagging");
|
---|
1383 | }
|
---|
1384 | node[emergency=fire_hydrant][in_service=no] {
|
---|
1385 | throwWarning: tr("{0} is deprecated", "{1.tag}");
|
---|
1386 | suggestAlternative: "disused:emergency=fire_hydrant";
|
---|
1387 | fixAdd: "disused:emergency=fire_hydrant";
|
---|
1388 | fixRemove: "{1.key}";
|
---|
1389 | fixRemove: "{0.key}";
|
---|
1390 | group: tr("deprecated tagging");
|
---|
1391 | }
|
---|
1392 | node[fire_hydrant:water_source] {
|
---|
1393 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1394 | suggestAlternative: "water_source";
|
---|
1395 | fixChangeKey: "fire_hydrant:water_source => water_source";
|
---|
1396 | group: tr("deprecated tagging");
|
---|
1397 | }
|
---|
1398 |
|
---|
1399 | /* #17383 */
|
---|
1400 | *[natural=waterfall] {
|
---|
1401 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1402 | suggestAlternative: "waterway=waterfall";
|
---|
1403 | fixChangeKey: "natural => waterway";
|
---|
1404 | group: tr("deprecated tagging");
|
---|
1405 | }
|
---|
1406 |
|
---|
1407 | /* #17249 */
|
---|
1408 | *[religion=unitarian] {
|
---|
1409 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1410 | suggestAlternative: "religion=unitarian_universalist";
|
---|
1411 | fixAdd: "religion=unitarian_universalist";
|
---|
1412 | group: tr("deprecated tagging");
|
---|
1413 | }
|
---|
1414 |
|
---|
1415 | *[shop=shopping_centre] {
|
---|
1416 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1417 | suggestAlternative: "shop=mall";
|
---|
1418 | fixAdd: "shop=mall";
|
---|
1419 | group: tr("deprecated tagging");
|
---|
1420 | }
|
---|
1421 |
|
---|
1422 | /* #17504 */
|
---|
1423 | *[is_in],
|
---|
1424 | node[/^is_in:.*$/],
|
---|
1425 | way[/^is_in:.*$/] {
|
---|
1426 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1427 | group: tr("deprecated tagging");
|
---|
1428 | fixRemove: "{0.key}";
|
---|
1429 | }
|
---|
1430 |
|
---|
1431 | /* #17593 */
|
---|
1432 | *[sport=football] {
|
---|
1433 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1434 | suggestAlternative: "sport=soccer";
|
---|
1435 | suggestAlternative: "sport=american_football";
|
---|
1436 | suggestAlternative: "sport=australian_football";
|
---|
1437 | suggestAlternative: "sport=canadian_football";
|
---|
1438 | suggestAlternative: "sport=rugby_league";
|
---|
1439 | suggestAlternative: "sport=rugby_union";
|
---|
1440 | suggestAlternative: "sport=gaelic_games";
|
---|
1441 | group: tr("deprecated tagging");
|
---|
1442 | }
|
---|
1443 |
|
---|
1444 | /* #17556 */
|
---|
1445 | *[leisure=common] {
|
---|
1446 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1447 | suggestAlternative: "landuse=*";
|
---|
1448 | suggestAlternative: "leisure=*";
|
---|
1449 | suggestAlternative: "designation=common";
|
---|
1450 | group: tr("deprecated tagging");
|
---|
1451 | }
|
---|
1452 |
|
---|
1453 | /* #17043 */
|
---|
1454 | *[cuisine=vegan],
|
---|
1455 | *[cuisine=vegetarian] {
|
---|
1456 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1457 | suggestAlternative: concat("diet:", "{0.value}", "=yes");
|
---|
1458 | suggestAlternative: concat("diet:", "{0.value}", "=only");
|
---|
1459 | group: tr("deprecated tagging");
|
---|
1460 | }
|
---|
1461 |
|
---|
1462 | /* #17798 */
|
---|
1463 | *[kitchen_hours] {
|
---|
1464 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1465 | suggestAlternative: "opening_hours:kitchen";
|
---|
1466 | fixChangeKey: "kitchen_hours => opening_hours:kitchen";
|
---|
1467 | group: tr("deprecated tagging");
|
---|
1468 | }
|
---|
1469 |
|
---|
1470 | /* #17681 */
|
---|
1471 | *[shop=money_transfer] {
|
---|
1472 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1473 | suggestAlternative: "amenity=money_transfer";
|
---|
1474 | fixChangeKey: "shop => amenity";
|
---|
1475 | group: tr("deprecated tagging");
|
---|
1476 | }
|
---|
1477 |
|
---|
1478 | *[contact:google_plus] {
|
---|
1479 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1480 | fixRemove: "contact:google_plus";
|
---|
1481 | group: tr("deprecated tagging");
|
---|
1482 | }
|
---|
1483 |
|
---|
1484 | /* #17370 */
|
---|
1485 | *[amenity=garages],
|
---|
1486 | *[amenity=garage] {
|
---|
1487 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1488 | suggestAlternative: concat("building=", "{0.value}");
|
---|
1489 | suggestAlternative: "landuse=garages";
|
---|
1490 | suggestAlternative: "amenity=parking + parking=garage_boxes";
|
---|
1491 | group: tr("deprecated tagging");
|
---|
1492 | }
|
---|
1493 | *[shop=winery],
|
---|
1494 | *[amenity=winery] {
|
---|
1495 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1496 | suggestAlternative: "craft=winery";
|
---|
1497 | suggestAlternative: "shop=wine";
|
---|
1498 | group: tr("deprecated tagging");
|
---|
1499 | }
|
---|
1500 | *[amenity=youth_centre] {
|
---|
1501 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1502 | suggestAlternative: "amenity=community_centre + community_centre=youth_centre";
|
---|
1503 | fixAdd: "amenity=community_centre";
|
---|
1504 | fixAdd: "community_centre=youth_centre";
|
---|
1505 | group: tr("deprecated tagging");
|
---|
1506 | }
|
---|
1507 | *[building:type][building=yes],
|
---|
1508 | *[building:type][!building] {
|
---|
1509 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1510 | suggestAlternative: "building";
|
---|
1511 | group: tr("deprecated tagging");
|
---|
1512 | fixChangeKey: "building:type => building";
|
---|
1513 | assertMatch: "way building:type=church";
|
---|
1514 | assertMatch: "way building:type=church building=yes";
|
---|
1515 | assertNoMatch: "way building:type=church building=supermarket";
|
---|
1516 | }
|
---|
1517 | *[building:type][building][building!=yes] {
|
---|
1518 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1519 | suggestAlternative: "building";
|
---|
1520 | group: tr("deprecated tagging");
|
---|
1521 | assertNoMatch: "way building:type=church";
|
---|
1522 | assertNoMatch: "way building:type=church building=yes";
|
---|
1523 | assertMatch: "way building:type=church building=supermarket";
|
---|
1524 | }
|
---|
1525 | *[escalator] {
|
---|
1526 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1527 | suggestAlternative: "highway=steps + conveying=*";
|
---|
1528 | group: tr("deprecated tagging");
|
---|
1529 | }
|
---|
1530 | *[fenced] {
|
---|
1531 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1532 | suggestAlternative: "barrier=fence";
|
---|
1533 | group: tr("deprecated tagging");
|
---|
1534 | }
|
---|
1535 | *[historic_name][!old_name] {
|
---|
1536 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1537 | suggestAlternative: "old_name";
|
---|
1538 | group: tr("deprecated tagging");
|
---|
1539 | fixChangeKey: "historic_name => old_name";
|
---|
1540 | }
|
---|
1541 | *[historic_name][old_name] {
|
---|
1542 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1543 | suggestAlternative: "old_name";
|
---|
1544 | group: tr("deprecated tagging");
|
---|
1545 | }
|
---|
1546 | *[landuse=field] {
|
---|
1547 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1548 | suggestAlternative: "landuse=farmland";
|
---|
1549 | group: tr("deprecated tagging");
|
---|
1550 | fixAdd: "landuse=farmland";
|
---|
1551 | }
|
---|
1552 | *[leisure=beach] {
|
---|
1553 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1554 | suggestAlternative: "natural=beach";
|
---|
1555 | suggestAlternative: "leisure=beach_resort";
|
---|
1556 | group: tr("deprecated tagging");
|
---|
1557 | }
|
---|
1558 | *[leisure=club] {
|
---|
1559 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1560 | suggestAlternative: "club=*";
|
---|
1561 | group: tr("deprecated tagging");
|
---|
1562 | }
|
---|
1563 | *[leisure=video_arcade] {
|
---|
1564 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1565 | suggestAlternative: "leisure=amusement_arcade";
|
---|
1566 | suggestAlternative: "leisure=adult_gaming_centre";
|
---|
1567 | group: tr("deprecated tagging");
|
---|
1568 | }
|
---|
1569 | *[man_made=jetty] {
|
---|
1570 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1571 | suggestAlternative: "man_made=pier";
|
---|
1572 | group: tr("deprecated tagging");
|
---|
1573 | fixAdd: "man_made=pier";
|
---|
1574 | }
|
---|
1575 | *[man_made=village_pump] {
|
---|
1576 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1577 | suggestAlternative: "man_made=water_well";
|
---|
1578 | group: tr("deprecated tagging");
|
---|
1579 | fixAdd: "man_made=water_well";
|
---|
1580 | }
|
---|
1581 | *[man_made=water_tank] {
|
---|
1582 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1583 | suggestAlternative: "man_made=storage_tank + content=water";
|
---|
1584 | group: tr("deprecated tagging");
|
---|
1585 | fixAdd: "man_made=storage_tank";
|
---|
1586 | fixAdd: "content=water";
|
---|
1587 | }
|
---|
1588 | *[natural=moor] {
|
---|
1589 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1590 | suggestAlternative: "natural=heath";
|
---|
1591 | suggestAlternative: "natural=scrub";
|
---|
1592 | suggestAlternative: "natural=grassland";
|
---|
1593 | suggestAlternative: "natural=wetland";
|
---|
1594 | suggestAlternative: "natural=fell";
|
---|
1595 | suggestAlternative: "natural=tundra";
|
---|
1596 | suggestAlternative: "landuse=meadow + meadow=agricultural";
|
---|
1597 | group: tr("deprecated tagging");
|
---|
1598 | }
|
---|
1599 | *[noexit=no][!fixme] {
|
---|
1600 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1601 | suggestAlternative: "fixme=continue";
|
---|
1602 | group: tr("deprecated tagging");
|
---|
1603 | fixAdd: "fixme=continue";
|
---|
1604 | fixRemove: "noexit";
|
---|
1605 | }
|
---|
1606 | *[noexit=no][fixme] {
|
---|
1607 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1608 | suggestAlternative: "fixme=continue";
|
---|
1609 | group: tr("deprecated tagging");
|
---|
1610 | }
|
---|
1611 | *[shop=dive] {
|
---|
1612 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1613 | suggestAlternative: "shop=scuba_diving";
|
---|
1614 | group: tr("deprecated tagging");
|
---|
1615 | fixAdd: "shop=scuba_diving";
|
---|
1616 | }
|
---|
1617 | *[shop=furnace] {
|
---|
1618 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1619 | suggestAlternative: "shop=fireplace";
|
---|
1620 | suggestAlternative: "craft=plumber";
|
---|
1621 | group: tr("deprecated tagging");
|
---|
1622 | }
|
---|
1623 | *[sport=paragliding] {
|
---|
1624 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1625 | suggestAlternative: "sport=free_flying";
|
---|
1626 | group: tr("deprecated tagging");
|
---|
1627 | fixAdd: "sport=free_flying";
|
---|
1628 | }
|
---|
1629 | *[tourism=bed_and_breakfast] {
|
---|
1630 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1631 | suggestAlternative: "tourism=guest_house + guest_house=bed_and_breakfast";
|
---|
1632 | group: tr("deprecated tagging");
|
---|
1633 | fixAdd: "tourism=guest_house";
|
---|
1634 | fixAdd: "guest_house=bed_and_breakfast";
|
---|
1635 | }
|
---|
1636 |
|
---|
1637 | /* #17880 */
|
---|
1638 | *[diaper=yes],
|
---|
1639 | *[diaper=no] {
|
---|
1640 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1641 | suggestAlternative: concat("changing_table=", "{0.value}");
|
---|
1642 | group: tr("deprecated tagging");
|
---|
1643 | fixChangeKey: "diaper => changing_table";
|
---|
1644 | set diaper_checked;
|
---|
1645 | }
|
---|
1646 | *[diaper][diaper =~ /^[1-9][0-9]*$/] {
|
---|
1647 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1648 | suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}");
|
---|
1649 | group: tr("deprecated tagging");
|
---|
1650 | fixChangeKey: "diaper => changing_table:count";
|
---|
1651 | fixAdd: "changing_table=yes";
|
---|
1652 | set diaper_checked;
|
---|
1653 | }
|
---|
1654 | *[diaper=room] {
|
---|
1655 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1656 | suggestAlternative: "changing_table=room";
|
---|
1657 | suggestAlternative: "changing_table=dedicated_room";
|
---|
1658 | group: tr("deprecated tagging");
|
---|
1659 | set diaper_checked;
|
---|
1660 | }
|
---|
1661 | *[diaper]!.diaper_checked {
|
---|
1662 | throwWarning: tr("{0} is deprecated", "{0.key}");
|
---|
1663 | suggestAlternative: "changing_table";
|
---|
1664 | group: tr("deprecated tagging");
|
---|
1665 | }
|
---|
1666 | *[diaper:male=yes] {
|
---|
1667 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1668 | suggestAlternative: "changing_table:location=male_toilet";
|
---|
1669 | group: tr("deprecated tagging");
|
---|
1670 | fixAdd: "changing_table:location=male_toilet";
|
---|
1671 | fixRemove: "diaper:male";
|
---|
1672 | set diaper___checked;
|
---|
1673 | }
|
---|
1674 | *[diaper:female=yes] {
|
---|
1675 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1676 | suggestAlternative: "changing_table:location=female_toilet";
|
---|
1677 | group: tr("deprecated tagging");
|
---|
1678 | fixAdd: "changing_table:location=female_toilet";
|
---|
1679 | fixRemove: "diaper:female";
|
---|
1680 | set diaper___checked;
|
---|
1681 | }
|
---|
1682 | *[diaper:unisex=yes] {
|
---|
1683 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1684 | suggestAlternative: "changing_table:location=unisex_toilet";
|
---|
1685 | group: tr("deprecated tagging");
|
---|
1686 | fixAdd: "changing_table:location=unisex_toilet";
|
---|
1687 | fixRemove: "diaper:unisex";
|
---|
1688 | set diaper___checked;
|
---|
1689 | }
|
---|
1690 | *[diaper:wheelchair=yes],
|
---|
1691 | *[diaper:wheelchair=no] {
|
---|
1692 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1693 | suggestAlternative: concat("changing_table:wheelchair=", "{0.value}");
|
---|
1694 | group: tr("deprecated tagging");
|
---|
1695 | fixChangeKey: "diaper:wheelchair => changing_table:wheelchair";
|
---|
1696 | set diaper___checked;
|
---|
1697 | }
|
---|
1698 | *[diaper:fee=yes],
|
---|
1699 | *[diaper:fee=no] {
|
---|
1700 | throwWarning: tr("{0} is deprecated", "{0.tag}");
|
---|
1701 | suggestAlternative: concat("changing_table:fee=", "{0.value}");
|
---|
1702 | group: tr("deprecated tagging");
|
---|
1703 | fixChangeKey: "diaper:fee => changing_table:fee";
|
---|
1704 | set diaper___checked;
|
---|
1705 | }
|
---|
1706 | *[/^diaper:/]!.diaper___checked {
|
---|
1707 | throwWarning: tr("{0} is deprecated", "diaper:*");
|
---|
1708 | suggestAlternative: "changing_table:*";
|
---|
1709 | group: tr("deprecated tagging");
|
---|
1710 | }
|
---|
1711 | *[changing_table][changing_table!~/^(yes|no|limited)$/] {
|
---|
1712 | throwWarning: tr("wrong value: {0}", "{0.tag}");
|
---|
1713 | suggestAlternative: "changing_table=yes";
|
---|
1714 | suggestAlternative: "changing_table=no";
|
---|
1715 | suggestAlternative: "changing_table=limited";
|
---|
1716 | }
|
---|