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

Last change on this file since 13788 was 13788, checked in by Klumbumbus, 2 years ago

fix #15877 - autofix roof:color and building:color to roof:colour and building:colour (as long as not both keay with different values are present)

  • Property svn:eol-style set to native
File size: 40.3 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*[shop=organic] {
123  /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
124  throwWarning: tr("{0} is deprecated", "{0.tag}");
125  suggestAlternative: "shop=* + organic=yes";
126  suggestAlternative: "shop=* + organic=only";
127  group: tr("deprecated tagging");
128}
129
130*[shop=pets] {
131  throwWarning: tr("{0} is deprecated", "{0.tag}");
132  suggestAlternative: "shop=pet";
133  group: tr("deprecated tagging");
134  fixAdd: "shop=pet";
135}
136
137*[shop=pharmacy] {
138  throwWarning: tr("{0} is deprecated", "{0.tag}");
139  suggestAlternative: "amenity=pharmacy";
140  group: tr("deprecated tagging");
141  fixChangeKey: "shop => amenity";
142}
143
144*[bicycle_parking=sheffield] {
145  /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
146  throwWarning: tr("{0} is deprecated", "{0.tag}");
147  suggestAlternative: "bicycle_parking=stands";
148  group: tr("deprecated tagging");
149  fixAdd: "bicycle_parking=stands";
150}
151 
152*[amenity=emergency_phone] {
153  /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
154  throwWarning: tr("{0} is deprecated", "{0.tag}");
155  suggestAlternative: "emergency=phone";
156  group: tr("deprecated tagging");
157  fixRemove: "amenity";
158  fixAdd: "emergency=phone";
159}
160 
161*[sport=gaelic_football] {
162  /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
163  throwWarning: tr("{0} is deprecated", "{0.tag}");
164  suggestAlternative: "sport=gaelic_games";
165  group: tr("deprecated tagging");
166  fixAdd: "sport=gaelic_games";
167}
168 
169*[power=station] {
170  /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
171  throwWarning: tr("{0} is deprecated", "{0.tag}");
172  suggestAlternative: "power=plant";
173  suggestAlternative: "power=substation";
174  group: tr("deprecated tagging");
175}
176
177*[power=sub_station] {
178  throwWarning: tr("{0} is deprecated", "{0.tag}");
179  suggestAlternative: "power=substation";
180  group: tr("deprecated tagging");
181  fixAdd: "power=substation";
182}
183 
184*[generator:method=dam] {
185  throwWarning: tr("{0} is deprecated", "{0.tag}");
186  suggestAlternative: "generator:method=water-storage";
187  group: tr("deprecated tagging");
188  fixAdd: "generator:method=water-storage";
189}
190 
191*[generator:method=pumped-storage] {
192  throwWarning: tr("{0} is deprecated", "{0.tag}");
193  suggestAlternative: "generator:method=water-pumped-storage";
194  group: tr("deprecated tagging");
195  fixAdd: "generator:method=water-pumped-storage";
196}
197 
198*[generator:method=pumping] {
199  throwWarning: tr("{0} is deprecated", "{0.tag}");
200  suggestAlternative: "generator:method=water-pumped-storage";
201  group: tr("deprecated tagging");
202  fixAdd: "generator:method=water-pumped-storage";
203}
204 
205*[fence_type=chain] {
206  /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
207  throwWarning: tr("{0} is deprecated", "{0.tag}");
208  suggestAlternative: "barrier=chain";
209  suggestAlternative: "barrier=fence + fence_type=chain_link";
210  group: tr("deprecated tagging");
211}
212
213*[building=entrance] {
214  /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
215  throwWarning: tr("{0} is deprecated", "{0.tag}");
216  suggestAlternative: "entrance";
217  group: tr("deprecated tagging");
218}
219 
220*[board_type=board] {
221  /* see #9213 - Useless tag proposed in internal preset for years */
222  throwWarning: tr("{0} is deprecated", "{0.tag}");
223  group: tr("deprecated tagging");
224  fixRemove: "board_type";
225}
226 
227*[man_made=measurement_station] {
228  /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
229  throwWarning: tr("{0} is deprecated", "{0.tag}");
230  suggestAlternative: "man_made=monitoring_station";
231  group: tr("deprecated tagging");
232  fixAdd: "man_made=monitoring_station";
233}
234 
235*[measurement=water_level] {
236  throwWarning: tr("{0} is deprecated", "{0.tag}");
237  suggestAlternative: "monitoring:water_level=yes";
238  group: tr("deprecated tagging");
239  fixRemove: "measurement";
240  fixAdd: "monitoring:water_level=yes";
241}
242 
243*[measurement=weather] {
244  throwWarning: tr("{0} is deprecated", "{0.tag}");
245  suggestAlternative: "monitoring:weather=yes";
246  group: tr("deprecated tagging");
247  fixRemove: "measurement";
248  fixAdd: "monitoring:weather=yes";
249}
250 
251*[measurement=seismic] {
252  throwWarning: tr("{0} is deprecated", "{0.tag}");
253  suggestAlternative: "monitoring:seismic_activity=yes";
254  group: tr("deprecated tagging");
255  fixRemove: "measurement";
256  fixAdd: "monitoring:seismic_activity=yes";
257}
258
259*[monitoring:river_level] {
260  throwWarning: tr("{0} is deprecated", "{0.key}");
261  suggestAlternative: "monitoring:water_level";
262  group: tr("deprecated tagging");
263  fixChangeKey: "monitoring:river_level => monitoring:water_level";
264}
265
266*[stay] {
267  throwWarning: tr("{0} is deprecated", "{0.key}");
268  suggestAlternative: "maxstay";
269  group: tr("deprecated tagging");
270  fixChangeKey: "stay => maxstay";
271}
272
273*[emergency=aed] {
274  /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
275  throwWarning: tr("{0} is deprecated", "{0.tag}");
276  suggestAlternative: "emergency=defibrillator";
277  group: tr("deprecated tagging");
278  fixAdd: "emergency=defibrillator";
279}
280
281/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
282*[day_on][!restriction],
283*[day_off][!restriction],
284*[date_on][!restriction],
285*[date_off][!restriction],
286*[hour_on][!restriction],
287*[hour_off][!restriction] {
288  throwWarning: tr("{0} is deprecated", "{0.key}");
289  suggestAlternative: "*:conditional";
290  group: tr("deprecated tagging");
291  assertMatch: "node day_on=0-12";
292}
293
294/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
295*[access=designated] {
296  throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
297  assertMatch: "way access=designated";
298}
299*[access=official] {
300  throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
301  assertMatch: "way access=official";
302}
303
304/* see #10085 - give warning for fixme=yes */
305*[fixme=yes], *[FIXME=yes] {
306  throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
307  assertMatch: "way fixme=yes";
308}
309
310*[name][name=~/^(?i)fixme$/] {
311  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}");
312  fixRemove: "name";
313  assertMatch: "node name=fixme";
314  assertMatch: "node name=Fixme";
315  assertMatch: "node name=FIXME";
316  assertNoMatch: "node name=valid name";
317}
318
319*[note][note=~/^(?i)fixme$/] {
320  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}");
321}
322
323/* see #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
324*[type=broad_leaved],
325*[type=broad_leafed] {
326  throwWarning: tr("{0} is deprecated", "{0.tag}");
327  suggestAlternative: "leaf_type=broadleaved";
328  group: tr("deprecated tagging");
329  fixRemove: "{0.key}";
330  fixAdd: "leaf_type=broadleaved";
331}
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
343*[wood=mixed] {
344  throwWarning: tr("{0} is deprecated", "{0.tag}");
345  suggestAlternative: "leaf_type=mixed";
346  group: tr("deprecated tagging");
347  fixRemove: "wood";
348  fixAdd: "leaf_type=mixed";
349}
350
351*[wood=evergreen],
352*[type=evergreen] {
353  throwWarning: tr("{0} is deprecated", "{0.tag}");
354  suggestAlternative: "leaf_cycle=evergreen";
355  group: tr("deprecated tagging");
356  fixRemove: "{0.key}";
357  fixAdd: "leaf_cycle=evergreen";
358}
359
360*[type=deciduous],
361*[type=deciduos] {
362  throwWarning: tr("{0} is deprecated", "{0.tag}");
363  suggestAlternative: "leaf_cycle=deciduous";
364  group: tr("deprecated tagging");
365  fixRemove: "type";
366  fixAdd: "leaf_cycle=deciduous";
367}
368
369*[wood=deciduous] {
370  throwWarning: tr("{0} is deprecated", "{0.tag}");
371  suggestAlternative: "leaf_type + leaf_cycle";
372  group: tr("deprecated tagging");
373}
374
375node[type=palm],
376way[type=palm] {
377  throwWarning: tr("{0} is deprecated", "{0.tag}");
378  suggestAlternative: "leaf_type";
379  suggestAlternative: "trees";
380  suggestAlternative: "species";
381  group: tr("deprecated tagging");
382}
383
384*[natural=land] {
385  throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
386  group: tr("deprecated tagging");
387  assertMatch: "way natural=land";
388}
389
390/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
391*[bridge=causeway] {
392  throwWarning: tr("{0} is deprecated", "{0.tag}");
393  suggestAlternative: "ford=yes";
394  suggestAlternative: "bridge=low_water_crossing";
395  suggestAlternative: "embankment=yes";
396  group: tr("deprecated tagging");
397}
398
399*[bridge=swing] {
400  throwWarning: tr("{0} is deprecated", "{0.tag}");
401  suggestAlternative: "bridge:movable=swing";
402  suggestAlternative: "bridge:structure=simple-suspension";
403  group: tr("deprecated tagging");
404}
405
406*[bridge=suspension] {
407  throwWarning: tr("{0} is deprecated", "{0.tag}");
408  suggestAlternative: "bridge=yes + bridge:structure=suspension";
409  group: tr("deprecated tagging");
410  fixAdd: "bridge=yes";
411  fixAdd: "bridge:structure=suspension";
412}
413
414/* See #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/* See #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/* see #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/* see #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/* see #10661, #10837, #11737, #12771 */
448*[traffic_calming=yes],
449*[access=restricted],
450*[barrier=yes],
451*[aerialway=yes][!public_transport],
452*[amenity=yes],
453*[leisure=yes],
454*[shop="*"],
455*[craft=yes],
456*[service=yes],
457*[place=yes] {
458  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
459}
460
461/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
462*[place_name][!name] {
463  throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
464  fixChangeKey: "place_name => name";
465}
466*[place][place_name = *name] {
467  throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
468  fixRemove: "{1.key}";
469}
470
471way[sidewalk=yes] {
472  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
473}
474
475*[waterway=water_point] {
476  throwWarning: tr("{0} is deprecated", "{0.tag}");
477  suggestAlternative: "amenity=water_point";
478  group: tr("deprecated tagging");
479  fixChangeKey: "waterway => amenity";
480}
481*[waterway=waste_disposal] {
482  throwWarning: tr("{0} is deprecated", "{0.tag}");
483  suggestAlternative: "amenity=waste_disposal";
484  group: tr("deprecated tagging");
485  fixChangeKey: "waterway => amenity";
486}
487*[waterway=mooring] {
488  throwWarning: tr("{0} is deprecated", "{0.tag}");
489  suggestAlternative: "mooring=yes";
490  group: tr("deprecated tagging");
491  fixRemove: "waterway";
492  fixAdd: "mooring=yes";
493}
494
495/* see #10837 */
496*[building][levels],
497*[building:part=yes][levels] {
498  throwWarning: tr("{0} is deprecated", "{1.key}");
499  suggestAlternative: "building:levels";
500  group: tr("deprecated tagging");
501  fixChangeKey: "levels => building:levels";
502}
503
504/* see #10691 */
505*[protected_class] {
506  throwWarning: tr("{0} is deprecated", "{0.key}");
507  suggestAlternative: "protect_class";
508  group: tr("deprecated tagging");
509  fixChangeKey: "protected_class => protect_class";
510}
511
512/* see #11070 */
513*[lock=unknown],
514*[hide=unknown],
515*[shelter=unknown],
516*[access=unknown],
517*[capacity:parent=unknown],
518*[capacity:women=unknown],
519*[capacity:disabled=unknown],
520*[crossing=unknown],
521*[foot=unknown] {
522  throwWarning: tr("Unspecific tag {0}", "{0.tag}");
523}
524
525/* unclear definition, see #11183 */
526*[sport=skiing] {
527  throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
528  suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
529  group: tr("deprecated tagging");
530}
531
532/* see #11223 */
533*[waterway=wadi] {
534  throwWarning: tr("{0} is deprecated", "{0.tag}");
535  suggestAlternative: "{0.key}=* + intermittent=yes";
536  suggestAlternative: "natural=valley";
537  group: tr("deprecated tagging");
538}
539
540/* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
541way[oneway=1][!waterway] {
542  throwWarning: tr("{0} is deprecated", "{0.tag}");
543  suggestAlternative: "oneway=yes";
544  group: tr("deprecated tagging");
545  fixAdd: "oneway=yes";
546}
547
548/* see #11329, #15667 */
549way[oneway=-1][!waterway] {
550  throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
551}
552
553*[drinkable] {
554  throwWarning: tr("{0} is deprecated", "{0.key}");
555  suggestAlternative: "drinking_water";
556  group: tr("deprecated tagging");
557}
558
559/* see #10329, #15877 */
560  /* simple key change */
561*[color][!colour] {
562  throwWarning: tr("{0} is deprecated", "{0.key}");
563  suggestAlternative: "colour";
564  group: tr("deprecated tagging");
565  fixChangeKey: "color => colour";
566  assertMatch: "way color=red";
567  assertNoMatch: "way color=red colour=red";
568}
569area[building:color][!building:colour] {
570  throwWarning: tr("{0} is deprecated", "{0.key}");
571  suggestAlternative: "building:colour";
572  group: tr("deprecated tagging");
573  fixChangeKey: "building:color => building:colour";
574  assertMatch: "way building:color=red";
575  assertNoMatch: "way building:color=red building:colour=red";
576}
577area[roof:color][!roof:colour] {
578  throwWarning: tr("{0} is deprecated", "{0.key}");
579  suggestAlternative: "roof:colour";
580  group: tr("deprecated tagging");
581  fixChangeKey: "roof:color => roof:colour";
582  assertMatch: "way roof:color=red";
583  assertNoMatch: "way roof:color=red roof:colour=red";
584}
585  /* both tags with same value, remove color */
586*[color][colour][color=*colour] {
587  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
588  suggestAlternative: "colour";
589  group: tr("deprecated tagging");
590  set samecolor;
591  fixRemove: "color";
592  assertMatch: "way color=red colour=red";
593  assertNoMatch: "way color=red colour=green";
594}
595area[building:color][building:colour]["building:color"=*"building:colour"] {
596  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
597  suggestAlternative: "building:colour";
598  group: tr("deprecated tagging");
599  set samebuildingcolor;
600  fixRemove: "building:color";
601  assertMatch: "way building:color=red building:colour=red";
602  assertNoMatch: "way building:color=red building:colour=green";
603}
604area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
605  throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
606  suggestAlternative: "roof:colour";
607  group: tr("deprecated tagging");
608  set sameroofcolor;
609  fixRemove: "roof:color";
610  assertMatch: "way roof:color=red roof:colour=red";
611  assertNoMatch: "way roof:color=red roof:colour=green";
612}
613  /* both tags with different values, no autofix */
614*[color][colour]!.samecolor {
615  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
616  suggestAlternative: "colour";
617  group: tr("deprecated tagging");
618  assertNoMatch: "way color=red colour=red";
619  assertMatch: "way color=red colour=green";
620}
621*[building:color][building:colour]!.samebuildingcolor {
622  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
623  suggestAlternative: "building:colour";
624  group: tr("deprecated tagging");
625  assertNoMatch: "way building:color=red building:colour=red";
626  assertMatch: "way building:color=red building:colour=green";
627}
628*[roof:color][roof:colour]!.sameroofcolor {
629  throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
630  suggestAlternative: "roof:colour";
631  group: tr("deprecated tagging");
632  assertNoMatch: "way roof:color=red roof:colour=red";
633  assertMatch: "way roof:color=red roof:colour=green";
634}
635  /* further more universal checks, no autofix */
636*[/:color/][!building:color][!roof:color] {
637  throwWarning: tr("{0} is deprecated", "{0.key}");
638  suggestAlternative: ":colour";
639  group: tr("deprecated tagging");
640  assertNoMatch: "way color=red";
641  assertNoMatch: "way roof:color=grey";
642  assertMatch: "way cycleway:surface:color=grey";
643}
644*[/color:/]  {
645  throwWarning: tr("{0} is deprecated", "{0.key}");
646  suggestAlternative: "colour:";
647  group: tr("deprecated tagging");
648  assertNoMatch: "way color=red";
649  assertMatch: "way color:back=grey";
650}
651
652/* see #11234 */
653*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
654  throwWarning: tr("{0}", "{0.key}");
655  group: tr("key with uncommon character");
656}
657
658/* see #11330 */
659*[/^.$/],
660node[/^..$/],
661way[/^..$/],
662relation[/^..$/][!to] {
663  throwWarning: tr("uncommon short key");
664  assertNoMatch: "relation to=Berlin";
665  assertMatch: "relation fo=bar";
666  assertMatch: "way to=bar";
667  assertMatch: "node fo=bar";
668  assertMatch: "node f=b";
669}
670
671/* see #11439 */
672*[sport=hockey] {
673  throwWarning: tr("{0} is deprecated", "{0.tag}");
674  suggestAlternative: "sport=field_hockey";
675  suggestAlternative: "sport=ice_hockey";
676  group: tr("deprecated tagging");
677}
678
679/* see #11471 */
680*[sport=billard],
681*[sport=billards],
682*[sport=billiard] {
683  throwWarning: tr("{0} is deprecated", "{0.tag}");
684  suggestAlternative: "sport=billiards";
685  group: tr("deprecated tagging");
686  fixAdd: "sport=billiards";
687}
688
689/* see #11499 */
690*[payment:credit_cards=yes] {
691  throwWarning: tr("{0} is inaccurate", "{0.tag}");
692  suggestAlternative: "payment:mastercard=yes";
693  suggestAlternative: "payment:visa=yes";
694  suggestAlternative: "...";
695}
696*[payment:debit_cards=yes] {
697  throwWarning: tr("{0} is inaccurate", "{0.tag}");
698  suggestAlternative: "payment:maestro=yes";
699  suggestAlternative: "payment:girocard=yes";
700  suggestAlternative: "...";
701}
702*[payment:electronic_purses=yes] {
703  throwWarning: tr("{0} is inaccurate", "{0.tag}");
704  suggestAlternative: "payment:ep_geldkarte=yes";
705  suggestAlternative: "payment:ep_quick=yes";
706  suggestAlternative: "...";
707}
708*[payment:cryptocurrencies=yes] {
709  throwWarning: tr("{0} is inaccurate", "{0.tag}");
710  suggestAlternative: "payment:bitcoin=yes";
711  suggestAlternative: "payment:litecoin=yes";
712  suggestAlternative: "...";
713}
714
715/* defunct payment cards */
716*[payment:ep_quick],
717*[payment:ep_cash],
718*[payment:ep_proton],
719*[payment:ep_chipknip] {
720  throwWarning: tr("{0} is deprecated", "{0.key}");
721  group: tr("deprecated tagging");
722  fixRemove: "{0.key}";
723}
724
725/* see #8717 */
726*[kp][highway=milestone],
727*[kp][railway=milestone],
728*[kp][waterway=milestone] {
729  throwWarning: tr("{0} is deprecated", "{0.key}");
730  suggestAlternative: "distance";
731  group: tr("deprecated tagging");
732  fixChangeKey: "kp => distance";
733}
734*[pk][highway=milestone],
735*[pk][railway=milestone],
736*[pk][waterway=milestone] {
737  throwWarning: tr("{0} is deprecated", "{0.key}");
738  suggestAlternative: "distance";
739  group: tr("deprecated tagging");
740  fixChangeKey: "pk => distance";
741}
742
743*[postcode] {
744  throwWarning: tr("{0} is deprecated", "{0.key}");
745  suggestAlternative: "addr:postcode";
746  group: tr("deprecated tagging");
747  suggestAlternative: "postal_code";
748}
749
750*[water=intermittent] {
751  throwWarning: tr("{0} is deprecated", "{0.tag}");
752  suggestAlternative: "intermittent=yes";
753  group: tr("deprecated tagging");
754  fixRemove: "water";
755  fixAdd: "intermittent=yes";
756}
757
758/* #10907, #14141 */
759/* 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 */
760way[type][type!=waterway][man_made=pipeline],
761node[type][pipeline=marker] {
762  throwWarning: tr("{0} is deprecated", "{0.key}");
763  suggestAlternative: "substance";
764  group: tr("deprecated tagging");
765  fixChangeKey: "type => substance";
766}
767
768*[landuse=farm] {
769  throwWarning: tr("{0} is deprecated", "{0.tag}");
770  suggestAlternative: "landuse=farmland";
771  suggestAlternative: "landuse=farmyard";
772  group: tr("deprecated tagging");
773}
774
775/* #12135 comment:11 */
776*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
777  throwWarning: tr("{0} is deprecated", "{0.tag}");
778  suggestAlternative: "{1.tag}";
779  group: tr("deprecated tagging");
780  fixRemove: "seamark";
781}
782*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
783  throwWarning: tr("{0} is deprecated", "{0.tag}");
784  suggestAlternative: "{1.tag}";
785  group: tr("deprecated tagging");
786}
787/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
788*[landuse=conservation] {
789  throwWarning: tr("{0} is deprecated", "{0.tag}");
790  suggestAlternative: "boundary=protected_area";
791  group: tr("deprecated tagging");
792  fixAdd: "boundary=protected_area";
793  fixRemove: "landuse";
794}
795
796/* #12205 */
797*[amenity=kiosk] {
798  throwWarning: tr("{0} is deprecated", "{0.tag}");
799  suggestAlternative: "shop=kiosk";
800  group: tr("deprecated tagging");
801  fixChangeKey: "amenity => shop";
802}
803*[amenity=shop] {
804  throwWarning: tr("{0} is deprecated", "{0.tag}");
805  suggestAlternative: "shop=*";
806  group: tr("deprecated tagging");
807}
808*[shop=fishmonger] {
809  throwWarning: tr("{0} is deprecated", "{0.tag}");
810  suggestAlternative: "shop=seafood";
811  group: tr("deprecated tagging");
812  fixAdd: "shop=seafood";
813}
814*[shop=fish] {
815  throwWarning: tr("{0} is deprecated", "{0.tag}");
816  suggestAlternative: "shop=seafood";
817  suggestAlternative: "shop=pet";
818  suggestAlternative: "shop=fishing";
819  group: tr("deprecated tagging");
820}
821*[shop=betting] {
822  throwWarning: tr("{0} is deprecated", "{0.tag}");
823  suggestAlternative: "shop=bookmaker";
824  suggestAlternative: "shop=lottery";
825  suggestAlternative: "amenity=casino";
826  suggestAlternative: "leisure=amusement_arcade";
827  suggestAlternative: "leisure=adult_gaming_centre";
828  suggestAlternative: "amenity=gambling";
829  group: tr("deprecated tagging");
830}
831*[shop=perfume] {
832  throwWarning: tr("{0} is deprecated", "{0.tag}");
833  suggestAlternative: "shop=perfumery";
834  group: tr("deprecated tagging");
835  fixAdd: "shop=perfumery";
836}
837*[amenity=exercise_point] {
838  throwWarning: tr("{0} is deprecated", "{0.tag}");
839  suggestAlternative: "leisure=fitness_station";
840  group: tr("deprecated tagging");
841  fixAdd: "leisure=fitness_station";
842  fixRemove: "amenity";
843}
844*[shop=auto_parts] {
845  throwWarning: tr("{0} is deprecated", "{0.tag}");
846  suggestAlternative: "shop=car_parts";
847  group: tr("deprecated tagging");
848  fixAdd: "shop=car_parts";
849}
850*[amenity=car_repair] {
851  throwWarning: tr("{0} is deprecated", "{0.tag}");
852  suggestAlternative: "shop=car_repair";
853  group: tr("deprecated tagging");
854  fixChangeKey: "amenity => shop";
855}
856
857/* #12311 */
858*[amenity=studio][type=audio],
859*[amenity=studio][type=radio],
860*[amenity=studio][type=television],
861*[amenity=studio][type=video] {
862  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
863  suggestAlternative: "studio";
864  group: tr("deprecated tagging");
865  fixChangeKey: "type => studio";
866}
867
868/* #11507, #12297, #15409 */
869*[power=cable_distribution_cabinet] {
870  throwWarning: tr("{0} is deprecated", "{0.tag}");
871  suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
872  group: tr("deprecated tagging");
873  fixAdd: "man_made=street_cabinet";
874  fixRemove: "power";
875}
876
877/* #12276 */
878*[man_made=well] {
879  throwWarning: tr("{0} is deprecated", "{0.tag}");
880  suggestAlternative: "man_made=water_well";
881  suggestAlternative: "man_made=petroleum_well";
882  group: tr("deprecated tagging");
883}
884*[amenity=dog_bin],
885*[amenity=dog_waste_bin] {
886  throwWarning: tr("{0} is deprecated", "{0.tag}");
887  suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
888  group: tr("deprecated tagging");
889  fixAdd: "amenity=waste_basket";
890  fixAdd: "waste=dog_excrement";
891  fixAdd: "vending=excrement_bags";
892}
893*[amenity=artwork] {
894  throwWarning: tr("{0} is deprecated", "{0.tag}");
895  suggestAlternative: "tourism=artwork";
896  group: tr("deprecated tagging");
897  fixAdd: "tourism=artwork";
898  fixRemove: "amenity";
899}
900*[amenity=community_center] {
901  throwWarning: tr("{0} is deprecated", "{0.tag}");
902  suggestAlternative: "amenity=community_centre";
903  group: tr("deprecated tagging");
904  fixAdd: "amenity=community_centre";
905}
906*[man_made=cut_line] {
907  throwWarning: tr("{0} is deprecated", "{0.tag}");
908  suggestAlternative: "man_made=cutline";
909  group: tr("deprecated tagging");
910  fixAdd: "man_made=cutline";
911}
912*[amenity=park] {
913  throwWarning: tr("{0} is deprecated", "{0.tag}");
914  suggestAlternative: "leisure=park";
915  group: tr("deprecated tagging");
916  fixAdd: "leisure=park";
917  fixRemove: "amenity";
918}
919*[amenity=hotel] {
920  throwWarning: tr("{0} is deprecated", "{0.tag}");
921  suggestAlternative: "tourism=hotel";
922  group: tr("deprecated tagging");
923  fixAdd: "tourism=hotel";
924  fixRemove: "amenity";
925}
926*[shop=window],
927*[shop=windows] {
928  throwWarning: tr("{0} is deprecated", "{0.tag}");
929  suggestAlternative: "craft=window_construction";
930  group: tr("deprecated tagging");
931  fixAdd: "craft=window_construction";
932  fixRemove: "shop";
933}
934*[amenity=education] {
935  throwWarning: tr("{0} is deprecated", "{0.tag}");
936  suggestAlternative: "amenity=college";
937  suggestAlternative: "amenity=school";
938  suggestAlternative: "amenity=university";
939  group: tr("deprecated tagging");
940}
941*[shop=gallery] {
942  throwWarning: tr("{0} is deprecated", "{0.tag}");
943  suggestAlternative: "shop=art";
944  group: tr("deprecated tagging");
945  fixAdd: "shop=art";
946}
947*[shop=gambling],
948*[leisure=gambling] {
949  throwWarning: tr("{0} is deprecated", "{0.tag}");
950  suggestAlternative: "shop=bookmaker";
951  suggestAlternative: "shop=lottery";
952  suggestAlternative: "amenity=casino";
953  suggestAlternative: "leisure=amusement_arcade";
954  suggestAlternative: "amenity=gambling";
955  group: tr("deprecated tagging");
956}
957*[office=real_estate_agent] {
958  throwWarning: tr("{0} is deprecated", "{0.tag}");
959  suggestAlternative: "office=estate_agent ";
960  group: tr("deprecated tagging");
961  fixAdd: "office=estate_agent ";
962}
963*[shop=glass] {
964  throwWarning: tr("{0} is deprecated", "{0.tag}");
965  suggestAlternative: "shop=glaziery";
966  suggestAlternative: "craft=glaziery";
967  group: tr("deprecated tagging");
968}
969*[amenity=proposed],
970*[amenity=proposed],
971*[amenity=disused],
972*[shop=disused],
973*[historic=abandoned] {
974  throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
975  group: tr("deprecated tagging");
976}
977
978/* #12431 */
979*[amenity=swimming_pool] {
980  throwWarning: tr("{0} is deprecated", "{0.tag}");
981  suggestAlternative: "leisure=swimming_pool";
982  group: tr("deprecated tagging");
983  fixChangeKey: "amenity => leisure";
984}
985
986/* #12494 */
987*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
988  throwOther: tr("{0}", "{0.key}");
989  group: tr("questionable key (ending with a number)");
990  assertMatch: "way name_1=foo";
991  assertNoMatch: "way note_2=foo";
992  assertNoMatch: "way description_3=foo";
993  assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
994}
995
996/* #12500 */
997*[sport=skating] {
998  throwWarning: tr("{0} is deprecated", "{0.tag}");
999  suggestAlternative: "sport=ice_skating";
1000  suggestAlternative: "sport=roller_skating";
1001  group: tr("deprecated tagging");
1002}
1003
1004way[barrier=wall][type=noise_barrier][!wall],
1005way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
1006  throwWarning: tr("{0} is deprecated", "{1.tag}");
1007  suggestAlternative: "wall=noise_barrier";
1008  group: tr("deprecated tagging");
1009  fixChangeKey: "type => wall";
1010}
1011way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
1012  throwWarning: tr("{0} is deprecated", "{1.tag}");
1013  suggestAlternative: "wall=noise_barrier";
1014  group: tr("deprecated tagging");
1015}
1016
1017/* #8978, 12588 */
1018*[amenity=public_building] {
1019  throwWarning: tr("{0} is deprecated", "{0.tag}");
1020  suggestAlternative: "amenity=townhall";
1021  suggestAlternative: "amenity=community_centre";
1022  suggestAlternative: "amenity=hospital";
1023  suggestAlternative: "leisure=sports_centre";
1024  suggestAlternative: "office=government";
1025  suggestAlternative: "building=hospital";
1026  suggestAlternative: "building=public";
1027  suggestAlternative: "...";
1028  group: tr("deprecated tagging");
1029}
1030
1031/* #12708 */
1032*[vending=news_papers] {
1033  throwWarning: tr("{0} is deprecated", "{0.tag}");
1034  suggestAlternative: "vending=newspapers";
1035  group: tr("deprecated tagging");
1036  fixAdd: "vending=newspapers";
1037}
1038
1039/* #12771 */
1040*[service=drive_through] {
1041  throwWarning: tr("{0} is deprecated", "{0.tag}");
1042  suggestAlternative: "service=drive-through";
1043  group: tr("deprecated tagging");
1044  fixAdd: "service=drive-through";
1045}
1046
1047/* #12771 */
1048way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|yes)$/], /* drive_through and yes have special warnings */
1049way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1050way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1051  throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
1052}
1053
1054/* #13008 */
1055*[name:botanical] {
1056  throwWarning: tr("{0} is deprecated", "{0.key}");
1057  suggestAlternative: "species";
1058  group: tr("deprecated tagging");
1059}
1060
1061/* #11344, #13101, #15480 */
1062node[pole=air_to_ground],
1063node[pole=transition] {
1064  throwWarning: tr("{0} is deprecated", "{0.tag}");
1065  suggestAlternative: "location:transition=yes";
1066  group: tr("deprecated tagging");
1067  fixAdd: "location:transition=yes";
1068  fixRemove: "pole";
1069}
1070node[tower=air_to_ground],
1071node[tower=transition] {
1072  throwWarning: tr("{0} is deprecated", "{0.tag}");
1073  suggestAlternative: "location:transition=yes";
1074  group: tr("deprecated tagging");
1075  fixAdd: "location:transition=yes";
1076  fixRemove: "tower";
1077}
1078
1079/* #13138 */
1080area[landuse=pond] {
1081  throwWarning: tr("{0} is deprecated", "{0.tag}");
1082  suggestAlternative: "natural=water + water=pond";
1083  group: tr("deprecated tagging");
1084  fixAdd: "natural=water";
1085  fixAdd: "water=pond";
1086  fixRemove: "landuse";
1087}
1088
1089*[shop=souvenir],
1090*[shop=souvenirs],
1091*[shop=souveniers] {
1092  throwWarning: tr("{0} is deprecated", "{0.tag}");
1093  suggestAlternative: "shop=gift";
1094  group: tr("deprecated tagging");
1095  fixAdd: "shop=gift";
1096}
1097
1098*[vending=animal_food] {
1099  throwWarning: tr("{0} is deprecated", "{0.tag}");
1100  suggestAlternative: "vending=animal_feed";
1101  group: tr("deprecated tagging");
1102  fixAdd: "vending=animal_feed";
1103}
1104
1105/* #14376 */
1106node[vending=photos][amenity=vending_machine],
1107node[vending=photo][amenity=vending_machine] {
1108  throwWarning: tr("{0} is deprecated", "{0.tag}");
1109  suggestAlternative: "amenity=photo_booth";
1110  group: tr("deprecated tagging");
1111  fixRemove: "vending";
1112  fixAdd: "amenity=photo_booth";
1113
1114}
1115node[vending=photos][amenity!=vending_machine] {
1116  throwWarning: tr("{0} is deprecated", "{0.tag}");
1117  suggestAlternative: "amenity=photo_booth";
1118  group: tr("deprecated tagging");
1119}
1120
1121/* #13653 */
1122node[highway=emergency_access_point][phone][!emergency_telephone_code],
1123way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1124  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1125  suggestAlternative: "emergency_telephone_code";
1126  group: tr("deprecated tagging");
1127  fixChangeKey: "phone => emergency_telephone_code";
1128  assertMatch:   "node highway=emergency_access_point phone=123";
1129  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1130  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1131  assertNoMatch: "node phone=123";
1132}
1133node[highway=emergency_access_point][phone=*emergency_telephone_code],
1134way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1135  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1136  suggestAlternative: "emergency_telephone_code";
1137  group: tr("deprecated tagging");
1138  fixRemove: "phone";
1139  assertNoMatch: "node highway=emergency_access_point phone=123";
1140  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1141  assertMatch:   "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1142}
1143node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1144way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1145  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1146  suggestAlternative: "emergency_telephone_code";
1147  group: tr("deprecated tagging");
1148  assertNoMatch: "node highway=emergency_access_point phone=123";
1149  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1150  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1151}
1152
1153/* #13879 */
1154way[tracktype=1] {
1155  throwError: tr("{0}", "{0.tag}");
1156  suggestAlternative: "tracktype=grade1";
1157  group: tr("misspelled value");
1158  fixAdd: "tracktype=grade1";
1159}
1160way[tracktype=2] {
1161  throwError: tr("{0}", "{0.tag}");
1162  suggestAlternative: "tracktype=grade2";
1163  group: tr("misspelled value");
1164  fixAdd: "tracktype=grade2";
1165}
1166way[tracktype=3] {
1167  throwError: tr("{0}", "{0.tag}");
1168  suggestAlternative: "tracktype=grade3";
1169  group: tr("misspelled value");
1170  fixAdd: "tracktype=grade3";
1171}
1172way[tracktype=4] {
1173  throwError: tr("{0}", "{0.tag}");
1174  suggestAlternative: "tracktype=grade4";
1175  group: tr("misspelled value");
1176  fixAdd: "tracktype=grade4";
1177}
1178way[tracktype=5] {
1179  throwError: tr("{0}", "{0.tag}");
1180  suggestAlternative: "tracktype=grade5";
1181  group: tr("misspelled value");
1182  fixAdd: "tracktype=grade5";
1183}
1184way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1185  throwError: tr("wrong value: {0}", "{0.tag}");
1186  suggestAlternative: "tracktype=grade1";
1187  suggestAlternative: "tracktype=grade2";
1188  suggestAlternative: "tracktype=grade3";
1189  suggestAlternative: "tracktype=grade4";
1190  suggestAlternative: "tracktype=grade5";
1191}
1192
1193area[area][area!=yes][area!=no] {
1194  throwError: tr("wrong value: {0}", "{0.tag}");
1195  suggestAlternative: "area=yes";
1196  suggestAlternative: "area=no";
1197}
1198
1199/* #13953 */
1200*[amenity=hunting_stand][lock=yes],
1201*[amenity=hunting_stand][lock=no] {
1202  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1203  suggestAlternative: "lockable";
1204  group: tr("deprecated tagging");
1205  fixChangeKey: "lock => lockable";
1206}
1207
1208*[amenity=advertising][!advertising] {
1209  throwWarning: tr("{0} is deprecated", "{0.tag}");
1210  suggestAlternative: "advertising=*";
1211  group: tr("deprecated tagging");
1212}
1213*[amenity=advertising][advertising] {
1214  throwWarning: tr("{0} is deprecated", "{0.tag}");
1215  suggestAlternative: "advertising=*";
1216  group: tr("deprecated tagging");
1217  fixRemove: "amenity";
1218}
1219
1220way[direction=up][incline=up],
1221way[direction=down][incline=down],
1222way[direction=up][!incline],
1223way[direction=down][!incline] {
1224  throwWarning: tr("{0} is deprecated", "{0.tag}");
1225  suggestAlternative: "incline";
1226  group: tr("deprecated tagging");
1227  fixChangeKey: "direction => incline";
1228}
1229way[direction=up][incline][incline!=up],
1230way[direction=down][incline][incline!=down] {
1231  throwWarning: tr("{0} is deprecated", "{0.tag}");
1232  suggestAlternative: "incline";
1233  group: tr("deprecated tagging");
1234}
1235
1236way[building=y],
1237way[building=1] {
1238  throwError: tr("{0}", "{0.tag}");
1239  suggestAlternative: "building=yes";
1240  group: tr("misspelled value");
1241  fixAdd: "building=yes";
1242}
1243
1244/* #15675 */
1245node[power=transformer][location=pole][transformer] {
1246  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1247  group: tr("deprecated tagging");
1248  fixChangeKey: "location => power";
1249}
1250node[power=transformer][location=pole][!transformer] {
1251  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1252  group: tr("deprecated tagging");
1253  fixChangeKey: "location => power";
1254  fixAdd: "transformer=yes";
1255}
1256
1257node[tourism=picnic_table],
1258node[amenity=picnic_table],
1259node[leisure=picnic],
1260node[leisure=picnic_site] {
1261  throwWarning: tr("{0} is deprecated", "{0.tag}");
1262  suggestAlternative: "tourism=picnic_site";
1263  suggestAlternative: "leisure=picnic_table";
1264  group: tr("deprecated tagging");
1265}
1266
1267/* #15804 */
1268relation[water=salt],
1269way[water=salt],
1270way[water=salt_pool],
1271way[water=salt_panne],
1272way[water=salt_pond] {
1273  throwWarning: tr("{0} is deprecated", "{0.tag}");
1274  suggestAlternative: "salt=yes";
1275  suggestAlternative: "landuse=salt_pond";
1276  group: tr("deprecated tagging");
1277}
1278
1279/* #15805 */
1280way[water=tidal] {
1281  throwWarning: tr("{0} is deprecated", "{0.tag}");
1282  suggestAlternative: "tidal=yes";
1283  fixAdd: "tidal=yes";
1284  fixRemove: "water";
1285  group: tr("deprecated tagging");
1286}
1287
1288*[amenity=toilet] {
1289  throwError: tr("{0}", "{0.tag}");
1290  suggestAlternative: "amenity=toilets";
1291  group: tr("misspelled value");
1292  fixAdd: "amenity=toilets";
1293}
1294
1295way[power=busbar] {
1296  throwWarning: tr("{0} is deprecated", "{0.tag}");
1297  suggestAlternative: "power=line + line=busbar";
1298  group: tr("deprecated tagging");
1299  fixAdd: "power=line";
1300  fixAdd: "line=busbar";
1301}
Note: See TracBrowser for help on using the repository browser.