source: josm/trunk/data/validator/deprecated.mapcss

Last change on this file was 15454, checked in by Klumbumbus, 4 days ago

fix #17984 - deprecate tower:type=anchor|suspension in favor of line_attachment=anchor|suspension

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