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

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