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

Last change on this file was 17593, checked in by simon04, 4 weeks ago

see #20613 - Split KeyCondition/KeyRegexpCondition

Rewrite patterns for prefix/substring/suffix checks.

5.75->2.93% of allocations in MapCSSTagCheckerPerformanceTest.testCity relate to Pattern matching.

  • Property svn:eol-style set to native
File size: 69.1 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
32/* from http://wiki.openstreetmap.org/wiki/Deprecated_features */ 
33way[class] {
34  throwWarning: tr("{0} is deprecated", "{0.key}");
35  suggestAlternative: "highway";
36  group: tr("deprecated tagging");
37}
38*[highway=stile] {
39  throwWarning: tr("{0} is deprecated", "{0.tag}");
40  suggestAlternative: "barrier=stile";
41  group: tr("deprecated tagging");
42  fixRemove: "highway";
43  fixAdd: "barrier=stile";
44}
45*[highway=incline] {
46  throwWarning: tr("{0} is deprecated", "{0.tag}");
47  suggestAlternative: "incline";
48  group: tr("deprecated tagging");
49}
50*[highway=incline_steep] {
51  throwWarning: tr("{0} is deprecated", "{0.tag}");
52  suggestAlternative: "incline";
53  group: tr("deprecated tagging");
54}
55*[highway=unsurfaced] {
56  throwWarning: tr("{0} is deprecated", "{0.tag}");
57  suggestAlternative: "highway=* + surface=unpaved";
58  group: tr("deprecated tagging");
59  fixAdd: "highway=road";
60  fixAdd: "surface=unpaved";
61}
62*[landuse=wood] {
63  throwWarning: tr("{0} is deprecated", "{0.tag}");
64  suggestAlternative: "landuse=forest";
65  suggestAlternative: "natural=wood";
66  group: tr("deprecated tagging");
67}
68*[natural=marsh] {
69  throwWarning: tr("{0} is deprecated", "{0.tag}");
70  suggestAlternative: "natural=wetland + wetland=marsh";
71  group: tr("deprecated tagging");
72  fixAdd: "natural=wetland";
73  fixAdd: "wetland=marsh";
74}
75*[highway=byway] {
76  throwWarning: tr("{0} is deprecated", "{0.tag}");
77  group: tr("deprecated tagging");
78}
79*[power_source] {
80  throwWarning: tr("{0} is deprecated", "{0.key}");
81  suggestAlternative: "generator:source";
82  group: tr("deprecated tagging");
83}
84*[power_rating] {
85  throwWarning: tr("{0} is deprecated", "{0.key}");
86  suggestAlternative: "generator:output";
87  group: tr("deprecated tagging");
88}
89
90*[shop=antique] {
91  throwWarning: tr("{0} is deprecated", "{0.tag}");
92  suggestAlternative: "shop=antiques";
93  group: tr("deprecated tagging");
94  fixAdd: "shop=antiques";
95}
96
97*[shop=bags] {
98  throwWarning: tr("{0} is deprecated", "{0.tag}");
99  suggestAlternative: "shop=bag";
100  group: tr("deprecated tagging");
101  fixAdd: "shop=bag";
102}
103
104/* #17527 */
105*[shop=fashion] {
106  throwWarning: tr("{0} is deprecated", "{0.tag}");
107  suggestAlternative: "shop=clothes";
108  group: tr("deprecated tagging");
109  fixAdd: "shop=clothes";
110}
111
112*[shop=organic] {
113  throwWarning: tr("{0} is deprecated", "{0.tag}");
114  suggestAlternative: "shop=* + organic=yes";
115  suggestAlternative: "shop=* + organic=only";
116  group: tr("deprecated tagging");
117}
118
119*[shop=pets] {
120  throwWarning: tr("{0} is deprecated", "{0.tag}");
121  suggestAlternative: "shop=pet";
122  group: tr("deprecated tagging");
123  fixAdd: "shop=pet";
124}
125
126*[shop=pharmacy] {
127  throwWarning: tr("{0} is deprecated", "{0.tag}");
128  suggestAlternative: "amenity=pharmacy";
129  group: tr("deprecated tagging");
130  fixChangeKey: "shop => amenity";
131}
132
133*[bicycle_parking=sheffield] {
134  throwWarning: tr("{0} is deprecated", "{0.tag}");
135  suggestAlternative: "bicycle_parking=stands";
136  group: tr("deprecated tagging");
137  fixAdd: "bicycle_parking=stands";
138}
139
140*[amenity=emergency_phone] {
141  throwWarning: tr("{0} is deprecated", "{0.tag}");
142  suggestAlternative: "emergency=phone";
143  group: tr("deprecated tagging");
144  fixRemove: "amenity";
145  fixAdd: "emergency=phone";
146}
147 
148/* #8132 */ 
149*[sport=gaelic_football] {
150  throwWarning: tr("{0} is deprecated", "{0.tag}");
151  suggestAlternative: "sport=gaelic_games";
152  group: tr("deprecated tagging");
153  fixAdd: "sport=gaelic_games";
154}
155
156/* #8847, #8961 */ 
157*[power=station] {
158  throwWarning: tr("{0} is deprecated", "{0.tag}");
159  suggestAlternative: "power=plant";
160  suggestAlternative: "power=substation";
161  group: tr("deprecated tagging");
162}
163
164*[power=sub_station] {
165  throwWarning: tr("{0} is deprecated", "{0.tag}");
166  suggestAlternative: "power=substation";
167  group: tr("deprecated tagging");
168  fixAdd: "power=substation";
169}
170
171*[location=rooftop] {
172  throwWarning: tr("{0} is deprecated", "{0.tag}");
173  suggestAlternative: "location=roof";
174  group: tr("deprecated tagging");
175  fixAdd: "location=roof";
176}
177
178*[generator:location] {
179  throwWarning: tr("{0} is deprecated", "{0.key}");
180  suggestAlternative: "location";
181  group: tr("deprecated tagging");
182  fixChangeKey: "generator:location => location";
183}
184
185*[generator:method=dam] {
186  throwWarning: tr("{0} is deprecated", "{0.tag}");
187  suggestAlternative: "generator:method=water-storage";
188  group: tr("deprecated tagging");
189  fixAdd: "generator:method=water-storage";
190}
191
192*[generator:method=pumped-storage] {
193  throwWarning: tr("{0} is deprecated", "{0.tag}");
194  suggestAlternative: "generator:method=water-pumped-storage";
195  group: tr("deprecated tagging");
196  fixAdd: "generator:method=water-pumped-storage";
197}
198
199*[generator:method=pumping] {
200  throwWarning: tr("{0} is deprecated", "{0.tag}");
201  suggestAlternative: "generator:method=water-pumped-storage";
202  group: tr("deprecated tagging");
203  fixAdd: "generator:method=water-pumped-storage";
204}
205
206/* #8962 */ 
207*[fence_type=chain] {
208  throwWarning: tr("{0} is deprecated", "{0.tag}");
209  suggestAlternative: "barrier=chain";
210  suggestAlternative: "barrier=fence + fence_type=chain_link";
211  group: tr("deprecated tagging");
212}
213
214/* #9000 */ 
215*[building=entrance] {
216  throwWarning: tr("{0} is deprecated", "{0.tag}");
217  suggestAlternative: "entrance";
218  group: tr("deprecated tagging");
219}
220
221/* #9213 */ 
222*[board_type=board] {
223  throwWarning: tr("{0} is deprecated", "{0.tag}");
224  group: tr("deprecated tagging");
225  fixRemove: "board_type";
226}
227
228/* #8434 */
229*[man_made=measurement_station] {
230  throwWarning: tr("{0} is deprecated", "{0.tag}");
231  suggestAlternative: "man_made=monitoring_station";
232  group: tr("deprecated tagging");
233  fixAdd: "man_made=monitoring_station";
234}
235
236*[measurement=water_level] {
237  throwWarning: tr("{0} is deprecated", "{0.tag}");
238  suggestAlternative: "monitoring:water_level=yes";
239  group: tr("deprecated tagging");
240  fixRemove: "measurement";
241  fixAdd: "monitoring:water_level=yes";
242}
243
244*[measurement=weather] {
245  throwWarning: tr("{0} is deprecated", "{0.tag}");
246  suggestAlternative: "monitoring:weather=yes";
247  group: tr("deprecated tagging");
248  fixRemove: "measurement";
249  fixAdd: "monitoring:weather=yes";
250}
251
252*[measurement=seismic] {
253  throwWarning: tr("{0} is deprecated", "{0.tag}");
254  suggestAlternative: "monitoring:seismic_activity=yes";
255  group: tr("deprecated tagging");
256  fixRemove: "measurement";
257  fixAdd: "monitoring:seismic_activity=yes";
258}
259
260*[monitoring:river_level] {
261  throwWarning: tr("{0} is deprecated", "{0.key}");
262  suggestAlternative: "monitoring:water_level";
263  group: tr("deprecated tagging");
264  fixChangeKey: "monitoring:river_level => monitoring:water_level";
265}
266
267*[stay] {
268  throwWarning: tr("{0} is deprecated", "{0.key}");
269  suggestAlternative: "maxstay";
270  group: tr("deprecated tagging");
271  fixChangeKey: "stay => maxstay";
272}
273
274/* #9554 */
275*[emergency=aed] {
276  throwWarning: tr("{0} is deprecated", "{0.tag}");
277  suggestAlternative: "emergency=defibrillator";
278  group: tr("deprecated tagging");
279  fixAdd: "emergency=defibrillator";
280}
281
282/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
283*[day_on][!restriction],
284*[day_off][!restriction],
285*[date_on][!restriction],
286*[date_off][!restriction],
287*[hour_on][!restriction],
288*[hour_off][!restriction] {
289  throwWarning: tr("{0} is deprecated", "{0.key}");
290  suggestAlternative: "*:conditional";
291  group: tr("deprecated tagging");
292  assertMatch: "node day_on=0-12";
293}
294
295/* #10000 */
296*[access=designated] {
297  throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
298  assertMatch: "way access=designated";
299}
300*[access=official] {
301  throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
302  assertMatch: "way access=official";
303}
304
305/* #10085 */
306*[fixme=yes], *[FIXME=yes] {
307  throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
308  assertMatch: "way fixme=yes";
309}
310
311*[name][name=~/^(?i)fixme$/] {
312  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}");
313  fixRemove: "name";
314  assertMatch: "node name=fixme";
315  assertMatch: "node name=Fixme";
316  assertMatch: "node name=FIXME";
317  assertNoMatch: "node name=valid name";
318}
319
320*[note][note=~/^(?i)fixme$/] {
321  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}");
322}
323
324/* #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
325*[type=broad_leaved],
326*[type=broad_leafed] {
327  throwWarning: tr("{0} is deprecated", "{0.tag}");
328  suggestAlternative: "leaf_type=broadleaved";
329  group: tr("deprecated tagging");
330  fixRemove: "{0.key}";
331  fixAdd: "leaf_type=broadleaved";
332}
333*[wood=coniferous],
334*[type=coniferous],
335*[type=conifer] {
336  throwWarning: tr("{0} is deprecated", "{0.tag}");
337  suggestAlternative: "leaf_type=needleleaved";
338  group: tr("deprecated tagging");
339  fixRemove: "{0.key}";
340  fixAdd: "leaf_type=needleleaved";
341}
342*[wood=mixed] {
343  throwWarning: tr("{0} is deprecated", "{0.tag}");
344  suggestAlternative: "leaf_type=mixed";
345  group: tr("deprecated tagging");
346  fixRemove: "wood";
347  fixAdd: "leaf_type=mixed";
348}
349*[wood=evergreen],
350*[type=evergreen] {
351  throwWarning: tr("{0} is deprecated", "{0.tag}");
352  suggestAlternative: "leaf_cycle=evergreen";
353  group: tr("deprecated tagging");
354  fixRemove: "{0.key}";
355  fixAdd: "leaf_cycle=evergreen";
356}
357*[type=deciduous],
358*[type=deciduos] {
359  throwWarning: tr("{0} is deprecated", "{0.tag}");
360  suggestAlternative: "leaf_cycle=deciduous";
361  group: tr("deprecated tagging");
362  fixRemove: "type";
363  fixAdd: "leaf_cycle=deciduous";
364}
365*[wood=deciduous] {
366  throwWarning: tr("{0} is deprecated", "{0.tag}");
367  suggestAlternative: "leaf_type + leaf_cycle";
368  group: tr("deprecated tagging");
369}
370node[type=palm],
371way[type=palm] {
372  throwWarning: tr("{0} is deprecated", "{0.tag}");
373  suggestAlternative: "leaf_type";
374  suggestAlternative: "trees";
375  suggestAlternative: "species";
376  group: tr("deprecated tagging");
377}
378
379*[natural=land] {
380  throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
381  group: tr("deprecated tagging");
382  assertMatch: "way natural=land";
383}
384
385/* #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
386*[bridge=causeway] {
387  throwWarning: tr("{0} is deprecated", "{0.tag}");
388  suggestAlternative: "ford=yes";
389  suggestAlternative: "bridge=low_water_crossing";
390  suggestAlternative: "embankment=yes";
391  group: tr("deprecated tagging");
392}
393*[bridge=swing] {
394  throwWarning: tr("{0} is deprecated", "{0.tag}");
395  suggestAlternative: "bridge:movable=swing";
396  suggestAlternative: "bridge:structure=simple-suspension";
397  group: tr("deprecated tagging");
398}
399*[bridge=suspension] {
400  throwWarning: tr("{0} is deprecated", "{0.tag}");
401  suggestAlternative: "bridge=yes + bridge:structure=suspension";
402  group: tr("deprecated tagging");
403  fixAdd: "bridge=yes";
404  fixAdd: "bridge:structure=suspension";
405}
406*[bridge=pontoon] {
407  throwWarning: tr("{0} is deprecated", "{0.tag}");
408  suggestAlternative: "bridge=yes + bridge:structure=floating";
409  group: tr("deprecated tagging");
410  fixAdd: "bridge=yes";
411  fixAdd: "bridge:structure=floating";
412}
413
414/* #10530 - Incorrect tag proposed in internal preset for years */
415*[fee=interval],
416*[lit=interval],
417*[supervised=interval] {
418  throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
419  group: tr("deprecated tagging");
420}
421
422/* #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
423*[/josm\/ignore/] {
424  throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
425  group: tr("deprecated tagging");
426  fixDeleteObject: this;
427}
428
429/* #8281 */
430*[sport=diving] {
431  throwWarning: tr("{0} is deprecated", "{0.tag}");
432  suggestAlternative: "sport=scuba_diving";
433  suggestAlternative: "sport=cliff_diving";
434  group: tr("deprecated tagging");
435}
436
437/* #8281 */
438*[parking=park_and_ride] {
439  throwWarning: tr("{0} is deprecated", "{0.tag}");
440  suggestAlternative: "amenity=parking + park_ride=yes";
441  group: tr("deprecated tagging");
442  fixRemove: "parking";
443  fixAdd: "amenity=parking";
444  fixAdd: "park_ride=yes";
445}
446
447/* #19287, #18334, #17950, #10661, #10837, #11737, #12771 */
448*[playground=yes],
449*[manhole=plain],
450*[manhole=unknown],
451*[manhole=yes],
452*[police=yes],
453*[traffic_calming=yes],
454*[access=restricted],
455*[barrier=yes],
456*[aerialway=yes][!public_transport],
457*[amenity=yes],
458*[leisure=yes],
459*[shop="*"],
460*[shop=yes][amenity!=fuel],
461*[craft=yes],
462*[service=yes],
463*[place=yes] {
464  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
465}
466
467/* #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
468*[place_name][!name] {
469  throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
470  fixChangeKey: "place_name => name";
471}
472*[place][place_name = *name] {
473  throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
474  fixRemove: "{1.key}";
475}
476
477way[sidewalk=yes] {
478  throwWarning: tr("{0} is unspecific", "{0.tag}");
479  suggestAlternative: "sidewalk=left";
480  suggestAlternative: "sidewalk=right";
481  suggestAlternative: "sidewalk=both";
482  suggestAlternative: "sidewalk=separate";
483}
484
485*[waterway=water_point] {
486  throwWarning: tr("{0} is deprecated", "{0.tag}");
487  suggestAlternative: "amenity=water_point";
488  group: tr("deprecated tagging");
489  fixChangeKey: "waterway => amenity";
490}
491*[waterway=waste_disposal] {
492  throwWarning: tr("{0} is deprecated", "{0.tag}");
493  suggestAlternative: "amenity=waste_disposal";
494  group: tr("deprecated tagging");
495  fixChangeKey: "waterway => amenity";
496}
497*[waterway=mooring] {
498  throwWarning: tr("{0} is deprecated", "{0.tag}");
499  suggestAlternative: "mooring=yes";
500  group: tr("deprecated tagging");
501  fixRemove: "waterway";
502  fixAdd: "mooring=yes";
503}
504
505/* #10837 */
506*[building][levels],
507*[building:part=yes][levels] {
508  throwWarning: tr("{0} is deprecated", "{1.key}");
509  suggestAlternative: "building:levels";
510  group: tr("deprecated tagging");
511  fixChangeKey: "levels => building:levels";
512}
513
514/* #10691 */
515*[protected_class] {
516  throwWarning: tr("{0} is deprecated", "{0.key}");
517  suggestAlternative: "protect_class";
518  group: tr("deprecated tagging");
519  fixChangeKey: "protected_class => protect_class";
520}
521
522/* #11070 */
523*[kerb=unknown],
524*[lock=unknown],
525*[hide=unknown],
526*[shelter=unknown],
527*[access=unknown],
528*[capacity:parent=unknown],
529*[capacity:women=unknown],
530*[capacity:disabled=unknown],
531*[crossing=unknown],
532*[foot=unknown] {
533  throwWarning: tr("Unspecific tag {0}", "{0.tag}");
534}
535
536/* #11183 */
537*[sport=skiing] {
538  throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
539  suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
540  group: tr("deprecated tagging");
541}
542
543/* #11223 */
544*[waterway=wadi] {
545  throwWarning: tr("{0} is deprecated", "{0.tag}");
546  suggestAlternative: "{0.key}=* + intermittent=yes";
547  suggestAlternative: "natural=valley";
548  group: tr("deprecated tagging");
549}
550
551/* #10346 */
552way[oneway=1] {
553  throwWarning: tr("{0} is deprecated", "{0.tag}");
554  suggestAlternative: "oneway=yes";
555  group: tr("deprecated tagging");
556  fixAdd: "oneway=yes";
557}
558
559/* #11329 */
560way[oneway=-1] {
561  throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
562}
563
564*[drinkable] {
565  throwWarning: tr("{0} is deprecated", "{0.key}");
566  suggestAlternative: "drinking_water";
567  group: tr("deprecated tagging");
568}
569
570/* #10329, #15877 */
571  /* simple key change */
572*[color][!colour] {
573  throwWarning: tr("{0} is deprecated", "{0.key}");
574  suggestAlternative: "colour";
575  group: tr("deprecated tagging");
576  fixChangeKey: "color => colour";
577  assertMatch: "way color=red";
578  assertNoMatch: "way color=red colour=red";
579}
580area[building:color][!building:colour] {
581  throwWarning: tr("{0} is deprecated", "{0.key}");
582  suggestAlternative: "building:colour";
583  group: tr("deprecated tagging");
584  fixChangeKey: "building:color => building:colour";
585  assertMatch: "way building:color=red";
586  assertNoMatch: "way building:color=red building:colour=red";
587}
588area[roof:color][!roof:colour] {
589  throwWarning: tr("{0} is deprecated", "{0.key}");
590  suggestAlternative: "roof:colour";
591  group: tr("deprecated tagging");
592  fixChangeKey: "roof:color => roof:colour";
593  assertMatch: "way roof:color=red";
594  assertNoMatch: "way roof:color=red roof:colour=red";
595}
596  /* both tags with same value, remove color */
597*[color][colour][color=*colour] {
598  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
599  suggestAlternative: "colour";
600  group: tr("deprecated tagging");
601  set samecolor;
602  fixRemove: "color";
603  assertMatch: "way color=red colour=red";
604  assertNoMatch: "way color=red colour=green";
605}
606area[building:color][building:colour]["building:color"=*"building:colour"] {
607  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
608  suggestAlternative: "building:colour";
609  group: tr("deprecated tagging");
610  set samebuildingcolor;
611  fixRemove: "building:color";
612  assertMatch: "way building:color=red building:colour=red";
613  assertNoMatch: "way building:color=red building:colour=green";
614}
615area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
616  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
617  suggestAlternative: "roof:colour";
618  group: tr("deprecated tagging");
619  set sameroofcolor;
620  fixRemove: "roof:color";
621  assertMatch: "way roof:color=red roof:colour=red";
622  assertNoMatch: "way roof:color=red roof:colour=green";
623}
624  /* both tags with different values, no autofix */
625*[color][colour]!.samecolor {
626  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
627  suggestAlternative: "colour";
628  group: tr("deprecated tagging");
629  assertNoMatch: "way color=red colour=red";
630  assertMatch: "way color=red colour=green";
631}
632*[building:color][building:colour]!.samebuildingcolor {
633  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
634  suggestAlternative: "building:colour";
635  group: tr("deprecated tagging");
636  assertNoMatch: "way building:color=red building:colour=red";
637  assertMatch: "way building:color=red building:colour=green";
638}
639*[roof:color][roof:colour]!.sameroofcolor {
640  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
641  suggestAlternative: "roof:colour";
642  group: tr("deprecated tagging");
643  assertNoMatch: "way roof:color=red roof:colour=red";
644  assertMatch: "way roof:color=red roof:colour=green";
645}
646/* further more universal checks, no autofix */
647/* gpxd:color has another warning in unnecessary.mapcss */ 
648*[/:color/][!building:color][!roof:color][!gpxd:color] {
649  throwWarning: tr("{0} is deprecated", "{0.key}");
650  suggestAlternative: ":colour";
651  group: tr("deprecated tagging");
652  assertNoMatch: "way color=red";
653  assertNoMatch: "way roof:color=grey";
654  assertMatch: "way cycleway:surface:color=grey";
655}
656*[/color:/]  {
657  throwWarning: tr("{0} is deprecated", "{0.key}");
658  suggestAlternative: "colour:";
659  group: tr("deprecated tagging");
660  assertNoMatch: "way color=red";
661  assertMatch: "way color:back=grey";
662}
663
664/* #11234 */
665*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
666  throwWarning: tr("{0}", "{0.key}");
667  group: tr("key with uncommon character");
668}
669
670/* #11330, #18642 */
671*[/^.$/],
672node[/^..$/][!kp][!pk],
673way[/^..$/][route=ferry][!to],
674way[/^..$/][route!=ferry],
675relation[/^..$/][!to] {
676  throwWarning: tr("uncommon short key");
677  assertNoMatch: "relation to=Berlin";
678  assertMatch: "relation fo=bar";
679  assertMatch: "way to=bar";
680  assertNoMatch: "way to=Zuidschermer;Akersloot route=ferry";
681  assertMatch: "node fo=bar";
682  assertMatch: "node f=b";
683  assertNoMatch: "node kp=5"; /* already has a deprecated warning */
684  assertNoMatch: "node pk=7"; /* already has a deprecated warning */
685}
686
687/* #11439 */
688*[sport=hockey] {
689  throwWarning: tr("{0} is deprecated", "{0.tag}");
690  suggestAlternative: "sport=field_hockey";
691  suggestAlternative: "sport=ice_hockey";
692  group: tr("deprecated tagging");
693}
694
695/* #11471 */
696*[sport=billard],
697*[sport=billards],
698*[sport=billiard] {
699  throwWarning: tr("{0} is deprecated", "{0.tag}");
700  suggestAlternative: "sport=billiards";
701  group: tr("deprecated tagging");
702  fixAdd: "sport=billiards";
703}
704
705/* #11499, #16928 */
706*[payment:credit_cards=yes] {
707  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");
708}
709*[payment:debit_cards=yes] {
710  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");
711}
712*[payment:electronic_purses=yes] {
713  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");
714}
715*[payment:cryptocurrencies=yes] {
716  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");
717}
718
719/* #16253 */
720*[payment:ep_quick],
721*[payment:ep_cash],
722*[payment:ep_proton],
723*[payment:ep_chipknip] {
724  throwWarning: tr("{0} is deprecated", "{0.key}");
725  group: tr("deprecated tagging");
726  fixRemove: "{0.key}";
727}
728
729/* #8717, #20326 */
730*[kp][railway!=milestone] {
731  throwWarning: tr("{0} is deprecated", "{0.key}");
732  suggestAlternative: "distance";
733  group: tr("deprecated tagging");
734  fixChangeKey: "kp => distance";
735}
736*[pk][railway!=milestone] {
737  throwWarning: tr("{0} is deprecated", "{0.key}");
738  suggestAlternative: "distance";
739  group: tr("deprecated tagging");
740  fixChangeKey: "pk => distance";
741}
742*[kp][railway=milestone] {
743  throwWarning: tr("{0} is deprecated", "{0.key}");
744  suggestAlternative: "railway:position";
745  group: tr("deprecated tagging");
746  fixChangeKey: "kp => railway:position";
747}
748*[pk][railway=milestone] {
749  throwWarning: tr("{0} is deprecated", "{0.key}");
750  suggestAlternative: "railway:position";
751  group: tr("deprecated tagging");
752  fixChangeKey: "pk => railway:position";
753}
754*[distance][railway=milestone] {
755  throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
756  suggestAlternative: "railway:position";
757  group: tr("deprecated tagging");
758  fixChangeKey: "distance => railway:position";
759}
760
761*[postcode] {
762  throwWarning: tr("{0} is deprecated", "{0.key}");
763  suggestAlternative: "addr:postcode";
764  group: tr("deprecated tagging");
765  suggestAlternative: "postal_code";
766}
767
768*[water=intermittent] {
769  throwWarning: tr("{0} is deprecated", "{0.tag}");
770  suggestAlternative: "intermittent=yes";
771  group: tr("deprecated tagging");
772  fixRemove: "water";
773  fixAdd: "intermittent=yes";
774}
775
776/* #10907, #14141 */
777/* 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 */
778way[type][type!=waterway][man_made=pipeline],
779node[type][pipeline=marker] {
780  throwWarning: tr("{0} is deprecated", "{0.key}");
781  suggestAlternative: "substance";
782  group: tr("deprecated tagging");
783  fixChangeKey: "type => substance";
784}
785
786*[landuse=farm] {
787  throwWarning: tr("{0} is deprecated", "{0.tag}");
788  suggestAlternative: "landuse=farmland";
789  suggestAlternative: "landuse=farmyard";
790  group: tr("deprecated tagging");
791}
792
793/* #12135 comment:11 */
794*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
795  throwWarning: tr("{0} is deprecated", "{0.tag}");
796  suggestAlternative: "{1.tag}";
797  group: tr("deprecated tagging");
798  fixRemove: "seamark";
799}
800*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
801  throwWarning: tr("{0} is deprecated", "{0.tag}");
802  suggestAlternative: "{1.tag}";
803  group: tr("deprecated tagging");
804}
805/* #12135 */
806*[landuse=conservation] {
807  throwWarning: tr("{0} is deprecated", "{0.tag}");
808  suggestAlternative: "boundary=protected_area";
809  group: tr("deprecated tagging");
810  fixAdd: "boundary=protected_area";
811  fixRemove: "landuse";
812}
813
814/* #12205 */
815*[amenity=kiosk] {
816  throwWarning: tr("{0} is deprecated", "{0.tag}");
817  suggestAlternative: "shop=kiosk";
818  group: tr("deprecated tagging");
819  fixChangeKey: "amenity => shop";
820}
821*[amenity=shop] {
822  throwWarning: tr("{0} is deprecated", "{0.tag}");
823  suggestAlternative: "shop=*";
824  group: tr("deprecated tagging");
825}
826*[shop=fishmonger] {
827  throwWarning: tr("{0} is deprecated", "{0.tag}");
828  suggestAlternative: "shop=seafood";
829  group: tr("deprecated tagging");
830  fixAdd: "shop=seafood";
831}
832*[shop=fish] {
833  throwWarning: tr("{0} is deprecated", "{0.tag}");
834  suggestAlternative: "shop=seafood";
835  suggestAlternative: "shop=pet";
836  suggestAlternative: "shop=fishing";
837  group: tr("deprecated tagging");
838}
839*[shop=betting] {
840  throwWarning: tr("{0} is deprecated", "{0.tag}");
841  suggestAlternative: "shop=bookmaker";
842  suggestAlternative: "shop=lottery";
843  suggestAlternative: "amenity=casino";
844  suggestAlternative: "leisure=amusement_arcade";
845  suggestAlternative: "leisure=adult_gaming_centre";
846  suggestAlternative: "amenity=gambling";
847  group: tr("deprecated tagging");
848}
849*[shop=perfume] {
850  throwWarning: tr("{0} is deprecated", "{0.tag}");
851  suggestAlternative: "shop=perfumery";
852  group: tr("deprecated tagging");
853  fixAdd: "shop=perfumery";
854}
855*[amenity=exercise_point] {
856  throwWarning: tr("{0} is deprecated", "{0.tag}");
857  suggestAlternative: "leisure=fitness_station";
858  group: tr("deprecated tagging");
859  fixAdd: "leisure=fitness_station";
860  fixRemove: "amenity";
861}
862*[shop=auto_parts] {
863  throwWarning: tr("{0} is deprecated", "{0.tag}");
864  suggestAlternative: "shop=car_parts";
865  group: tr("deprecated tagging");
866  fixAdd: "shop=car_parts";
867}
868*[amenity=car_repair] {
869  throwWarning: tr("{0} is deprecated", "{0.tag}");
870  suggestAlternative: "shop=car_repair";
871  group: tr("deprecated tagging");
872  fixChangeKey: "amenity => shop";
873}
874
875/* #12311 */
876*[amenity=studio][type=audio],
877*[amenity=studio][type=radio],
878*[amenity=studio][type=television],
879*[amenity=studio][type=video] {
880  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
881  suggestAlternative: "studio";
882  group: tr("deprecated tagging");
883  fixChangeKey: "type => studio";
884}
885
886/* #11507, #12297, #15409 */
887*[power=cable_distribution_cabinet] {
888  throwWarning: tr("{0} is deprecated", "{0.tag}");
889  suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
890  group: tr("deprecated tagging");
891  fixAdd: "man_made=street_cabinet";
892  fixRemove: "power";
893}
894
895/* #16430 */
896*[power][location=kiosk] {
897  throwWarning: tr("{0} is deprecated", "{1.tag}");
898  group: tr("deprecated tagging");
899  fixAdd: "man_made=street_cabinet";
900  fixAdd: "street_cabinet=power";
901  fixRemove: "location";
902}
903
904/* #12276 */
905*[man_made=well] {
906  throwWarning: tr("{0} is deprecated", "{0.tag}");
907  suggestAlternative: "man_made=water_well";
908  suggestAlternative: "man_made=petroleum_well";
909  group: tr("deprecated tagging");
910}
911*[amenity=dog_bin],
912*[amenity=dog_waste_bin] {
913  throwWarning: tr("{0} is deprecated", "{0.tag}");
914  suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
915  group: tr("deprecated tagging");
916  fixAdd: "amenity=waste_basket";
917  fixAdd: "waste=dog_excrement";
918  fixAdd: "vending=excrement_bags";
919}
920*[amenity=artwork] {
921  throwWarning: tr("{0} is deprecated", "{0.tag}");
922  suggestAlternative: "tourism=artwork";
923  group: tr("deprecated tagging");
924  fixAdd: "tourism=artwork";
925  fixRemove: "amenity";
926}
927*[amenity=community_center] {
928  throwWarning: tr("{0} is deprecated", "{0.tag}");
929  suggestAlternative: "amenity=community_centre";
930  group: tr("deprecated tagging");
931  fixAdd: "amenity=community_centre";
932}
933*[man_made=cut_line] {
934  throwWarning: tr("{0} is deprecated", "{0.tag}");
935  suggestAlternative: "man_made=cutline";
936  group: tr("deprecated tagging");
937  fixAdd: "man_made=cutline";
938}
939*[amenity=park] {
940  throwWarning: tr("{0} is deprecated", "{0.tag}");
941  suggestAlternative: "leisure=park";
942  group: tr("deprecated tagging");
943  fixAdd: "leisure=park";
944  fixRemove: "amenity";
945}
946*[amenity=hotel] {
947  throwWarning: tr("{0} is deprecated", "{0.tag}");
948  suggestAlternative: "tourism=hotel";
949  group: tr("deprecated tagging");
950  fixAdd: "tourism=hotel";
951  fixRemove: "amenity";
952}
953*[shop=window],
954*[shop=windows] {
955  throwWarning: tr("{0} is deprecated", "{0.tag}");
956  suggestAlternative: "craft=window_construction";
957  group: tr("deprecated tagging");
958  fixAdd: "craft=window_construction";
959  fixRemove: "shop";
960}
961*[amenity=education] {
962  throwWarning: tr("{0} is deprecated", "{0.tag}");
963  suggestAlternative: "amenity=college";
964  suggestAlternative: "amenity=school";
965  suggestAlternative: "amenity=university";
966  group: tr("deprecated tagging");
967}
968*[shop=gallery] {
969  throwWarning: tr("{0} is deprecated", "{0.tag}");
970  suggestAlternative: "shop=art";
971  group: tr("deprecated tagging");
972  fixAdd: "shop=art";
973}
974*[shop=gambling],
975*[leisure=gambling] {
976  throwWarning: tr("{0} is deprecated", "{0.tag}");
977  suggestAlternative: "shop=bookmaker";
978  suggestAlternative: "shop=lottery";
979  suggestAlternative: "amenity=casino";
980  suggestAlternative: "leisure=amusement_arcade";
981  suggestAlternative: "amenity=gambling";
982  group: tr("deprecated tagging");
983}
984*[office=real_estate],
985*[office=real_estate_agent] {
986  throwWarning: tr("{0} is deprecated", "{0.tag}");
987  suggestAlternative: "office=estate_agent";
988  group: tr("deprecated tagging");
989  fixAdd: "office=estate_agent";
990}
991*[shop=glass] {
992  throwWarning: tr("{0} is deprecated", "{0.tag}");
993  suggestAlternative: "shop=glaziery";
994  suggestAlternative: "craft=glaziery";
995  group: tr("deprecated tagging");
996}
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/* #18517 */
1068*[office=administrative] {
1069  throwWarning: tr("{0} is deprecated", "{0.tag}");
1070  suggestAlternative: "office=government";
1071  group: tr("deprecated tagging");
1072  fixAdd: "office=government";
1073}
1074
1075/* #12708 */
1076*[vending=news_papers] {
1077  throwWarning: tr("{0} is deprecated", "{0.tag}");
1078  suggestAlternative: "vending=newspapers";
1079  group: tr("deprecated tagging");
1080  fixAdd: "vending=newspapers";
1081}
1082
1083/* #12771 */
1084*[service=drive_through] {
1085  throwWarning: tr("{0} is deprecated", "{0.tag}");
1086  suggestAlternative: "service=drive-through";
1087  group: tr("deprecated tagging");
1088  fixAdd: "service=drive-through";
1089}
1090
1091/* #12771, #9895 */
1092*[noexit][noexit!=yes][noexit!=no], /* noexit=no has an own warning */
1093way[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 */
1094way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1095way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1096  throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
1097}
1098
1099/* #13008 */
1100*[name:botanical] {
1101  throwWarning: tr("{0} is deprecated", "{0.key}");
1102  suggestAlternative: "species";
1103  group: tr("deprecated tagging");
1104}
1105
1106/* #11344, #13101, #15480 */
1107node[pole=air_to_ground],
1108node[pole=transition] {
1109  throwWarning: tr("{0} is deprecated", "{0.tag}");
1110  suggestAlternative: "location:transition=yes";
1111  group: tr("deprecated tagging");
1112  fixAdd: "location:transition=yes";
1113  fixRemove: "pole";
1114}
1115node[tower=air_to_ground],
1116node[tower=transition] {
1117  throwWarning: tr("{0} is deprecated", "{0.tag}");
1118  suggestAlternative: "location:transition=yes";
1119  group: tr("deprecated tagging");
1120  fixAdd: "location:transition=yes";
1121  fixRemove: "tower";
1122}
1123
1124/* #13138 */
1125area[landuse=pond] {
1126  throwWarning: tr("{0} is deprecated", "{0.tag}");
1127  suggestAlternative: "natural=water + water=pond";
1128  group: tr("deprecated tagging");
1129  fixAdd: "natural=water";
1130  fixAdd: "water=pond";
1131  fixRemove: "landuse";
1132}
1133
1134*[shop=souvenir],
1135*[shop=souvenirs],
1136*[shop=souveniers] {
1137  throwWarning: tr("{0} is deprecated", "{0.tag}");
1138  suggestAlternative: "shop=gift";
1139  group: tr("deprecated tagging");
1140  fixAdd: "shop=gift";
1141}
1142
1143*[vending=animal_food] {
1144  throwWarning: tr("{0} is deprecated", "{0.tag}");
1145  suggestAlternative: "vending=animal_feed";
1146  group: tr("deprecated tagging");
1147  fixAdd: "vending=animal_feed";
1148}
1149
1150/* #14376 */
1151node[vending=photos][amenity=vending_machine],
1152node[vending=photo][amenity=vending_machine] {
1153  throwWarning: tr("{0} is deprecated", "{0.tag}");
1154  suggestAlternative: "amenity=photo_booth";
1155  group: tr("deprecated tagging");
1156  fixRemove: "vending";
1157  fixAdd: "amenity=photo_booth";
1158
1159}
1160node[vending=photos][amenity!=vending_machine] {
1161  throwWarning: tr("{0} is deprecated", "{0.tag}");
1162  suggestAlternative: "amenity=photo_booth";
1163  group: tr("deprecated tagging");
1164}
1165
1166/* #13653 */
1167node[highway=emergency_access_point][phone][!emergency_telephone_code],
1168way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1169  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1170  suggestAlternative: "emergency_telephone_code";
1171  group: tr("deprecated tagging");
1172  fixChangeKey: "phone => emergency_telephone_code";
1173  assertMatch:   "node highway=emergency_access_point phone=123";
1174  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1175  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1176  assertNoMatch: "node phone=123";
1177}
1178node[highway=emergency_access_point][phone=*emergency_telephone_code],
1179way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1180  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1181  suggestAlternative: "emergency_telephone_code";
1182  group: tr("deprecated tagging");
1183  fixRemove: "phone";
1184  assertNoMatch: "node highway=emergency_access_point phone=123";
1185  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1186  assertMatch:   "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1187}
1188node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1189way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1190  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1191  suggestAlternative: "emergency_telephone_code";
1192  group: tr("deprecated tagging");
1193  assertNoMatch: "node highway=emergency_access_point phone=123";
1194  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1195  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1196}
1197
1198/* #13879 */
1199way[tracktype=1] {
1200  throwError: tr("{0}", "{0.tag}");
1201  suggestAlternative: "tracktype=grade1";
1202  group: tr("misspelled value");
1203  fixAdd: "tracktype=grade1";
1204}
1205way[tracktype=2] {
1206  throwError: tr("{0}", "{0.tag}");
1207  suggestAlternative: "tracktype=grade2";
1208  group: tr("misspelled value");
1209  fixAdd: "tracktype=grade2";
1210}
1211way[tracktype=3] {
1212  throwError: tr("{0}", "{0.tag}");
1213  suggestAlternative: "tracktype=grade3";
1214  group: tr("misspelled value");
1215  fixAdd: "tracktype=grade3";
1216}
1217way[tracktype=4] {
1218  throwError: tr("{0}", "{0.tag}");
1219  suggestAlternative: "tracktype=grade4";
1220  group: tr("misspelled value");
1221  fixAdd: "tracktype=grade4";
1222}
1223way[tracktype=5] {
1224  throwError: tr("{0}", "{0.tag}");
1225  suggestAlternative: "tracktype=grade5";
1226  group: tr("misspelled value");
1227  fixAdd: "tracktype=grade5";
1228}
1229way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1230  throwError: tr("wrong value: {0}", "{0.tag}");
1231  suggestAlternative: "tracktype=grade1";
1232  suggestAlternative: "tracktype=grade2";
1233  suggestAlternative: "tracktype=grade3";
1234  suggestAlternative: "tracktype=grade4";
1235  suggestAlternative: "tracktype=grade5";
1236}
1237
1238area[area][area!=yes][area!=no] {
1239  throwError: tr("wrong value: {0}", "{0.tag}");
1240  suggestAlternative: "area=yes";
1241  suggestAlternative: "area=no";
1242}
1243
1244/* #13953 */
1245*[amenity=hunting_stand][lock=yes],
1246*[amenity=hunting_stand][lock=no] {
1247  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1248  suggestAlternative: "lockable";
1249  group: tr("deprecated tagging");
1250  fixChangeKey: "lock => lockable";
1251}
1252
1253*[amenity=advertising][!advertising] {
1254  throwWarning: tr("{0} is deprecated", "{0.tag}");
1255  suggestAlternative: "advertising=*";
1256  group: tr("deprecated tagging");
1257}
1258*[amenity=advertising][advertising] {
1259  throwWarning: tr("{0} is deprecated", "{0.tag}");
1260  suggestAlternative: "advertising=*";
1261  group: tr("deprecated tagging");
1262  fixRemove: "amenity";
1263}
1264
1265way[direction=up][incline=up],
1266way[direction=down][incline=down],
1267way[direction=up][!incline],
1268way[direction=down][!incline] {
1269  throwWarning: tr("{0} is deprecated", "{0.tag}");
1270  suggestAlternative: "incline";
1271  group: tr("deprecated tagging");
1272  fixChangeKey: "direction => incline";
1273}
1274way[direction=up][incline][incline!=up],
1275way[direction=down][incline][incline!=down] {
1276  throwWarning: tr("{0} is deprecated", "{0.tag}");
1277  suggestAlternative: "incline";
1278  group: tr("deprecated tagging");
1279}
1280
1281*[building=true],
1282*[building="*"],
1283*[building=Y],
1284*[building=y],
1285*[building=1] {
1286  throwError: tr("{0}", "{0.tag}");
1287  suggestAlternative: "building=yes";
1288  group: tr("misspelled value");
1289  fixAdd: "building=yes";
1290}
1291
1292/* #17786, #18612 */
1293*[building=abandoned],
1294*[building=address],
1295*[building=bing],
1296*[building=collapsed],
1297*[building=damaged],
1298*[building=demolished],
1299*[building=disused],
1300*[building=fixme],
1301*[building=occupied],
1302*[building=razed] {
1303  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1304  group: tr("deprecated tagging");
1305}
1306*[building=other],
1307*[building=unclassified],
1308*[building=undefined],
1309*[building=unknown],
1310*[building=unidentified] {
1311  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1312  group: tr("deprecated tagging");
1313  fixAdd: "building=yes";
1314}
1315
1316/* #15675 */
1317node[power=transformer][location=pole][transformer] {
1318  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1319  group: tr("deprecated tagging");
1320  fixChangeKey: "location => power";
1321}
1322node[power=transformer][location=pole][!transformer] {
1323  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1324  group: tr("deprecated tagging");
1325  fixChangeKey: "location => power";
1326  fixAdd: "transformer=yes";
1327}
1328
1329node[tourism=picnic_table],
1330node[amenity=picnic_table],
1331node[leisure=picnic],
1332node[leisure=picnic_site] {
1333  throwWarning: tr("{0} is deprecated", "{0.tag}");
1334  suggestAlternative: "tourism=picnic_site";
1335  suggestAlternative: "leisure=picnic_table";
1336  group: tr("deprecated tagging");
1337}
1338
1339/* #15804 */
1340relation[water=salt],
1341way[water=salt],
1342way[water=salt_pool],
1343way[water=salt_panne],
1344way[water=salt_pond] {
1345  throwWarning: tr("{0} is deprecated", "{0.tag}");
1346  suggestAlternative: "salt=yes";
1347  suggestAlternative: "landuse=salt_pond";
1348  group: tr("deprecated tagging");
1349}
1350
1351/* #15805 */
1352way[water=tidal] {
1353  throwWarning: tr("{0} is deprecated", "{0.tag}");
1354  suggestAlternative: "tidal=yes";
1355  fixAdd: "tidal=yes";
1356  fixRemove: "water";
1357  group: tr("deprecated tagging");
1358}
1359
1360*[amenity=toilet] {
1361  throwError: tr("{0}", "{0.tag}");
1362  suggestAlternative: "amenity=toilets";
1363  group: tr("misspelled value");
1364  fixAdd: "amenity=toilets";
1365}
1366
1367way[power=busbar] {
1368  throwWarning: tr("{0} is deprecated", "{0.tag}");
1369  suggestAlternative: "power=line + line=busbar";
1370  group: tr("deprecated tagging");
1371  fixAdd: "power=line";
1372  fixAdd: "line=busbar";
1373}
1374
1375/* #16924 */
1376*[man_made=MDF],
1377*[man_made=telephone_exchange] {
1378  throwWarning: tr("{0} is deprecated", "{0.tag}");
1379  suggestAlternative: "telecom=exchange";
1380  fixAdd: "telecom=exchange";
1381  fixRemove: "man_made";
1382  group: tr("deprecated tagging");
1383}
1384*[building=central_office] {
1385  throwWarning: tr("{0} is deprecated", "{0.tag}");
1386  suggestAlternative: "telecom=exchange";
1387  fixAdd: "telecom=exchange";
1388  fixAdd: "building=yes";
1389  group: tr("deprecated tagging");
1390}
1391*[telecom=central_office] {
1392  throwWarning: tr("{0} is deprecated", "{0.tag}");
1393  suggestAlternative: "telecom=exchange";
1394  fixAdd: "telecom=exchange";
1395  group: tr("deprecated tagging");
1396}
1397
1398/* #16925 */
1399node[communication=outdoor_dslam],
1400node[man_made=outdoor_dslam],
1401node[street_cabinet=outdoor_dslam] {
1402  throwWarning: tr("{0} is deprecated", "{0.tag}");
1403  suggestAlternative: "telecom=service_device";
1404  fixAdd: "telecom=service_device";
1405  fixRemove: "{0.key}";
1406  group: tr("deprecated tagging");
1407}
1408node[telecom=dslam],
1409node[telecom=outdoor_dslam] {
1410  throwWarning: tr("{0} is deprecated", "{0.tag}");
1411  suggestAlternative: "telecom=service_device";
1412  fixAdd: "telecom=service_device";
1413  group: tr("deprecated tagging");
1414}
1415
1416/* #15774 */
1417node[amenity=fire_hydrant] {
1418  throwWarning: tr("{0} is deprecated", "{0.tag}");
1419  suggestAlternative: "emergency=fire_hydrant";
1420  fixChangeKey: "amenity => emergency";
1421  group: tr("deprecated tagging");
1422}
1423node[fire_hydrant:type=pond] {
1424  throwWarning: tr("{0} is deprecated", "{0.tag}");
1425  suggestAlternative: "water_source=pond";
1426  fixAdd: "water_source=pond";
1427  fixRemove: "{0.key}";
1428  group: tr("deprecated tagging");
1429}
1430node[fire_hydrant:flow_capacity] {
1431  throwWarning: tr("{0} is deprecated", "{0.key}");
1432  suggestAlternative: "flow_rate";
1433  group: tr("deprecated tagging");
1434}
1435node[emergency=fire_hydrant][in_service=no] {
1436  throwWarning: tr("{0} is deprecated", "{1.tag}");
1437  suggestAlternative: "disused:emergency=fire_hydrant";
1438  fixAdd: "disused:emergency=fire_hydrant";
1439  fixRemove: "{1.key}";
1440  fixRemove: "{0.key}";
1441  group: tr("deprecated tagging");
1442}
1443node[fire_hydrant:water_source] {
1444  throwWarning: tr("{0} is deprecated", "{0.key}");
1445  suggestAlternative: "water_source";
1446  fixChangeKey: "fire_hydrant:water_source => water_source";
1447  group: tr("deprecated tagging");
1448}
1449
1450/* #17383 */
1451*[natural=waterfall] {
1452  throwWarning: tr("{0} is deprecated", "{0.tag}");
1453  suggestAlternative: "waterway=waterfall";
1454  fixChangeKey: "natural => waterway";
1455  group: tr("deprecated tagging");
1456}
1457
1458/* #17249 */
1459*[religion=unitarian] {
1460  throwWarning: tr("{0} is deprecated", "{0.tag}");
1461  suggestAlternative: "religion=unitarian_universalist";
1462  fixAdd: "religion=unitarian_universalist";
1463  group: tr("deprecated tagging");
1464}
1465
1466*[shop=shopping_centre] {
1467  throwWarning: tr("{0} is deprecated", "{0.tag}");
1468  suggestAlternative: "shop=mall";
1469  fixAdd: "shop=mall";
1470  group: tr("deprecated tagging");
1471}
1472
1473/* #17504 */
1474*[is_in],
1475node[/^is_in:$/],
1476way[/^is_in:$/] {
1477  throwWarning: tr("{0} is deprecated", "{0.key}");
1478  group: tr("deprecated tagging");
1479  fixRemove: "{0.key}";
1480}
1481
1482/* #17593 */
1483*[sport=football] {
1484  throwWarning: tr("{0} is deprecated", "{0.tag}");
1485  suggestAlternative: "sport=soccer";
1486  suggestAlternative: "sport=american_football";
1487  suggestAlternative: "sport=australian_football";
1488  suggestAlternative: "sport=canadian_football";
1489  suggestAlternative: "sport=rugby_league";
1490  suggestAlternative: "sport=rugby_union";
1491  suggestAlternative: "sport=gaelic_games";
1492  group: tr("deprecated tagging");
1493}
1494
1495/* #17556 */
1496*[leisure=common] {
1497  throwWarning: tr("{0} is deprecated", "{0.tag}");
1498  suggestAlternative: "landuse=*";
1499  suggestAlternative: "leisure=*";
1500  suggestAlternative: "designation=common";
1501  group: tr("deprecated tagging");
1502}
1503
1504/* #17043 */
1505*[cuisine=vegan],
1506*[cuisine=vegetarian] {
1507  throwWarning: tr("{0} is deprecated", "{0.tag}");
1508  suggestAlternative: concat("diet:", "{0.value}", "=yes");
1509  suggestAlternative: concat("diet:", "{0.value}", "=only");
1510  group: tr("deprecated tagging");
1511}
1512
1513/* #17798 */
1514*[kitchen_hours] {
1515  throwWarning: tr("{0} is deprecated", "{0.key}");
1516  suggestAlternative: "opening_hours:kitchen";
1517  fixChangeKey: "kitchen_hours => opening_hours:kitchen";
1518  group: tr("deprecated tagging");
1519}
1520
1521/* #17681 */
1522*[shop=money_transfer] {
1523  throwWarning: tr("{0} is deprecated", "{0.tag}");
1524  suggestAlternative: "amenity=money_transfer";
1525  fixChangeKey: "shop => amenity";
1526  group: tr("deprecated tagging");
1527}
1528
1529*[contact:google_plus] {
1530  throwWarning: tr("{0} is deprecated", "{0.key}");
1531  fixRemove: "contact:google_plus";
1532  group: tr("deprecated tagging");
1533}
1534
1535/* #17370  */
1536*[amenity=garages],
1537*[amenity=garage] {
1538  throwWarning: tr("{0} is deprecated", "{0.tag}");
1539  suggestAlternative: concat("building=", "{0.value}");
1540  suggestAlternative: "landuse=garages";
1541  suggestAlternative: "amenity=parking + parking=garage_boxes";
1542  group: tr("deprecated tagging");
1543}
1544*[shop=winery],
1545*[amenity=winery] {
1546  throwWarning: tr("{0} is deprecated", "{0.tag}");
1547  suggestAlternative: "craft=winery";
1548  suggestAlternative: "shop=wine";
1549  group: tr("deprecated tagging");
1550}
1551*[amenity=youth_centre] {
1552  throwWarning: tr("{0} is deprecated", "{0.tag}");
1553  suggestAlternative: "amenity=community_centre + community_centre=youth_centre";
1554  fixAdd: "amenity=community_centre";
1555  fixAdd: "community_centre=youth_centre";
1556  group: tr("deprecated tagging");
1557}
1558*[building:type][building=yes],
1559*[building:type][!building] {
1560  throwWarning: tr("{0} is deprecated", "{0.key}");
1561  suggestAlternative: "building";
1562  group: tr("deprecated tagging");
1563  fixChangeKey: "building:type => building";
1564  assertMatch: "way building:type=church";
1565  assertMatch: "way building:type=church building=yes";
1566  assertNoMatch: "way building:type=church building=supermarket";
1567}
1568*[building:type][building][building!=yes] {
1569  throwWarning: tr("{0} is deprecated", "{0.key}");
1570  suggestAlternative: "building";
1571  group: tr("deprecated tagging");
1572  assertNoMatch: "way building:type=church";
1573  assertNoMatch: "way building:type=church building=yes";
1574  assertMatch: "way building:type=church building=supermarket";
1575}
1576*[escalator] {
1577  throwWarning: tr("{0} is deprecated", "{0.key}");
1578  suggestAlternative: "highway=steps + conveying=*";
1579  group: tr("deprecated tagging");
1580}
1581*[fenced] {
1582  throwWarning: tr("{0} is deprecated", "{0.key}");
1583  suggestAlternative: "barrier=fence";
1584  group: tr("deprecated tagging");
1585}
1586*[historic_name][!old_name] {
1587  throwWarning: tr("{0} is deprecated", "{0.key}");
1588  suggestAlternative: "old_name";
1589  group: tr("deprecated tagging");
1590  fixChangeKey: "historic_name => old_name";
1591}
1592*[historic_name][old_name] {
1593  throwWarning: tr("{0} is deprecated", "{0.key}");
1594  suggestAlternative: "old_name";
1595  group: tr("deprecated tagging");
1596}
1597*[landuse=field] {
1598  throwWarning: tr("{0} is deprecated", "{0.tag}");
1599  suggestAlternative: "landuse=farmland";
1600  group: tr("deprecated tagging");
1601  fixAdd: "landuse=farmland";
1602}
1603*[leisure=beach] {
1604  throwWarning: tr("{0} is deprecated", "{0.tag}");
1605  suggestAlternative: "natural=beach";
1606  suggestAlternative: "leisure=beach_resort";
1607  group: tr("deprecated tagging");
1608}
1609*[leisure=club] {
1610  throwWarning: tr("{0} is deprecated", "{0.tag}");
1611  suggestAlternative: "club=*";
1612  group: tr("deprecated tagging");
1613}
1614*[leisure=video_arcade] {
1615  throwWarning: tr("{0} is deprecated", "{0.tag}");
1616  suggestAlternative: "leisure=amusement_arcade";
1617  suggestAlternative: "leisure=adult_gaming_centre";
1618  group: tr("deprecated tagging");
1619}
1620*[man_made=jetty] {
1621  throwWarning: tr("{0} is deprecated", "{0.tag}");
1622  suggestAlternative: "man_made=pier";
1623  group: tr("deprecated tagging");
1624  fixAdd: "man_made=pier";
1625}
1626*[man_made=village_pump] {
1627  throwWarning: tr("{0} is deprecated", "{0.tag}");
1628  suggestAlternative: "man_made=water_well";
1629  group: tr("deprecated tagging");
1630  fixAdd: "man_made=water_well";
1631}
1632*[man_made=water_tank] {
1633  throwWarning: tr("{0} is deprecated", "{0.tag}");
1634  suggestAlternative: "man_made=storage_tank + content=water";
1635  group: tr("deprecated tagging");
1636  fixAdd: "man_made=storage_tank";
1637  fixAdd: "content=water";
1638}
1639*[natural=moor] {
1640  throwWarning: tr("{0} is deprecated", "{0.tag}");
1641  suggestAlternative: "natural=heath";
1642  suggestAlternative: "natural=scrub";
1643  suggestAlternative: "natural=grassland";
1644  suggestAlternative: "natural=wetland";
1645  suggestAlternative: "natural=fell";
1646  suggestAlternative: "natural=tundra";
1647  suggestAlternative: "landuse=meadow + meadow=agricultural";
1648  group: tr("deprecated tagging");
1649}
1650*[noexit=no][!fixme] {
1651  throwWarning: tr("{0} is deprecated", "{0.tag}");
1652  suggestAlternative: "fixme=continue";
1653  group: tr("deprecated tagging");
1654  fixAdd: "fixme=continue";
1655  fixRemove: "noexit";
1656}
1657*[noexit=no][fixme] {
1658  throwWarning: tr("{0} is deprecated", "{0.tag}");
1659  suggestAlternative: "fixme=continue";
1660  group: tr("deprecated tagging");
1661}
1662*[shop=dive] {
1663  throwWarning: tr("{0} is deprecated", "{0.tag}");
1664  suggestAlternative: "shop=scuba_diving";
1665  group: tr("deprecated tagging");
1666  fixAdd: "shop=scuba_diving";
1667}
1668*[shop=furnace] {
1669  throwWarning: tr("{0} is deprecated", "{0.tag}");
1670  suggestAlternative: "shop=fireplace";
1671  suggestAlternative: "craft=plumber";
1672  group: tr("deprecated tagging");
1673}
1674*[sport=paragliding] {
1675  throwWarning: tr("{0} is deprecated", "{0.tag}");
1676  suggestAlternative: "sport=free_flying";
1677  group: tr("deprecated tagging");
1678  fixAdd: "sport=free_flying";
1679}
1680*[tourism=bed_and_breakfast] {
1681  throwWarning: tr("{0} is deprecated", "{0.tag}");
1682  suggestAlternative: "tourism=guest_house + guest_house=bed_and_breakfast";
1683  group: tr("deprecated tagging");
1684  fixAdd: "tourism=guest_house";
1685  fixAdd: "guest_house=bed_and_breakfast";
1686}
1687
1688/* #17880 */
1689*[diaper=yes],
1690*[diaper=no] {
1691  throwWarning: tr("{0} is deprecated", "{0.tag}");
1692  suggestAlternative: concat("changing_table=", "{0.value}");
1693  group: tr("deprecated tagging");
1694  fixChangeKey: "diaper => changing_table";
1695  set diaper_checked;
1696}
1697*[diaper][diaper =~ /^[1-9][0-9]*$/] {
1698  throwWarning: tr("{0} is deprecated", "{0.tag}");
1699  suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}");
1700  group: tr("deprecated tagging");
1701  fixChangeKey: "diaper => changing_table:count";
1702  fixAdd: "changing_table=yes";
1703  set diaper_checked;
1704}
1705*[diaper=room] {
1706  throwWarning: tr("{0} is deprecated", "{0.tag}");
1707  suggestAlternative: "changing_table=room";
1708  suggestAlternative: "changing_table=dedicated_room";
1709  group: tr("deprecated tagging");
1710  set diaper_checked;
1711}
1712*[diaper]!.diaper_checked {
1713  throwWarning: tr("{0} is deprecated", "{0.key}");
1714  suggestAlternative: "changing_table";
1715  group: tr("deprecated tagging");
1716}
1717*[diaper:male=yes] {
1718  throwWarning: tr("{0} is deprecated", "{0.tag}");
1719  suggestAlternative: "changing_table:location=male_toilet";
1720  group: tr("deprecated tagging");
1721  fixAdd: "changing_table:location=male_toilet";
1722  fixRemove: "diaper:male";
1723  set diaper___checked;
1724}
1725*[diaper:female=yes] {
1726  throwWarning: tr("{0} is deprecated", "{0.tag}");
1727  suggestAlternative: "changing_table:location=female_toilet";
1728  group: tr("deprecated tagging");
1729  fixAdd: "changing_table:location=female_toilet";
1730  fixRemove: "diaper:female";
1731  set diaper___checked;
1732}
1733*[diaper:unisex=yes] {
1734  throwWarning: tr("{0} is deprecated", "{0.tag}");
1735  suggestAlternative: "changing_table:location=unisex_toilet";
1736  group: tr("deprecated tagging");
1737  fixAdd: "changing_table:location=unisex_toilet";
1738  fixRemove: "diaper:unisex";
1739  set diaper___checked;
1740}
1741*[diaper:wheelchair=yes],
1742*[diaper:wheelchair=no] {
1743  throwWarning: tr("{0} is deprecated", "{0.tag}");
1744  suggestAlternative: concat("changing_table:wheelchair=", "{0.value}");
1745  group: tr("deprecated tagging");
1746  fixChangeKey: "diaper:wheelchair => changing_table:wheelchair";
1747  set diaper___checked;
1748}
1749*[diaper:fee=yes],
1750*[diaper:fee=no] {
1751  throwWarning: tr("{0} is deprecated", "{0.tag}");
1752  suggestAlternative: concat("changing_table:fee=", "{0.value}");
1753  group: tr("deprecated tagging");
1754  fixChangeKey: "diaper:fee => changing_table:fee";
1755  set diaper___checked;
1756}
1757*[/^diaper:/]!.diaper___checked {
1758  throwWarning: tr("{0} is deprecated", "diaper:*");
1759  suggestAlternative: "changing_table:*";
1760  group: tr("deprecated tagging");
1761}
1762*[changing_table][changing_table!~/^(yes|no|limited)$/] {
1763  throwWarning: tr("wrong value: {0}", "{0.tag}");
1764  suggestAlternative: "changing_table=yes";
1765  suggestAlternative: "changing_table=no";
1766  suggestAlternative: "changing_table=limited";
1767}
1768
1769/* #17990 */
1770*[roof:shape=half_hipped] {
1771  throwWarning: tr("{0} is deprecated", "{0.tag}");
1772  suggestAlternative: "roof:shape=half-hipped";
1773  group: tr("deprecated tagging");
1774  fixAdd: "roof:shape=half-hipped";
1775}
1776
1777/* #18003 */
1778*[bridge_name] {
1779  throwWarning: tr("{0} is deprecated", "{0.key}");
1780  suggestAlternative: "bridge:name";
1781  group: tr("deprecated tagging");
1782  fixChangeKey: "bridge_name => bridge:name";
1783}
1784
1785/* #18007 */
1786*[access=public] {
1787  throwWarning: tr("{0} is deprecated", "{0.tag}");
1788  suggestAlternative: "access=yes";
1789  group: tr("deprecated tagging");
1790  fixAdd: "access=yes";
1791}
1792
1793/* #17330 */
1794*[crossing=island] {
1795  throwWarning: tr("{0} is deprecated", "{0.tag}");
1796  suggestAlternative: "crossing:island=yes";
1797  group: tr("deprecated tagging");
1798  fixRemove: "crossing";
1799  fixAdd: "crossing:island=yes";
1800}
1801
1802/* #18152 */
1803*[recycling:metal] {
1804  throwWarning: tr("{0} is deprecated", "{0.key}");
1805  suggestAlternative: "recycling:scrap_metal";
1806  group: tr("deprecated tagging");
1807  fixChangeKey: "recycling:metal => recycling:scrap_metal";
1808}
1809
1810/* #18154 */
1811*[shop=dog_grooming] {
1812  throwWarning: tr("{0} is deprecated", "{0.tag}");
1813  suggestAlternative: "shop=pet_grooming";
1814  fixAdd: "shop=pet_grooming";
1815  group: tr("deprecated tagging");
1816}
1817
1818/* #17984, #19383 */
1819*[tower:type=anchor],
1820*[tower:type=suspension] {
1821  throwWarning: tr("{0} is deprecated", "{0.tag}");
1822  suggestAlternative: concat("line_attachment=", "{0.value}");
1823  fixChangeKey: "tower:type => line_attachment";
1824  set power_tower_type_warning;
1825  group: tr("deprecated tagging");
1826}
1827*[tower:type=branch][branch:type=split],
1828*[tower:type=branch][branch:type=loop] {
1829  throwWarning: tr("{0} is deprecated", "{0.tag}");
1830  suggestAlternative: "line_management=split";
1831  fixAdd: "line_management=split";
1832  fixRemove: "tower:type";
1833  fixRemove: "branch:type";
1834  set power_tower_type_warning;
1835  group: tr("deprecated tagging");
1836}
1837*[tower:type=branch][!branch:type],
1838*[tower:type=branch][branch:type=tap] {
1839  throwWarning: tr("{0} is deprecated", "{0.tag}");
1840  suggestAlternative: "line_management=branch";
1841  fixAdd: "line_management=branch";
1842  fixRemove: "tower:type";
1843  fixRemove: "branch:type";
1844  set power_tower_type_warning;
1845  group: tr("deprecated tagging");
1846}
1847*[tower:type=branch][branch:type=cross] {
1848  throwWarning: tr("{0} is deprecated", "{0.tag}");
1849  suggestAlternative: "line_management=cross";
1850  fixAdd: "line_management=cross";
1851  fixRemove: "tower:type";
1852  fixRemove: "branch:type";
1853  set power_tower_type_warning;
1854  group: tr("deprecated tagging");
1855}
1856*[tower:type=termination] {
1857  throwWarning: tr("{0} is deprecated", "{0.tag}");
1858  suggestAlternative: "line_management=termination";
1859  fixAdd: "line_management=termination";
1860  fixRemove: "tower:type";
1861  set power_tower_type_warning;
1862  group: tr("deprecated tagging");
1863}
1864*[tower:type=transition] {
1865  throwWarning: tr("{0} is deprecated", "{0.tag}");
1866  suggestAlternative: "location:transition=yes";
1867  fixAdd: "location:transition=yes";
1868  fixRemove: "tower:type";
1869  set power_tower_type_warning;
1870  group: tr("deprecated tagging");
1871}
1872*[tower:type=transposing] {
1873  throwWarning: tr("{0} is deprecated", "{0.tag}");
1874  suggestAlternative: "line_management=transpose";
1875  fixAdd: "line_management=transpose";
1876  fixRemove: "tower:type";
1877  set power_tower_type_warning;
1878  group: tr("deprecated tagging");
1879}
1880*[tower:type=crossing] {
1881  throwWarning: tr("{0} is deprecated", "{0.tag}");
1882  suggestAlternative: "height=* + design=*";
1883  set power_tower_type_warning;
1884  group: tr("deprecated tagging");
1885}
1886*[tower:type][power][power=~/^(tower|pole|insulator|portal|terminal)$/]!.power_tower_type_warning {
1887  throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
1888  suggestAlternative: "design";
1889  suggestAlternative: "structure";
1890  suggestAlternative: "line_management";
1891  suggestAlternative: "line_attachment";
1892  set generic_power_tower_type_warning;
1893  group: tr("deprecated tagging");
1894}
1895node[pole:type=anchor],
1896node[pole:type=suspension] {
1897  throwWarning: tr("{0} is deprecated", "{0.tag}");
1898  suggestAlternative: concat("line_attachment=", "{0.value}");
1899  fixChangeKey: "pole:type => line_attachment";
1900  set power_pole_type_warning;
1901  group: tr("deprecated tagging");
1902}
1903node[pole:type=branch][branch:type=split],
1904node[pole:type=branch][branch:type=loop] {
1905  throwWarning: tr("{0} is deprecated", "{0.tag}");
1906  suggestAlternative: "line_management=split";
1907  fixAdd: "line_management=split";
1908  fixRemove: "pole:type";
1909  fixRemove: "branch:type";
1910  set power_pole_type_warning;
1911  group: tr("deprecated tagging");
1912}
1913node[pole:type=branch][!branch:type],
1914node[pole:type=branch][branch:type=tap] {
1915  throwWarning: tr("{0} is deprecated", "{0.tag}");
1916  suggestAlternative: "line_management=branch";
1917  fixAdd: "line_management=branch";
1918  fixRemove: "pole:type";
1919  fixRemove: "branch:type";
1920  set power_pole_type_warning;
1921  group: tr("deprecated tagging");
1922}
1923node[pole:type=branch][branch:type=cross] {
1924  throwWarning: tr("{0} is deprecated", "{0.tag}");
1925  suggestAlternative: "line_management=cross";
1926  fixAdd: "line_management=cross";
1927  fixRemove: "pole:type";
1928  fixRemove: "branch:type";
1929  set power_pole_type_warning;
1930  group: tr("deprecated tagging");
1931}
1932node[pole:type=termination] {
1933  throwWarning: tr("{0} is deprecated", "{0.tag}");
1934  suggestAlternative: "line_management=termination";
1935  fixAdd: "line_management=termination";
1936  fixRemove: "pole:type";
1937  set power_pole_type_warning;
1938  group: tr("deprecated tagging");
1939}
1940node[pole:type=transition] {
1941  throwWarning: tr("{0} is deprecated", "{0.tag}");
1942  suggestAlternative: "location:transition=yes";
1943  fixAdd: "location:transition=yes";
1944  fixRemove: "pole:type";
1945  set power_pole_type_warning;
1946  group: tr("deprecated tagging");
1947}
1948*[pole:type][power][power=~/^(tower|pole|insulator|portal|terminal)$/]!.power_pole_type_warning!.generic_power_tower_type_warning {
1949  throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
1950  suggestAlternative: "line_management";
1951  suggestAlternative: "line_attachment";
1952  group: tr("deprecated tagging");
1953}
1954
1955/* #18267 */
1956node[man_made=pipeline_marker],
1957node[pipeline=marker],
1958node[power=marker],
1959node[cable=marker] {
1960  throwWarning: tr("{0} is deprecated", "{0.tag}");
1961  suggestAlternative: "marker=* + utility=*";
1962  group: tr("deprecated tagging");
1963}
1964
1965/* #17643 */
1966way[barrier=embankment] {
1967  throwWarning: tr("{0} is deprecated", "{0.tag}");
1968  suggestAlternative: "man_made=embankment";
1969  suggestAlternative: "embankment=yes";
1970  group: tr("deprecated tagging");
1971}
1972
1973/* #18469 */
1974way[landuse=churchyard] {
1975  throwWarning: tr("{0} is deprecated", "{0.tag}");
1976  suggestAlternative: "landuse=religious";
1977  suggestAlternative: "amenity=graveyard";
1978  group: tr("deprecated tagging");
1979}
1980
1981*[sloped_curb=yes][!kerb],
1982*[sloped_curb=both][!kerb] {
1983  throwWarning: tr("{0} is deprecated", "{0.tag}");
1984  suggestAlternative: "kerb=lowered";
1985  group: tr("deprecated tagging");
1986  fixRemove: "sloped_curb";
1987  fixAdd: "kerb=lowered";
1988}
1989*[sloped_curb=no][!kerb] {
1990  throwWarning: tr("{0} is deprecated", "{0.tag}");
1991  suggestAlternative: "kerb=yes";
1992  group: tr("deprecated tagging");
1993  fixRemove: "sloped_curb";
1994  fixAdd: "kerb=yes";
1995}
1996*[sloped_curb][sloped_curb !~ /^(yes|both|no)$/][!kerb],
1997*[sloped_curb][kerb] {
1998  throwWarning: tr("{0} is deprecated", "{0.key}");
1999  suggestAlternative: "kerb=*";
2000  group: tr("deprecated tagging");
2001}
2002
2003/* #18571 */
2004*[unnamed=yes] {
2005  throwWarning: tr("{0} is deprecated", "{0.tag}");
2006  suggestAlternative: "noname=yes";
2007  fixChangeKey: "unnamed => noname";
2008  group: tr("deprecated tagging");
2009}
2010
2011node[segregated][segregated!=yes][segregated!=no],
2012way[segregated ][segregated!=yes][segregated!=no] {
2013  throwWarning: tr("unusual value of {0}", "{0.key}");
2014}
2015
2016/* #18603 */
2017way[bicycle:oneway] {
2018  throwWarning: tr("{0} is deprecated", "{0.key}");
2019  suggestAlternative: "oneway:bicycle";
2020  fixChangeKey: "bicycle:oneway => oneway:bicycle";
2021  group: tr("deprecated tagging");
2022}
2023
2024/* #18605 */
2025*[building:height] {
2026  throwWarning: tr("{0} is deprecated", "{0.key}");
2027  suggestAlternative: "height";
2028  fixChangeKey: "building:height => height";
2029  group: tr("deprecated tagging");
2030}
2031*[building:min_height] {
2032  throwWarning: tr("{0} is deprecated", "{0.key}");
2033  suggestAlternative: "min_height";
2034  fixChangeKey: "building:min_height => min_height";
2035  group: tr("deprecated tagging");
2036}
2037
2038/* #11232 */
2039way[highway][construction=yes][highway!=construction] {
2040  throwWarning: tr("{0} is deprecated", "{1.tag}");
2041  suggestAlternative: "construction=minor";
2042  suggestAlternative: concat("highway=construction + construction=", "{0.value}");
2043  group: tr("deprecated tagging");
2044}
2045
2046/* #18659 */
2047*[car][amenity=charging_station] {
2048  throwWarning: tr("{0} is deprecated", "{0.key}");
2049  suggestAlternative: "motorcar";
2050  group: tr("deprecated tagging");
2051  fixChangeKey: "car => motorcar";
2052}
2053
2054/* #18767 */
2055*[navigationaid=approach_light],
2056*[navigationaid="ALS (Approach lighting system)"] {
2057  throwWarning: tr("{0} is deprecated", "{0.tag}");
2058  suggestAlternative: "navigationaid=als";
2059  group: tr("deprecated tagging");
2060  fixAdd: "navigationaid=als";
2061}
2062
2063/* #18819 */
2064node[exit_to] {
2065  throwWarning: tr("{0} is deprecated", "{0.key}");
2066  suggestAlternative: "destination";
2067  group: tr("deprecated tagging");
2068}
2069
2070/* #18951 */
2071*[water=riverbank][!natural] {
2072  throwWarning: tr("{0} is deprecated", "{0.tag}");
2073  suggestAlternative: "natural=water + water=river";
2074  group: tr("deprecated tagging");
2075  fixAdd: "water=river";
2076  fixAdd: "natural=water";
2077}
2078*[water=riverbank][natural] {
2079  throwWarning: tr("{0} is deprecated", "{0.tag}");
2080  suggestAlternative: "natural=water + water=river";
2081  group: tr("deprecated tagging");
2082}
2083
2084node[amenity=bench][capacity][!seats],
2085way[amenity=bench][capacity][!seats] {
2086  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
2087  suggestAlternative: "seats";
2088  group: tr("deprecated tagging");
2089  fixChangeKey: "capacity => seats";
2090}
2091node[amenity=bench][capacity][seats],
2092way[amenity=bench][capacity][seats] {
2093  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
2094  suggestAlternative: "seats";
2095  group: tr("deprecated tagging");
2096}
2097
2098/* #19396 */
2099way[stream=intermittent] {
2100  throwWarning: tr("{0} is deprecated", "{0.tag}");
2101  suggestAlternative: "intermittent=yes";
2102  suggestAlternative: "seasonal=yes";
2103  group: tr("deprecated tagging");
2104}
2105
2106*[shop=lamps] {
2107  throwWarning: tr("{0} is deprecated", "{0.tag}");
2108  suggestAlternative: "shop=lighting";
2109  group: tr("deprecated tagging");
2110  fixAdd: "shop=lighting";
2111}
2112
2113/* #19180 */
2114*[access=customer] {
2115  throwWarning: tr("{0} is deprecated", "{0.tag}");
2116  suggestAlternative: "access=customers";
2117  group: tr("deprecated tagging");
2118  fixAdd: "access=customers";
2119}
2120*[addr:inclusion=estimated] {
2121  throwWarning: tr("{0} is deprecated", "{0.tag}");
2122  suggestAlternative: "addr:inclusion=estimate";
2123  group: tr("deprecated tagging");
2124  fixAdd: "addr:inclusion=estimate";
2125}
2126*[building=apartment] {
2127  throwWarning: tr("{0} is deprecated", "{0.tag}");
2128  suggestAlternative: "building=apartments";
2129  group: tr("deprecated tagging");
2130  fixAdd: "building=apartments";
2131}
2132node[lamp_mount="bent mast"] {
2133  throwWarning: tr("{0} is deprecated", "{0.tag}");
2134  suggestAlternative: "lamp_mount=bent_mast";
2135  group: tr("deprecated tagging");
2136  fixAdd: "lamp_mount=bent_mast";
2137}
2138node[lamp_mount="straight mast"] {
2139  throwWarning: tr("{0} is deprecated", "{0.tag}");
2140  suggestAlternative: "lamp_mount=straight_mast";
2141  group: tr("deprecated tagging");
2142  fixAdd: "lamp_mount=straight_mast";
2143}
2144node[lamp_type=electrical] {
2145  throwWarning: tr("{0} is deprecated", "{0.tag}");
2146  suggestAlternative: "lamp_type=electric";
2147  group: tr("deprecated tagging");
2148  fixAdd: "lamp_type=electric";
2149}
2150*[generator:type=solar_photovoltaic_panels] {
2151  throwWarning: tr("{0} is deprecated", "{0.tag}");
2152  suggestAlternative: "generator:type=solar_photovoltaic_panel";
2153  group: tr("deprecated tagging");
2154  fixAdd: "generator:type=solar_photovoltaic_panel";
2155}
2156*[building=part] {
2157  throwWarning: tr("{0} is deprecated", "{0.tag}");
2158  suggestAlternative: "building:part=yes";
2159  group: tr("deprecated tagging");
2160  /* without autofix, it is not clear if a building or a building part is mapped */
2161}
2162
2163/* #19739 */
2164*[natural=sink_hole] {
2165  throwWarning: tr("{0} is deprecated", "{0.tag}");
2166  suggestAlternative: "natural=sinkhole";
2167  group: tr("deprecated tagging");
2168  fixAdd: "natural=sinkhole";
2169}
2170
2171/* #19782 */
2172*[climbing:grade:UIAA:min] {
2173  throwWarning: tr("{0} is deprecated", "{0.key}");
2174  suggestAlternative: "climbing:grade:uiaa:min";
2175  group: tr("deprecated tagging");
2176  fixChangeKey: "climbing:grade:UIAA:min => climbing:grade:uiaa:min";
2177}
2178*[climbing:grade:UIAA:max] {
2179  throwWarning: tr("{0} is deprecated", "{0.key}");
2180  suggestAlternative: "climbing:grade:uiaa:max";
2181  group: tr("deprecated tagging");
2182  fixChangeKey: "climbing:grade:UIAA:max => climbing:grade:uiaa:max";
2183}
2184*[climbing:grade:UIAA:mean] {
2185  throwWarning: tr("{0} is deprecated", "{0.key}");
2186  suggestAlternative: "climbing:grade:uiaa:mean";
2187  group: tr("deprecated tagging");
2188  fixChangeKey: "climbing:grade:UIAA:mean => climbing:grade:uiaa:mean";
2189}
2190*[climbing:grade:UIAA] {
2191  throwWarning: tr("{0} is deprecated", "{0.key}");
2192  suggestAlternative: "climbing:grade:uiaa";
2193  group: tr("deprecated tagging");
2194  fixChangeKey: "climbing:grade:UIAA => climbing:grade:uiaa";
2195}
2196
2197/* #19835 */
2198*[cuisine][cuisine =~ /^(?i)(bbq)$/] { /* single value cases with autofix */
2199  throwWarning: tr("{0} is deprecated", "{0.tag}");
2200  suggestAlternative: "cuisine=barbecue";
2201  group: tr("deprecated tagging");
2202  fixAdd: "cuisine=barbecue";
2203  set bbq_autofix;
2204  assertMatch: "way cuisine=bbq";
2205  assertMatch: "way cuisine=BBQ";
2206  assertNoMatch: "way cuisine=pizza;Bbq";
2207  assertNoMatch: "way cuisine=pizza;bbq";
2208  assertNoMatch: "way cuisine=bbq;pizza";
2209  assertNoMatch: "way cuisine=pasta;bbq;pizza";
2210  assertNoMatch: "way cuisine=korean_bbq";
2211  assertNoMatch: "way cuisine=korean_bbq;bbq";
2212}
2213*[cuisine =~ /(?i)(;bbq|bbq;)/][cuisine!~/(?i)(_bbq)/] { /* multi value cases without autofix */
2214  throwWarning: tr("{0} is deprecated", "cuisine=bbq");
2215  suggestAlternative: "cuisine=barbecue";
2216  group: tr("deprecated tagging");
2217  assertNoMatch: "way cuisine=bbq";
2218  assertNoMatch: "way cuisine=BBQ";
2219  assertMatch: "way cuisine=pizza;Bbq";
2220  assertMatch: "way cuisine=pizza;bbq";
2221  assertMatch: "way cuisine=bbq;pizza";
2222  assertMatch: "way cuisine=pasta;bbq;pizza";
2223  assertNoMatch: "way cuisine=korean_bbq";
2224  assertNoMatch: "way cuisine=korean_bbq;bbq"; /* corner case (mixed ; and _) not supported by these rules, probably not present in the osm database */
2225}
2226
2227/* #17498, #20392 */
2228way[cycleway=none],
2229way[cycleway:left=none],
2230way[cycleway:right=none],
2231way[shoulder=none] {
2232  throwWarning: tr("{0} is deprecated", "{0.tag}");
2233  suggestAlternative: concat("{0.key}", "=no");
2234  group: tr("deprecated tagging");
2235  fixAdd: concat("{0.key}", "=no");
2236}
2237
2238/* #17809 */
2239*[Fixme] {
2240  throwWarning: tr("{0} is deprecated", "{0.key}");
2241  suggestAlternative: "fixme";
2242  group: tr("deprecated tagging");
2243  fixChangeKey: "Fixme => fixme";
2244  assertMatch: "way Fixme=foo";
2245  assertNoMatch: "way fixme=foo";
2246  assertNoMatch: "way FIXME=foo";
2247}
2248
2249/* #20338 */
2250*[amenity=embassy] {
2251  throwWarning: tr("{0} is deprecated", "{0.tag}");
2252  suggestAlternative: "office=diplomatic + diplomatic=embassy";
2253  group: tr("deprecated tagging");
2254  fixAdd: "office=diplomatic";
2255  fixChangeKey: "amenity => diplomatic";
2256}
2257
2258/* When tags are deprecated they should be added to ignoretags.cfg too. */
Note: See TracBrowser for help on using the repository browser.