source: josm/trunk/resources/data/validator/deprecated.mapcss @ 16787

Last change on this file since 16787 was 16787, checked in by Klumbumbus, 3 months ago

see #19180

  • deprecate generator:type=solar_photovoltaic_panels and building=part
  • ignore building=home, building=tank, water=pool, historic=farm
  • add resource=clay
  • adjust fixme icons to avoid possible rendering artifacts
  • Property svn:eol-style set to native
File size: 62.8 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 #19287, #18334, #17950, #10661, #10837, #11737, #12771 */
475*[playground=yes],
476*[manhole=plain],
477*[manhole=unknown],
478*[manhole=yes],
479*[police=yes],
480*[traffic_calming=yes],
481*[access=restricted],
482*[barrier=yes],
483*[aerialway=yes][!public_transport],
484*[amenity=yes],
485*[leisure=yes],
486*[shop="*"],
487*[shop=yes][amenity!=fuel],
488*[craft=yes],
489*[service=yes],
490*[place=yes] {
491  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
492}
493
494/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
495*[place_name][!name] {
496  throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
497  fixChangeKey: "place_name => name";
498}
499*[place][place_name = *name] {
500  throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
501  fixRemove: "{1.key}";
502}
503
504way[sidewalk=yes] {
505  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
506}
507
508*[waterway=water_point] {
509  throwWarning: tr("{0} is deprecated", "{0.tag}");
510  suggestAlternative: "amenity=water_point";
511  group: tr("deprecated tagging");
512  fixChangeKey: "waterway => amenity";
513}
514*[waterway=waste_disposal] {
515  throwWarning: tr("{0} is deprecated", "{0.tag}");
516  suggestAlternative: "amenity=waste_disposal";
517  group: tr("deprecated tagging");
518  fixChangeKey: "waterway => amenity";
519}
520*[waterway=mooring] {
521  throwWarning: tr("{0} is deprecated", "{0.tag}");
522  suggestAlternative: "mooring=yes";
523  group: tr("deprecated tagging");
524  fixRemove: "waterway";
525  fixAdd: "mooring=yes";
526}
527
528/* see #10837 */
529*[building][levels],
530*[building:part=yes][levels] {
531  throwWarning: tr("{0} is deprecated", "{1.key}");
532  suggestAlternative: "building:levels";
533  group: tr("deprecated tagging");
534  fixChangeKey: "levels => building:levels";
535}
536
537/* see #10691 */
538*[protected_class] {
539  throwWarning: tr("{0} is deprecated", "{0.key}");
540  suggestAlternative: "protect_class";
541  group: tr("deprecated tagging");
542  fixChangeKey: "protected_class => protect_class";
543}
544
545/* see #11070 */
546*[kerb=unknown],
547*[lock=unknown],
548*[hide=unknown],
549*[shelter=unknown],
550*[access=unknown],
551*[capacity:parent=unknown],
552*[capacity:women=unknown],
553*[capacity:disabled=unknown],
554*[crossing=unknown],
555*[foot=unknown] {
556  throwWarning: tr("Unspecific tag {0}", "{0.tag}");
557}
558
559/* unclear definition, see #11183 */
560*[sport=skiing] {
561  throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
562  suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
563  group: tr("deprecated tagging");
564}
565
566/* see #11223 */
567*[waterway=wadi] {
568  throwWarning: tr("{0} is deprecated", "{0.tag}");
569  suggestAlternative: "{0.key}=* + intermittent=yes";
570  suggestAlternative: "natural=valley";
571  group: tr("deprecated tagging");
572}
573
574/* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
575way[oneway=1][!waterway] {
576  throwWarning: tr("{0} is deprecated", "{0.tag}");
577  suggestAlternative: "oneway=yes";
578  group: tr("deprecated tagging");
579  fixAdd: "oneway=yes";
580}
581
582/* see #11329, #15667 */
583way[oneway=-1][!waterway] {
584  throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
585}
586
587*[drinkable] {
588  throwWarning: tr("{0} is deprecated", "{0.key}");
589  suggestAlternative: "drinking_water";
590  group: tr("deprecated tagging");
591}
592
593/* see #10329, #15877 */
594  /* simple key change */
595*[color][!colour] {
596  throwWarning: tr("{0} is deprecated", "{0.key}");
597  suggestAlternative: "colour";
598  group: tr("deprecated tagging");
599  fixChangeKey: "color => colour";
600  assertMatch: "way color=red";
601  assertNoMatch: "way color=red colour=red";
602}
603area[building:color][!building:colour] {
604  throwWarning: tr("{0} is deprecated", "{0.key}");
605  suggestAlternative: "building:colour";
606  group: tr("deprecated tagging");
607  fixChangeKey: "building:color => building:colour";
608  assertMatch: "way building:color=red";
609  assertNoMatch: "way building:color=red building:colour=red";
610}
611area[roof:color][!roof:colour] {
612  throwWarning: tr("{0} is deprecated", "{0.key}");
613  suggestAlternative: "roof:colour";
614  group: tr("deprecated tagging");
615  fixChangeKey: "roof:color => roof:colour";
616  assertMatch: "way roof:color=red";
617  assertNoMatch: "way roof:color=red roof:colour=red";
618}
619  /* both tags with same value, remove color */
620*[color][colour][color=*colour] {
621  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
622  suggestAlternative: "colour";
623  group: tr("deprecated tagging");
624  set samecolor;
625  fixRemove: "color";
626  assertMatch: "way color=red colour=red";
627  assertNoMatch: "way color=red colour=green";
628}
629area[building:color][building:colour]["building:color"=*"building:colour"] {
630  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
631  suggestAlternative: "building:colour";
632  group: tr("deprecated tagging");
633  set samebuildingcolor;
634  fixRemove: "building:color";
635  assertMatch: "way building:color=red building:colour=red";
636  assertNoMatch: "way building:color=red building:colour=green";
637}
638area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
639  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
640  suggestAlternative: "roof:colour";
641  group: tr("deprecated tagging");
642  set sameroofcolor;
643  fixRemove: "roof:color";
644  assertMatch: "way roof:color=red roof:colour=red";
645  assertNoMatch: "way roof:color=red roof:colour=green";
646}
647  /* both tags with different values, no autofix */
648*[color][colour]!.samecolor {
649  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
650  suggestAlternative: "colour";
651  group: tr("deprecated tagging");
652  assertNoMatch: "way color=red colour=red";
653  assertMatch: "way color=red colour=green";
654}
655*[building:color][building:colour]!.samebuildingcolor {
656  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
657  suggestAlternative: "building:colour";
658  group: tr("deprecated tagging");
659  assertNoMatch: "way building:color=red building:colour=red";
660  assertMatch: "way building:color=red building:colour=green";
661}
662*[roof:color][roof:colour]!.sameroofcolor {
663  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
664  suggestAlternative: "roof:colour";
665  group: tr("deprecated tagging");
666  assertNoMatch: "way roof:color=red roof:colour=red";
667  assertMatch: "way roof:color=red roof:colour=green";
668}
669/* further more universal checks, no autofix */
670/* gpxd:color has another warning in unnecessary.mapcss */ 
671*[/:color/][!building:color][!roof:color][!gpxd:color] {
672  throwWarning: tr("{0} is deprecated", "{0.key}");
673  suggestAlternative: ":colour";
674  group: tr("deprecated tagging");
675  assertNoMatch: "way color=red";
676  assertNoMatch: "way roof:color=grey";
677  assertMatch: "way cycleway:surface:color=grey";
678}
679*[/color:/]  {
680  throwWarning: tr("{0} is deprecated", "{0.key}");
681  suggestAlternative: "colour:";
682  group: tr("deprecated tagging");
683  assertNoMatch: "way color=red";
684  assertMatch: "way color:back=grey";
685}
686
687/* see #11234 */
688*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
689  throwWarning: tr("{0}", "{0.key}");
690  group: tr("key with uncommon character");
691}
692
693/* see #11330, #18642 */
694*[/^.$/],
695node[/^..$/],
696way[/^..$/][route=ferry][!to],
697way[/^..$/][route!=ferry],
698relation[/^..$/][!to] {
699  throwWarning: tr("uncommon short key");
700  assertNoMatch: "relation to=Berlin";
701  assertMatch: "relation fo=bar";
702  assertMatch: "way to=bar";
703  assertNoMatch: "way to=Zuidschermer;Akersloot route=ferry";
704  assertMatch: "node fo=bar";
705  assertMatch: "node f=b";
706}
707
708/* see #11439 */
709*[sport=hockey] {
710  throwWarning: tr("{0} is deprecated", "{0.tag}");
711  suggestAlternative: "sport=field_hockey";
712  suggestAlternative: "sport=ice_hockey";
713  group: tr("deprecated tagging");
714}
715
716/* see #11471 */
717*[sport=billard],
718*[sport=billards],
719*[sport=billiard] {
720  throwWarning: tr("{0} is deprecated", "{0.tag}");
721  suggestAlternative: "sport=billiards";
722  group: tr("deprecated tagging");
723  fixAdd: "sport=billiards";
724}
725
726/* see #11499, #16928 */
727*[payment:credit_cards=yes] {
728  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");
729}
730*[payment:debit_cards=yes] {
731  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");
732}
733*[payment:electronic_purses=yes] {
734  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");
735}
736*[payment:cryptocurrencies=yes] {
737  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");
738}
739
740/* defunct payment cards */
741*[payment:ep_quick],
742*[payment:ep_cash],
743*[payment:ep_proton],
744*[payment:ep_chipknip] {
745  throwWarning: tr("{0} is deprecated", "{0.key}");
746  group: tr("deprecated tagging");
747  fixRemove: "{0.key}";
748}
749
750/* see #8717 */
751*[kp][highway=milestone],
752*[kp][railway=milestone],
753*[kp][waterway=milestone] {
754  throwWarning: tr("{0} is deprecated", "{0.key}");
755  suggestAlternative: "distance";
756  group: tr("deprecated tagging");
757  fixChangeKey: "kp => distance";
758}
759*[pk][highway=milestone],
760*[pk][railway=milestone],
761*[pk][waterway=milestone] {
762  throwWarning: tr("{0} is deprecated", "{0.key}");
763  suggestAlternative: "distance";
764  group: tr("deprecated tagging");
765  fixChangeKey: "pk => distance";
766}
767
768*[postcode] {
769  throwWarning: tr("{0} is deprecated", "{0.key}");
770  suggestAlternative: "addr:postcode";
771  group: tr("deprecated tagging");
772  suggestAlternative: "postal_code";
773}
774
775*[water=intermittent] {
776  throwWarning: tr("{0} is deprecated", "{0.tag}");
777  suggestAlternative: "intermittent=yes";
778  group: tr("deprecated tagging");
779  fixRemove: "water";
780  fixAdd: "intermittent=yes";
781}
782
783/* #10907, #14141 */
784/* 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 */
785way[type][type!=waterway][man_made=pipeline],
786node[type][pipeline=marker] {
787  throwWarning: tr("{0} is deprecated", "{0.key}");
788  suggestAlternative: "substance";
789  group: tr("deprecated tagging");
790  fixChangeKey: "type => substance";
791}
792
793*[landuse=farm] {
794  throwWarning: tr("{0} is deprecated", "{0.tag}");
795  suggestAlternative: "landuse=farmland";
796  suggestAlternative: "landuse=farmyard";
797  group: tr("deprecated tagging");
798}
799
800/* #12135 comment:11 */
801*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
802  throwWarning: tr("{0} is deprecated", "{0.tag}");
803  suggestAlternative: "{1.tag}";
804  group: tr("deprecated tagging");
805  fixRemove: "seamark";
806}
807*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
808  throwWarning: tr("{0} is deprecated", "{0.tag}");
809  suggestAlternative: "{1.tag}";
810  group: tr("deprecated tagging");
811}
812/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
813*[landuse=conservation] {
814  throwWarning: tr("{0} is deprecated", "{0.tag}");
815  suggestAlternative: "boundary=protected_area";
816  group: tr("deprecated tagging");
817  fixAdd: "boundary=protected_area";
818  fixRemove: "landuse";
819}
820
821/* #12205 */
822*[amenity=kiosk] {
823  throwWarning: tr("{0} is deprecated", "{0.tag}");
824  suggestAlternative: "shop=kiosk";
825  group: tr("deprecated tagging");
826  fixChangeKey: "amenity => shop";
827}
828*[amenity=shop] {
829  throwWarning: tr("{0} is deprecated", "{0.tag}");
830  suggestAlternative: "shop=*";
831  group: tr("deprecated tagging");
832}
833*[shop=fishmonger] {
834  throwWarning: tr("{0} is deprecated", "{0.tag}");
835  suggestAlternative: "shop=seafood";
836  group: tr("deprecated tagging");
837  fixAdd: "shop=seafood";
838}
839*[shop=fish] {
840  throwWarning: tr("{0} is deprecated", "{0.tag}");
841  suggestAlternative: "shop=seafood";
842  suggestAlternative: "shop=pet";
843  suggestAlternative: "shop=fishing";
844  group: tr("deprecated tagging");
845}
846*[shop=betting] {
847  throwWarning: tr("{0} is deprecated", "{0.tag}");
848  suggestAlternative: "shop=bookmaker";
849  suggestAlternative: "shop=lottery";
850  suggestAlternative: "amenity=casino";
851  suggestAlternative: "leisure=amusement_arcade";
852  suggestAlternative: "leisure=adult_gaming_centre";
853  suggestAlternative: "amenity=gambling";
854  group: tr("deprecated tagging");
855}
856*[shop=perfume] {
857  throwWarning: tr("{0} is deprecated", "{0.tag}");
858  suggestAlternative: "shop=perfumery";
859  group: tr("deprecated tagging");
860  fixAdd: "shop=perfumery";
861}
862*[amenity=exercise_point] {
863  throwWarning: tr("{0} is deprecated", "{0.tag}");
864  suggestAlternative: "leisure=fitness_station";
865  group: tr("deprecated tagging");
866  fixAdd: "leisure=fitness_station";
867  fixRemove: "amenity";
868}
869*[shop=auto_parts] {
870  throwWarning: tr("{0} is deprecated", "{0.tag}");
871  suggestAlternative: "shop=car_parts";
872  group: tr("deprecated tagging");
873  fixAdd: "shop=car_parts";
874}
875*[amenity=car_repair] {
876  throwWarning: tr("{0} is deprecated", "{0.tag}");
877  suggestAlternative: "shop=car_repair";
878  group: tr("deprecated tagging");
879  fixChangeKey: "amenity => shop";
880}
881
882/* #12311 */
883*[amenity=studio][type=audio],
884*[amenity=studio][type=radio],
885*[amenity=studio][type=television],
886*[amenity=studio][type=video] {
887  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
888  suggestAlternative: "studio";
889  group: tr("deprecated tagging");
890  fixChangeKey: "type => studio";
891}
892
893/* #11507, #12297, #15409 */
894*[power=cable_distribution_cabinet] {
895  throwWarning: tr("{0} is deprecated", "{0.tag}");
896  suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
897  group: tr("deprecated tagging");
898  fixAdd: "man_made=street_cabinet";
899  fixRemove: "power";
900}
901
902/* #16430 */
903*[power][location=kiosk] {
904  throwWarning: tr("{0} is deprecated", "{1.tag}");
905  group: tr("deprecated tagging");
906  fixAdd: "man_made=street_cabinet";
907  fixAdd: "street_cabinet=power";
908  fixRemove: "location";
909}
910
911/* #12276 */
912*[man_made=well] {
913  throwWarning: tr("{0} is deprecated", "{0.tag}");
914  suggestAlternative: "man_made=water_well";
915  suggestAlternative: "man_made=petroleum_well";
916  group: tr("deprecated tagging");
917}
918*[amenity=dog_bin],
919*[amenity=dog_waste_bin] {
920  throwWarning: tr("{0} is deprecated", "{0.tag}");
921  suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
922  group: tr("deprecated tagging");
923  fixAdd: "amenity=waste_basket";
924  fixAdd: "waste=dog_excrement";
925  fixAdd: "vending=excrement_bags";
926}
927*[amenity=artwork] {
928  throwWarning: tr("{0} is deprecated", "{0.tag}");
929  suggestAlternative: "tourism=artwork";
930  group: tr("deprecated tagging");
931  fixAdd: "tourism=artwork";
932  fixRemove: "amenity";
933}
934*[amenity=community_center] {
935  throwWarning: tr("{0} is deprecated", "{0.tag}");
936  suggestAlternative: "amenity=community_centre";
937  group: tr("deprecated tagging");
938  fixAdd: "amenity=community_centre";
939}
940*[man_made=cut_line] {
941  throwWarning: tr("{0} is deprecated", "{0.tag}");
942  suggestAlternative: "man_made=cutline";
943  group: tr("deprecated tagging");
944  fixAdd: "man_made=cutline";
945}
946*[amenity=park] {
947  throwWarning: tr("{0} is deprecated", "{0.tag}");
948  suggestAlternative: "leisure=park";
949  group: tr("deprecated tagging");
950  fixAdd: "leisure=park";
951  fixRemove: "amenity";
952}
953*[amenity=hotel] {
954  throwWarning: tr("{0} is deprecated", "{0.tag}");
955  suggestAlternative: "tourism=hotel";
956  group: tr("deprecated tagging");
957  fixAdd: "tourism=hotel";
958  fixRemove: "amenity";
959}
960*[shop=window],
961*[shop=windows] {
962  throwWarning: tr("{0} is deprecated", "{0.tag}");
963  suggestAlternative: "craft=window_construction";
964  group: tr("deprecated tagging");
965  fixAdd: "craft=window_construction";
966  fixRemove: "shop";
967}
968*[amenity=education] {
969  throwWarning: tr("{0} is deprecated", "{0.tag}");
970  suggestAlternative: "amenity=college";
971  suggestAlternative: "amenity=school";
972  suggestAlternative: "amenity=university";
973  group: tr("deprecated tagging");
974}
975*[shop=gallery] {
976  throwWarning: tr("{0} is deprecated", "{0.tag}");
977  suggestAlternative: "shop=art";
978  group: tr("deprecated tagging");
979  fixAdd: "shop=art";
980}
981*[shop=gambling],
982*[leisure=gambling] {
983  throwWarning: tr("{0} is deprecated", "{0.tag}");
984  suggestAlternative: "shop=bookmaker";
985  suggestAlternative: "shop=lottery";
986  suggestAlternative: "amenity=casino";
987  suggestAlternative: "leisure=amusement_arcade";
988  suggestAlternative: "amenity=gambling";
989  group: tr("deprecated tagging");
990}
991*[office=real_estate],
992*[office=real_estate_agent] {
993  throwWarning: tr("{0} is deprecated", "{0.tag}");
994  suggestAlternative: "office=estate_agent";
995  group: tr("deprecated tagging");
996  fixAdd: "office=estate_agent";
997}
998*[shop=glass] {
999  throwWarning: tr("{0} is deprecated", "{0.tag}");
1000  suggestAlternative: "shop=glaziery";
1001  suggestAlternative: "craft=glaziery";
1002  group: tr("deprecated tagging");
1003}
1004*[amenity=proposed],
1005*[amenity=disused],
1006*[shop=disused],
1007*[highway=abandoned],
1008*[historic=abandoned] {
1009  throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
1010  group: tr("deprecated tagging");
1011}
1012
1013/* #12431 */
1014*[amenity=swimming_pool] {
1015  throwWarning: tr("{0} is deprecated", "{0.tag}");
1016  suggestAlternative: "leisure=swimming_pool";
1017  group: tr("deprecated tagging");
1018  fixChangeKey: "amenity => leisure";
1019}
1020
1021/* #17379 */
1022*[amenity=sauna] {
1023  throwWarning: tr("{0} is deprecated", "{0.tag}");
1024  suggestAlternative: "leisure=sauna";
1025  group: tr("deprecated tagging");
1026  fixChangeKey: "amenity => leisure";
1027}
1028
1029/* #12494, #17554 */
1030*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
1031  throwWarning: tr("{0}", "{0.key}");
1032  group: tr("questionable key (ending with a number)");
1033  assertMatch: "way name_1=foo";
1034  assertNoMatch: "way note_2=foo";
1035  assertNoMatch: "way description_3=foo";
1036  assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
1037}
1038
1039/* #12500 */
1040*[sport=skating] {
1041  throwWarning: tr("{0} is deprecated", "{0.tag}");
1042  suggestAlternative: "sport=ice_skating";
1043  suggestAlternative: "sport=roller_skating";
1044  group: tr("deprecated tagging");
1045}
1046
1047way[barrier=wall][type=noise_barrier][!wall],
1048way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
1049  throwWarning: tr("{0} is deprecated", "{1.tag}");
1050  suggestAlternative: "wall=noise_barrier";
1051  group: tr("deprecated tagging");
1052  fixChangeKey: "type => wall";
1053}
1054way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
1055  throwWarning: tr("{0} is deprecated", "{1.tag}");
1056  suggestAlternative: "wall=noise_barrier";
1057  group: tr("deprecated tagging");
1058}
1059
1060/* #8978, 12588 */
1061*[amenity=public_building] {
1062  throwWarning: tr("{0} is deprecated", "{0.tag}");
1063  suggestAlternative: "amenity=townhall";
1064  suggestAlternative: "amenity=community_centre";
1065  suggestAlternative: "amenity=hospital";
1066  suggestAlternative: "leisure=sports_centre";
1067  suggestAlternative: "office=government";
1068  suggestAlternative: "building=hospital";
1069  suggestAlternative: "building=public";
1070  suggestAlternative: "...";
1071  group: tr("deprecated tagging");
1072}
1073
1074/* #18517 */
1075*[office=administrative] {
1076  throwWarning: tr("{0} is deprecated", "{0.tag}");
1077  suggestAlternative: "office=government";
1078  group: tr("deprecated tagging");
1079  fixAdd: "office=government";
1080}
1081
1082/* #12708 */
1083*[vending=news_papers] {
1084  throwWarning: tr("{0} is deprecated", "{0.tag}");
1085  suggestAlternative: "vending=newspapers";
1086  group: tr("deprecated tagging");
1087  fixAdd: "vending=newspapers";
1088}
1089
1090/* #12771 */
1091*[service=drive_through] {
1092  throwWarning: tr("{0} is deprecated", "{0.tag}");
1093  suggestAlternative: "service=drive-through";
1094  group: tr("deprecated tagging");
1095  fixAdd: "service=drive-through";
1096}
1097
1098/* #12771, #9895 */
1099*[noexit][noexit!=yes][noexit!=no], /* noexit=no has an own warning */
1100way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|slipway|yes)$/], /* drive_through and yes have special warnings */
1101way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1102way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1103  throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
1104}
1105
1106/* #13008 */
1107*[name:botanical] {
1108  throwWarning: tr("{0} is deprecated", "{0.key}");
1109  suggestAlternative: "species";
1110  group: tr("deprecated tagging");
1111}
1112
1113/* #11344, #13101, #15480 */
1114node[pole=air_to_ground],
1115node[pole=transition] {
1116  throwWarning: tr("{0} is deprecated", "{0.tag}");
1117  suggestAlternative: "location:transition=yes";
1118  group: tr("deprecated tagging");
1119  fixAdd: "location:transition=yes";
1120  fixRemove: "pole";
1121}
1122node[tower=air_to_ground],
1123node[tower=transition] {
1124  throwWarning: tr("{0} is deprecated", "{0.tag}");
1125  suggestAlternative: "location:transition=yes";
1126  group: tr("deprecated tagging");
1127  fixAdd: "location:transition=yes";
1128  fixRemove: "tower";
1129}
1130
1131/* #13138 */
1132area[landuse=pond] {
1133  throwWarning: tr("{0} is deprecated", "{0.tag}");
1134  suggestAlternative: "natural=water + water=pond";
1135  group: tr("deprecated tagging");
1136  fixAdd: "natural=water";
1137  fixAdd: "water=pond";
1138  fixRemove: "landuse";
1139}
1140
1141*[shop=souvenir],
1142*[shop=souvenirs],
1143*[shop=souveniers] {
1144  throwWarning: tr("{0} is deprecated", "{0.tag}");
1145  suggestAlternative: "shop=gift";
1146  group: tr("deprecated tagging");
1147  fixAdd: "shop=gift";
1148}
1149
1150*[vending=animal_food] {
1151  throwWarning: tr("{0} is deprecated", "{0.tag}");
1152  suggestAlternative: "vending=animal_feed";
1153  group: tr("deprecated tagging");
1154  fixAdd: "vending=animal_feed";
1155}
1156
1157/* #14376 */
1158node[vending=photos][amenity=vending_machine],
1159node[vending=photo][amenity=vending_machine] {
1160  throwWarning: tr("{0} is deprecated", "{0.tag}");
1161  suggestAlternative: "amenity=photo_booth";
1162  group: tr("deprecated tagging");
1163  fixRemove: "vending";
1164  fixAdd: "amenity=photo_booth";
1165
1166}
1167node[vending=photos][amenity!=vending_machine] {
1168  throwWarning: tr("{0} is deprecated", "{0.tag}");
1169  suggestAlternative: "amenity=photo_booth";
1170  group: tr("deprecated tagging");
1171}
1172
1173/* #13653 */
1174node[highway=emergency_access_point][phone][!emergency_telephone_code],
1175way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1176  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1177  suggestAlternative: "emergency_telephone_code";
1178  group: tr("deprecated tagging");
1179  fixChangeKey: "phone => emergency_telephone_code";
1180  assertMatch:   "node highway=emergency_access_point phone=123";
1181  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1182  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1183  assertNoMatch: "node phone=123";
1184}
1185node[highway=emergency_access_point][phone=*emergency_telephone_code],
1186way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1187  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1188  suggestAlternative: "emergency_telephone_code";
1189  group: tr("deprecated tagging");
1190  fixRemove: "phone";
1191  assertNoMatch: "node highway=emergency_access_point phone=123";
1192  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1193  assertMatch:   "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1194}
1195node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1196way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1197  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1198  suggestAlternative: "emergency_telephone_code";
1199  group: tr("deprecated tagging");
1200  assertNoMatch: "node highway=emergency_access_point phone=123";
1201  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1202  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1203}
1204
1205/* #13879 */
1206way[tracktype=1] {
1207  throwError: tr("{0}", "{0.tag}");
1208  suggestAlternative: "tracktype=grade1";
1209  group: tr("misspelled value");
1210  fixAdd: "tracktype=grade1";
1211}
1212way[tracktype=2] {
1213  throwError: tr("{0}", "{0.tag}");
1214  suggestAlternative: "tracktype=grade2";
1215  group: tr("misspelled value");
1216  fixAdd: "tracktype=grade2";
1217}
1218way[tracktype=3] {
1219  throwError: tr("{0}", "{0.tag}");
1220  suggestAlternative: "tracktype=grade3";
1221  group: tr("misspelled value");
1222  fixAdd: "tracktype=grade3";
1223}
1224way[tracktype=4] {
1225  throwError: tr("{0}", "{0.tag}");
1226  suggestAlternative: "tracktype=grade4";
1227  group: tr("misspelled value");
1228  fixAdd: "tracktype=grade4";
1229}
1230way[tracktype=5] {
1231  throwError: tr("{0}", "{0.tag}");
1232  suggestAlternative: "tracktype=grade5";
1233  group: tr("misspelled value");
1234  fixAdd: "tracktype=grade5";
1235}
1236way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1237  throwError: tr("wrong value: {0}", "{0.tag}");
1238  suggestAlternative: "tracktype=grade1";
1239  suggestAlternative: "tracktype=grade2";
1240  suggestAlternative: "tracktype=grade3";
1241  suggestAlternative: "tracktype=grade4";
1242  suggestAlternative: "tracktype=grade5";
1243}
1244
1245area[area][area!=yes][area!=no] {
1246  throwError: tr("wrong value: {0}", "{0.tag}");
1247  suggestAlternative: "area=yes";
1248  suggestAlternative: "area=no";
1249}
1250
1251/* #13953 */
1252*[amenity=hunting_stand][lock=yes],
1253*[amenity=hunting_stand][lock=no] {
1254  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1255  suggestAlternative: "lockable";
1256  group: tr("deprecated tagging");
1257  fixChangeKey: "lock => lockable";
1258}
1259
1260*[amenity=advertising][!advertising] {
1261  throwWarning: tr("{0} is deprecated", "{0.tag}");
1262  suggestAlternative: "advertising=*";
1263  group: tr("deprecated tagging");
1264}
1265*[amenity=advertising][advertising] {
1266  throwWarning: tr("{0} is deprecated", "{0.tag}");
1267  suggestAlternative: "advertising=*";
1268  group: tr("deprecated tagging");
1269  fixRemove: "amenity";
1270}
1271
1272way[direction=up][incline=up],
1273way[direction=down][incline=down],
1274way[direction=up][!incline],
1275way[direction=down][!incline] {
1276  throwWarning: tr("{0} is deprecated", "{0.tag}");
1277  suggestAlternative: "incline";
1278  group: tr("deprecated tagging");
1279  fixChangeKey: "direction => incline";
1280}
1281way[direction=up][incline][incline!=up],
1282way[direction=down][incline][incline!=down] {
1283  throwWarning: tr("{0} is deprecated", "{0.tag}");
1284  suggestAlternative: "incline";
1285  group: tr("deprecated tagging");
1286}
1287
1288*[building=true],
1289*[building="*"],
1290*[building=Y],
1291*[building=y],
1292*[building=1] {
1293  throwError: tr("{0}", "{0.tag}");
1294  suggestAlternative: "building=yes";
1295  group: tr("misspelled value");
1296  fixAdd: "building=yes";
1297}
1298
1299/* #17786, #18612 */
1300*[building=abandoned],
1301*[building=address],
1302*[building=bing],
1303*[building=collapsed],
1304*[building=damaged],
1305*[building=demolished],
1306*[building=disused],
1307*[building=fixme],
1308*[building=occupied],
1309*[building=razed] {
1310  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1311  group: tr("deprecated tagging");
1312}
1313*[building=other],
1314*[building=unclassified],
1315*[building=undefined],
1316*[building=unknown],
1317*[building=unidentified] {
1318  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1319  group: tr("deprecated tagging");
1320  fixAdd: "building=yes";
1321}
1322
1323/* #15675 */
1324node[power=transformer][location=pole][transformer] {
1325  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1326  group: tr("deprecated tagging");
1327  fixChangeKey: "location => power";
1328}
1329node[power=transformer][location=pole][!transformer] {
1330  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1331  group: tr("deprecated tagging");
1332  fixChangeKey: "location => power";
1333  fixAdd: "transformer=yes";
1334}
1335
1336node[tourism=picnic_table],
1337node[amenity=picnic_table],
1338node[leisure=picnic],
1339node[leisure=picnic_site] {
1340  throwWarning: tr("{0} is deprecated", "{0.tag}");
1341  suggestAlternative: "tourism=picnic_site";
1342  suggestAlternative: "leisure=picnic_table";
1343  group: tr("deprecated tagging");
1344}
1345
1346/* #15804 */
1347relation[water=salt],
1348way[water=salt],
1349way[water=salt_pool],
1350way[water=salt_panne],
1351way[water=salt_pond] {
1352  throwWarning: tr("{0} is deprecated", "{0.tag}");
1353  suggestAlternative: "salt=yes";
1354  suggestAlternative: "landuse=salt_pond";
1355  group: tr("deprecated tagging");
1356}
1357
1358/* #15805 */
1359way[water=tidal] {
1360  throwWarning: tr("{0} is deprecated", "{0.tag}");
1361  suggestAlternative: "tidal=yes";
1362  fixAdd: "tidal=yes";
1363  fixRemove: "water";
1364  group: tr("deprecated tagging");
1365}
1366
1367*[amenity=toilet] {
1368  throwError: tr("{0}", "{0.tag}");
1369  suggestAlternative: "amenity=toilets";
1370  group: tr("misspelled value");
1371  fixAdd: "amenity=toilets";
1372}
1373
1374way[power=busbar] {
1375  throwWarning: tr("{0} is deprecated", "{0.tag}");
1376  suggestAlternative: "power=line + line=busbar";
1377  group: tr("deprecated tagging");
1378  fixAdd: "power=line";
1379  fixAdd: "line=busbar";
1380}
1381
1382/* #16924 */
1383*[man_made=MDF],
1384*[man_made=telephone_exchange] {
1385  throwWarning: tr("{0} is deprecated", "{0.tag}");
1386  suggestAlternative: "telecom=exchange";
1387  fixAdd: "telecom=exchange";
1388  fixRemove: "man_made";
1389  group: tr("deprecated tagging");
1390}
1391*[building=central_office] {
1392  throwWarning: tr("{0} is deprecated", "{0.tag}");
1393  suggestAlternative: "telecom=exchange";
1394  fixAdd: "telecom=exchange";
1395  fixAdd: "building=yes";
1396  group: tr("deprecated tagging");
1397}
1398*[telecom=central_office] {
1399  throwWarning: tr("{0} is deprecated", "{0.tag}");
1400  suggestAlternative: "telecom=exchange";
1401  fixAdd: "telecom=exchange";
1402  group: tr("deprecated tagging");
1403}
1404
1405/* #16925 */
1406node[communication=outdoor_dslam],
1407node[man_made=outdoor_dslam],
1408node[street_cabinet=outdoor_dslam] {
1409  throwWarning: tr("{0} is deprecated", "{0.tag}");
1410  suggestAlternative: "telecom=service_device";
1411  fixAdd: "telecom=service_device";
1412  fixRemove: "{0.key}";
1413  group: tr("deprecated tagging");
1414}
1415node[telecom=dslam],
1416node[telecom=outdoor_dslam] {
1417  throwWarning: tr("{0} is deprecated", "{0.tag}");
1418  suggestAlternative: "telecom=service_device";
1419  fixAdd: "telecom=service_device";
1420  group: tr("deprecated tagging");
1421}
1422
1423/* #15774 */
1424node[amenity=fire_hydrant] {
1425  throwWarning: tr("{0} is deprecated", "{0.tag}");
1426  suggestAlternative: "emergency=fire_hydrant";
1427  fixChangeKey: "amenity => emergency";
1428  group: tr("deprecated tagging");
1429}
1430node[fire_hydrant:type=pond] {
1431  throwWarning: tr("{0} is deprecated", "{0.tag}");
1432  suggestAlternative: "water_source=pond";
1433  fixAdd: "water_source=pond";
1434  fixRemove: "{0.key}";
1435  group: tr("deprecated tagging");
1436}
1437node[fire_hydrant:flow_capacity] {
1438  throwWarning: tr("{0} is deprecated", "{0.key}");
1439  suggestAlternative: "flow_rate";
1440  group: tr("deprecated tagging");
1441}
1442node[emergency=fire_hydrant][in_service=no] {
1443  throwWarning: tr("{0} is deprecated", "{1.tag}");
1444  suggestAlternative: "disused:emergency=fire_hydrant";
1445  fixAdd: "disused:emergency=fire_hydrant";
1446  fixRemove: "{1.key}";
1447  fixRemove: "{0.key}";
1448  group: tr("deprecated tagging");
1449}
1450node[fire_hydrant:water_source] {
1451  throwWarning: tr("{0} is deprecated", "{0.key}");
1452  suggestAlternative: "water_source";
1453  fixChangeKey: "fire_hydrant:water_source => water_source";
1454  group: tr("deprecated tagging");
1455}
1456
1457/* #17383 */
1458*[natural=waterfall] {
1459  throwWarning: tr("{0} is deprecated", "{0.tag}");
1460  suggestAlternative: "waterway=waterfall";
1461  fixChangeKey: "natural => waterway";
1462  group: tr("deprecated tagging");
1463}
1464
1465/* #17249 */
1466*[religion=unitarian] {
1467  throwWarning: tr("{0} is deprecated", "{0.tag}");
1468  suggestAlternative: "religion=unitarian_universalist";
1469  fixAdd: "religion=unitarian_universalist";
1470  group: tr("deprecated tagging");
1471}
1472
1473*[shop=shopping_centre] {
1474  throwWarning: tr("{0} is deprecated", "{0.tag}");
1475  suggestAlternative: "shop=mall";
1476  fixAdd: "shop=mall";
1477  group: tr("deprecated tagging");
1478}
1479
1480/* #17504 */
1481*[is_in],
1482node[/^is_in:.*$/],
1483way[/^is_in:.*$/] {
1484  throwWarning: tr("{0} is deprecated", "{0.key}");
1485  group: tr("deprecated tagging");
1486  fixRemove: "{0.key}";
1487}
1488
1489/* #17593 */
1490*[sport=football] {
1491  throwWarning: tr("{0} is deprecated", "{0.tag}");
1492  suggestAlternative: "sport=soccer";
1493  suggestAlternative: "sport=american_football";
1494  suggestAlternative: "sport=australian_football";
1495  suggestAlternative: "sport=canadian_football";
1496  suggestAlternative: "sport=rugby_league";
1497  suggestAlternative: "sport=rugby_union";
1498  suggestAlternative: "sport=gaelic_games";
1499  group: tr("deprecated tagging");
1500}
1501
1502/* #17556 */
1503*[leisure=common] {
1504  throwWarning: tr("{0} is deprecated", "{0.tag}");
1505  suggestAlternative: "landuse=*";
1506  suggestAlternative: "leisure=*";
1507  suggestAlternative: "designation=common";
1508  group: tr("deprecated tagging");
1509}
1510
1511/* #17043 */
1512*[cuisine=vegan],
1513*[cuisine=vegetarian] {
1514  throwWarning: tr("{0} is deprecated", "{0.tag}");
1515  suggestAlternative: concat("diet:", "{0.value}", "=yes");
1516  suggestAlternative: concat("diet:", "{0.value}", "=only");
1517  group: tr("deprecated tagging");
1518}
1519
1520/* #17798 */
1521*[kitchen_hours] {
1522  throwWarning: tr("{0} is deprecated", "{0.key}");
1523  suggestAlternative: "opening_hours:kitchen";
1524  fixChangeKey: "kitchen_hours => opening_hours:kitchen";
1525  group: tr("deprecated tagging");
1526}
1527
1528/* #17681 */
1529*[shop=money_transfer] {
1530  throwWarning: tr("{0} is deprecated", "{0.tag}");
1531  suggestAlternative: "amenity=money_transfer";
1532  fixChangeKey: "shop => amenity";
1533  group: tr("deprecated tagging");
1534}
1535
1536*[contact:google_plus] {
1537  throwWarning: tr("{0} is deprecated", "{0.key}");
1538  fixRemove: "contact:google_plus";
1539  group: tr("deprecated tagging");
1540}
1541
1542/* #17370  */
1543*[amenity=garages],
1544*[amenity=garage] {
1545  throwWarning: tr("{0} is deprecated", "{0.tag}");
1546  suggestAlternative: concat("building=", "{0.value}");
1547  suggestAlternative: "landuse=garages";
1548  suggestAlternative: "amenity=parking + parking=garage_boxes";
1549  group: tr("deprecated tagging");
1550}
1551*[shop=winery],
1552*[amenity=winery] {
1553  throwWarning: tr("{0} is deprecated", "{0.tag}");
1554  suggestAlternative: "craft=winery";
1555  suggestAlternative: "shop=wine";
1556  group: tr("deprecated tagging");
1557}
1558*[amenity=youth_centre] {
1559  throwWarning: tr("{0} is deprecated", "{0.tag}");
1560  suggestAlternative: "amenity=community_centre + community_centre=youth_centre";
1561  fixAdd: "amenity=community_centre";
1562  fixAdd: "community_centre=youth_centre";
1563  group: tr("deprecated tagging");
1564}
1565*[building:type][building=yes],
1566*[building:type][!building] {
1567  throwWarning: tr("{0} is deprecated", "{0.key}");
1568  suggestAlternative: "building";
1569  group: tr("deprecated tagging");
1570  fixChangeKey: "building:type => building";
1571  assertMatch: "way building:type=church";
1572  assertMatch: "way building:type=church building=yes";
1573  assertNoMatch: "way building:type=church building=supermarket";
1574}
1575*[building:type][building][building!=yes] {
1576  throwWarning: tr("{0} is deprecated", "{0.key}");
1577  suggestAlternative: "building";
1578  group: tr("deprecated tagging");
1579  assertNoMatch: "way building:type=church";
1580  assertNoMatch: "way building:type=church building=yes";
1581  assertMatch: "way building:type=church building=supermarket";
1582}
1583*[escalator] {
1584  throwWarning: tr("{0} is deprecated", "{0.key}");
1585  suggestAlternative: "highway=steps + conveying=*";
1586  group: tr("deprecated tagging");
1587}
1588*[fenced] {
1589  throwWarning: tr("{0} is deprecated", "{0.key}");
1590  suggestAlternative: "barrier=fence";
1591  group: tr("deprecated tagging");
1592}
1593*[historic_name][!old_name] {
1594  throwWarning: tr("{0} is deprecated", "{0.key}");
1595  suggestAlternative: "old_name";
1596  group: tr("deprecated tagging");
1597  fixChangeKey: "historic_name => old_name";
1598}
1599*[historic_name][old_name] {
1600  throwWarning: tr("{0} is deprecated", "{0.key}");
1601  suggestAlternative: "old_name";
1602  group: tr("deprecated tagging");
1603}
1604*[landuse=field] {
1605  throwWarning: tr("{0} is deprecated", "{0.tag}");
1606  suggestAlternative: "landuse=farmland";
1607  group: tr("deprecated tagging");
1608  fixAdd: "landuse=farmland";
1609}
1610*[leisure=beach] {
1611  throwWarning: tr("{0} is deprecated", "{0.tag}");
1612  suggestAlternative: "natural=beach";
1613  suggestAlternative: "leisure=beach_resort";
1614  group: tr("deprecated tagging");
1615}
1616*[leisure=club] {
1617  throwWarning: tr("{0} is deprecated", "{0.tag}");
1618  suggestAlternative: "club=*";
1619  group: tr("deprecated tagging");
1620}
1621*[leisure=video_arcade] {
1622  throwWarning: tr("{0} is deprecated", "{0.tag}");
1623  suggestAlternative: "leisure=amusement_arcade";
1624  suggestAlternative: "leisure=adult_gaming_centre";
1625  group: tr("deprecated tagging");
1626}
1627*[man_made=jetty] {
1628  throwWarning: tr("{0} is deprecated", "{0.tag}");
1629  suggestAlternative: "man_made=pier";
1630  group: tr("deprecated tagging");
1631  fixAdd: "man_made=pier";
1632}
1633*[man_made=village_pump] {
1634  throwWarning: tr("{0} is deprecated", "{0.tag}");
1635  suggestAlternative: "man_made=water_well";
1636  group: tr("deprecated tagging");
1637  fixAdd: "man_made=water_well";
1638}
1639*[man_made=water_tank] {
1640  throwWarning: tr("{0} is deprecated", "{0.tag}");
1641  suggestAlternative: "man_made=storage_tank + content=water";
1642  group: tr("deprecated tagging");
1643  fixAdd: "man_made=storage_tank";
1644  fixAdd: "content=water";
1645}
1646*[natural=moor] {
1647  throwWarning: tr("{0} is deprecated", "{0.tag}");
1648  suggestAlternative: "natural=heath";
1649  suggestAlternative: "natural=scrub";
1650  suggestAlternative: "natural=grassland";
1651  suggestAlternative: "natural=wetland";
1652  suggestAlternative: "natural=fell";
1653  suggestAlternative: "natural=tundra";
1654  suggestAlternative: "landuse=meadow + meadow=agricultural";
1655  group: tr("deprecated tagging");
1656}
1657*[noexit=no][!fixme] {
1658  throwWarning: tr("{0} is deprecated", "{0.tag}");
1659  suggestAlternative: "fixme=continue";
1660  group: tr("deprecated tagging");
1661  fixAdd: "fixme=continue";
1662  fixRemove: "noexit";
1663}
1664*[noexit=no][fixme] {
1665  throwWarning: tr("{0} is deprecated", "{0.tag}");
1666  suggestAlternative: "fixme=continue";
1667  group: tr("deprecated tagging");
1668}
1669*[shop=dive] {
1670  throwWarning: tr("{0} is deprecated", "{0.tag}");
1671  suggestAlternative: "shop=scuba_diving";
1672  group: tr("deprecated tagging");
1673  fixAdd: "shop=scuba_diving";
1674}
1675*[shop=furnace] {
1676  throwWarning: tr("{0} is deprecated", "{0.tag}");
1677  suggestAlternative: "shop=fireplace";
1678  suggestAlternative: "craft=plumber";
1679  group: tr("deprecated tagging");
1680}
1681*[sport=paragliding] {
1682  throwWarning: tr("{0} is deprecated", "{0.tag}");
1683  suggestAlternative: "sport=free_flying";
1684  group: tr("deprecated tagging");
1685  fixAdd: "sport=free_flying";
1686}
1687*[tourism=bed_and_breakfast] {
1688  throwWarning: tr("{0} is deprecated", "{0.tag}");
1689  suggestAlternative: "tourism=guest_house + guest_house=bed_and_breakfast";
1690  group: tr("deprecated tagging");
1691  fixAdd: "tourism=guest_house";
1692  fixAdd: "guest_house=bed_and_breakfast";
1693}
1694
1695/* #17880 */
1696*[diaper=yes],
1697*[diaper=no] {
1698  throwWarning: tr("{0} is deprecated", "{0.tag}");
1699  suggestAlternative: concat("changing_table=", "{0.value}");
1700  group: tr("deprecated tagging");
1701  fixChangeKey: "diaper => changing_table";
1702  set diaper_checked;
1703}
1704*[diaper][diaper =~ /^[1-9][0-9]*$/] {
1705  throwWarning: tr("{0} is deprecated", "{0.tag}");
1706  suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}");
1707  group: tr("deprecated tagging");
1708  fixChangeKey: "diaper => changing_table:count";
1709  fixAdd: "changing_table=yes";
1710  set diaper_checked;
1711}
1712*[diaper=room] {
1713  throwWarning: tr("{0} is deprecated", "{0.tag}");
1714  suggestAlternative: "changing_table=room";
1715  suggestAlternative: "changing_table=dedicated_room";
1716  group: tr("deprecated tagging");
1717  set diaper_checked;
1718}
1719*[diaper]!.diaper_checked {
1720  throwWarning: tr("{0} is deprecated", "{0.key}");
1721  suggestAlternative: "changing_table";
1722  group: tr("deprecated tagging");
1723}
1724*[diaper:male=yes] {
1725  throwWarning: tr("{0} is deprecated", "{0.tag}");
1726  suggestAlternative: "changing_table:location=male_toilet";
1727  group: tr("deprecated tagging");
1728  fixAdd: "changing_table:location=male_toilet";
1729  fixRemove: "diaper:male";
1730  set diaper___checked;
1731}
1732*[diaper:female=yes] {
1733  throwWarning: tr("{0} is deprecated", "{0.tag}");
1734  suggestAlternative: "changing_table:location=female_toilet";
1735  group: tr("deprecated tagging");
1736  fixAdd: "changing_table:location=female_toilet";
1737  fixRemove: "diaper:female";
1738  set diaper___checked;
1739}
1740*[diaper:unisex=yes] {
1741  throwWarning: tr("{0} is deprecated", "{0.tag}");
1742  suggestAlternative: "changing_table:location=unisex_toilet";
1743  group: tr("deprecated tagging");
1744  fixAdd: "changing_table:location=unisex_toilet";
1745  fixRemove: "diaper:unisex";
1746  set diaper___checked;
1747}
1748*[diaper:wheelchair=yes],
1749*[diaper:wheelchair=no] {
1750  throwWarning: tr("{0} is deprecated", "{0.tag}");
1751  suggestAlternative: concat("changing_table:wheelchair=", "{0.value}");
1752  group: tr("deprecated tagging");
1753  fixChangeKey: "diaper:wheelchair => changing_table:wheelchair";
1754  set diaper___checked;
1755}
1756*[diaper:fee=yes],
1757*[diaper:fee=no] {
1758  throwWarning: tr("{0} is deprecated", "{0.tag}");
1759  suggestAlternative: concat("changing_table:fee=", "{0.value}");
1760  group: tr("deprecated tagging");
1761  fixChangeKey: "diaper:fee => changing_table:fee";
1762  set diaper___checked;
1763}
1764*[/^diaper:/]!.diaper___checked {
1765  throwWarning: tr("{0} is deprecated", "diaper:*");
1766  suggestAlternative: "changing_table:*";
1767  group: tr("deprecated tagging");
1768}
1769*[changing_table][changing_table!~/^(yes|no|limited)$/] {
1770  throwWarning: tr("wrong value: {0}", "{0.tag}");
1771  suggestAlternative: "changing_table=yes";
1772  suggestAlternative: "changing_table=no";
1773  suggestAlternative: "changing_table=limited";
1774}
1775
1776/* #17990 */
1777*[roof:shape=half_hipped] {
1778  throwWarning: tr("{0} is deprecated", "{0.tag}");
1779  suggestAlternative: "roof:shape=half-hipped";
1780  group: tr("deprecated tagging");
1781  fixAdd: "roof:shape=half-hipped";
1782}
1783
1784/* #18003 */
1785*[bridge_name] {
1786  throwWarning: tr("{0} is deprecated", "{0.key}");
1787  suggestAlternative: "bridge:name";
1788  group: tr("deprecated tagging");
1789  fixChangeKey: "bridge_name => bridge:name";
1790}
1791
1792/* #18007 */
1793*[access=public] {
1794  throwWarning: tr("{0} is deprecated", "{0.tag}");
1795  suggestAlternative: "access=yes";
1796  group: tr("deprecated tagging");
1797  fixAdd: "access=yes";
1798}
1799
1800/* #17330 */
1801*[crossing=island] {
1802  throwWarning: tr("{0} is deprecated", "{0.tag}");
1803  suggestAlternative: "crossing:island=yes";
1804  group: tr("deprecated tagging");
1805  fixRemove: "crossing";
1806  fixAdd: "crossing:island=yes";
1807}
1808
1809/* #18152 */
1810*[recycling:metal] {
1811  throwWarning: tr("{0} is deprecated", "{0.key}");
1812  suggestAlternative: "recycling:scrap_metal";
1813  group: tr("deprecated tagging");
1814  fixChangeKey: "recycling:metal => recycling:scrap_metal";
1815}
1816
1817/* #18154 */
1818*[shop=dog_grooming] {
1819  throwWarning: tr("{0} is deprecated", "{0.tag}");
1820  suggestAlternative: "shop=pet_grooming";
1821  fixAdd: "shop=pet_grooming";
1822  group: tr("deprecated tagging");
1823}
1824
1825/* #17984 */
1826*[tower:type=anchor],
1827*[tower:type=suspension] {
1828  throwWarning: tr("{0} is deprecated", "{0.tag}");
1829  suggestAlternative: concat("line_attachment=", "{0.value}");
1830  fixChangeKey: "tower:type => line_attachment";
1831  group: tr("deprecated tagging");
1832}
1833node[pole:type=anchor],
1834node[pole:type=suspension] {
1835  throwWarning: tr("{0} is deprecated", "{0.tag}");
1836  suggestAlternative: concat("line_attachment=", "{0.value}");
1837  fixChangeKey: "pole:type => line_attachment";
1838  group: tr("deprecated tagging");
1839}
1840
1841/* #18267 */
1842node[man_made=pipeline_marker],
1843node[pipeline=marker],
1844node[power=marker],
1845node[cable=marker] {
1846  throwWarning: tr("{0} is deprecated", "{0.tag}");
1847  suggestAlternative: "marker=* + utility=*";
1848  group: tr("deprecated tagging");
1849}
1850
1851/* #17643 */
1852way[barrier=embankment] {
1853  throwWarning: tr("{0} is deprecated", "{0.tag}");
1854  suggestAlternative: "man_made=embankment";
1855  suggestAlternative: "embankment=yes";
1856  group: tr("deprecated tagging");
1857}
1858
1859/* #18469 */
1860way[landuse=churchyard] {
1861  throwWarning: tr("{0} is deprecated", "{0.tag}");
1862  suggestAlternative: "landuse=religious";
1863  suggestAlternative: "amenity=graveyard";
1864  group: tr("deprecated tagging");
1865}
1866
1867*[sloped_curb=yes][!kerb],
1868*[sloped_curb=both][!kerb] {
1869  throwWarning: tr("{0} is deprecated", "{0.tag}");
1870  suggestAlternative: "kerb=lowered";
1871  group: tr("deprecated tagging");
1872  fixRemove: "sloped_curb";
1873  fixAdd: "kerb=lowered";
1874}
1875*[sloped_curb=no][!kerb] {
1876  throwWarning: tr("{0} is deprecated", "{0.tag}");
1877  suggestAlternative: "kerb=yes";
1878  group: tr("deprecated tagging");
1879  fixRemove: "sloped_curb";
1880  fixAdd: "kerb=yes";
1881}
1882*[sloped_curb][sloped_curb !~ /^(yes|both|no)$/][!kerb],
1883*[sloped_curb][kerb] {
1884  throwWarning: tr("{0} is deprecated", "{0.key}");
1885  suggestAlternative: "kerb=*";
1886  group: tr("deprecated tagging");
1887}
1888
1889/* #18571 */
1890*[unnamed=yes] {
1891  throwWarning: tr("{0} is deprecated", "{0.tag}");
1892  suggestAlternative: "noname=yes";
1893  fixChangeKey: "unnamed => noname";
1894  group: tr("deprecated tagging");
1895}
1896
1897node[segregated][segregated!=yes][segregated!=no],
1898way[segregated ][segregated!=yes][segregated!=no] {
1899  throwWarning: tr("unusual value of {0}", "{0.key}");
1900}
1901
1902/* #18603 */
1903way[bicycle:oneway] {
1904  throwWarning: tr("{0} is deprecated", "{0.key}");
1905  suggestAlternative: "oneway:bicycle";
1906  fixChangeKey: "bicycle:oneway => oneway:bicycle";
1907  group: tr("deprecated tagging");
1908}
1909
1910/* #18605 */
1911*[building:height] {
1912  throwWarning: tr("{0} is deprecated", "{0.key}");
1913  suggestAlternative: "height";
1914  fixChangeKey: "building:height => height";
1915  group: tr("deprecated tagging");
1916}
1917*[building:min_height] {
1918  throwWarning: tr("{0} is deprecated", "{0.key}");
1919  suggestAlternative: "min_height";
1920  fixChangeKey: "building:min_height => min_height";
1921  group: tr("deprecated tagging");
1922}
1923
1924/* #11232 */
1925way[highway][construction=yes][highway!=construction] {
1926  throwWarning: tr("{0} is deprecated", "{1.tag}");
1927  suggestAlternative: "construction=minor";
1928  suggestAlternative: concat("highway=construction + construction=", "{0.value}");
1929  group: tr("deprecated tagging");
1930}
1931
1932/* #18659 */
1933*[car][amenity=charging_station] {
1934  throwWarning: tr("{0} is deprecated", "{0.key}");
1935  suggestAlternative: "motorcar";
1936  group: tr("deprecated tagging");
1937  fixChangeKey: "car => motorcar";
1938}
1939
1940/* #18767 */
1941*[navigationaid=approach_light],
1942*[navigationaid="ALS (Approach lighting system)"] {
1943  throwWarning: tr("{0} is deprecated", "{0.tag}");
1944  suggestAlternative: "navigationaid=als";
1945  group: tr("deprecated tagging");
1946  fixAdd: "navigationaid=als";
1947}
1948
1949/* #18819 */
1950node[exit_to] {
1951  throwWarning: tr("{0} is deprecated", "{0.key}");
1952  suggestAlternative: "destination";
1953  group: tr("deprecated tagging");
1954}
1955
1956/* #18951 */
1957*[water=riverbank][!natural] {
1958  throwWarning: tr("{0} is deprecated", "{0.tag}");
1959  suggestAlternative: "natural=water + water=river";
1960  group: tr("deprecated tagging");
1961  fixAdd: "water=river";
1962  fixAdd: "natural=water";
1963}
1964*[water=riverbank][natural] {
1965  throwWarning: tr("{0} is deprecated", "{0.tag}");
1966  suggestAlternative: "natural=water + water=river";
1967  group: tr("deprecated tagging");
1968}
1969
1970node[amenity=bench][capacity][!seats],
1971way[amenity=bench][capacity][!seats] {
1972  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1973  suggestAlternative: "seats";
1974  group: tr("deprecated tagging");
1975  fixChangeKey: "capacity => seats";
1976}
1977node[amenity=bench][capacity][seats],
1978way[amenity=bench][capacity][seats] {
1979  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1980  suggestAlternative: "seats";
1981  group: tr("deprecated tagging");
1982}
1983
1984/* #19396 */
1985way[stream=intermittent] {
1986  throwWarning: tr("{0} is deprecated", "{0.tag}");
1987  suggestAlternative: "intermittent=yes";
1988  suggestAlternative: "seasonal=yes";
1989  group: tr("deprecated tagging");
1990}
1991
1992*[shop=lamps] {
1993  throwWarning: tr("{0} is deprecated", "{0.tag}");
1994  suggestAlternative: "shop=lighting";
1995  group: tr("deprecated tagging");
1996  fixAdd: "shop=lighting";
1997}
1998
1999/* #19180 */
2000*[access=customer] {
2001  throwWarning: tr("{0} is deprecated", "{0.tag}");
2002  suggestAlternative: "access=customers";
2003  group: tr("deprecated tagging");
2004  fixAdd: "access=customers";
2005}
2006*[addr:inclusion=estimated] {
2007  throwWarning: tr("{0} is deprecated", "{0.tag}");
2008  suggestAlternative: "addr:inclusion=estimate";
2009  group: tr("deprecated tagging");
2010  fixAdd: "addr:inclusion=estimate";
2011}
2012*[building=apartment] {
2013  throwWarning: tr("{0} is deprecated", "{0.tag}");
2014  suggestAlternative: "building=apartments";
2015  group: tr("deprecated tagging");
2016  fixAdd: "building=apartments";
2017}
2018node[lamp_mount="bent mast"] {
2019  throwWarning: tr("{0} is deprecated", "{0.tag}");
2020  suggestAlternative: "lamp_mount=bent_mast";
2021  group: tr("deprecated tagging");
2022  fixAdd: "lamp_mount=bent_mast";
2023}
2024node[lamp_mount="straight mast"] {
2025  throwWarning: tr("{0} is deprecated", "{0.tag}");
2026  suggestAlternative: "lamp_mount=straight_mast";
2027  group: tr("deprecated tagging");
2028  fixAdd: "lamp_mount=straight_mast";
2029}
2030node[lamp_type=electrical] {
2031  throwWarning: tr("{0} is deprecated", "{0.tag}");
2032  suggestAlternative: "lamp_type=electric";
2033  group: tr("deprecated tagging");
2034  fixAdd: "lamp_type=electric";
2035}
2036*[generator:type=solar_photovoltaic_panels] {
2037  throwWarning: tr("{0} is deprecated", "{0.tag}");
2038  suggestAlternative: "generator:type=solar_photovoltaic_panel";
2039  group: tr("deprecated tagging");
2040  fixAdd: "generator:type=solar_photovoltaic_panel";
2041}
2042*[building=part] {
2043  throwWarning: tr("{0} is deprecated", "{0.tag}");
2044  suggestAlternative: "building:part=yes";
2045  group: tr("deprecated tagging");
2046  /* without autofix, it is not clear if a building or a building part is mapped */
2047}
2048
2049/* When tags are deprecated they should be added to ignoretags.cfg too. */
Note: See TracBrowser for help on using the repository browser.