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

Last change on this file since 15954 was 15954, checked in by Klumbumbus, 5 weeks ago

see #9895 - Warn about values of noexit other than yes

  • Property svn:eol-style set to native
File size: 59.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, #18642 */
693*[/^.$/],
694node[/^..$/],
695way[/^..$/][route=ferry][!to],
696way[/^..$/][route!=ferry],
697relation[/^..$/][!to] {
698  throwWarning: tr("uncommon short key");
699  assertNoMatch: "relation to=Berlin";
700  assertMatch: "relation fo=bar";
701  assertMatch: "way to=bar";
702  assertNoMatch: "way to=Zuidschermer;Akersloot route=ferry";
703  assertMatch: "node fo=bar";
704  assertMatch: "node f=b";
705}
706
707/* see #11439 */
708*[sport=hockey] {
709  throwWarning: tr("{0} is deprecated", "{0.tag}");
710  suggestAlternative: "sport=field_hockey";
711  suggestAlternative: "sport=ice_hockey";
712  group: tr("deprecated tagging");
713}
714
715/* see #11471 */
716*[sport=billard],
717*[sport=billards],
718*[sport=billiard] {
719  throwWarning: tr("{0} is deprecated", "{0.tag}");
720  suggestAlternative: "sport=billiards";
721  group: tr("deprecated tagging");
722  fixAdd: "sport=billiards";
723}
724
725/* see #11499, #16928 */
726*[payment:credit_cards=yes] {
727  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");
728}
729*[payment:debit_cards=yes] {
730  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");
731}
732*[payment:electronic_purses=yes] {
733  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");
734}
735*[payment:cryptocurrencies=yes] {
736  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");
737}
738
739/* defunct payment cards */
740*[payment:ep_quick],
741*[payment:ep_cash],
742*[payment:ep_proton],
743*[payment:ep_chipknip] {
744  throwWarning: tr("{0} is deprecated", "{0.key}");
745  group: tr("deprecated tagging");
746  fixRemove: "{0.key}";
747}
748
749/* see #8717 */
750*[kp][highway=milestone],
751*[kp][railway=milestone],
752*[kp][waterway=milestone] {
753  throwWarning: tr("{0} is deprecated", "{0.key}");
754  suggestAlternative: "distance";
755  group: tr("deprecated tagging");
756  fixChangeKey: "kp => distance";
757}
758*[pk][highway=milestone],
759*[pk][railway=milestone],
760*[pk][waterway=milestone] {
761  throwWarning: tr("{0} is deprecated", "{0.key}");
762  suggestAlternative: "distance";
763  group: tr("deprecated tagging");
764  fixChangeKey: "pk => distance";
765}
766
767*[postcode] {
768  throwWarning: tr("{0} is deprecated", "{0.key}");
769  suggestAlternative: "addr:postcode";
770  group: tr("deprecated tagging");
771  suggestAlternative: "postal_code";
772}
773
774*[water=intermittent] {
775  throwWarning: tr("{0} is deprecated", "{0.tag}");
776  suggestAlternative: "intermittent=yes";
777  group: tr("deprecated tagging");
778  fixRemove: "water";
779  fixAdd: "intermittent=yes";
780}
781
782/* #10907, #14141 */
783/* 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 */
784way[type][type!=waterway][man_made=pipeline],
785node[type][pipeline=marker] {
786  throwWarning: tr("{0} is deprecated", "{0.key}");
787  suggestAlternative: "substance";
788  group: tr("deprecated tagging");
789  fixChangeKey: "type => substance";
790}
791
792*[landuse=farm] {
793  throwWarning: tr("{0} is deprecated", "{0.tag}");
794  suggestAlternative: "landuse=farmland";
795  suggestAlternative: "landuse=farmyard";
796  group: tr("deprecated tagging");
797}
798
799/* #12135 comment:11 */
800*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
801  throwWarning: tr("{0} is deprecated", "{0.tag}");
802  suggestAlternative: "{1.tag}";
803  group: tr("deprecated tagging");
804  fixRemove: "seamark";
805}
806*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
807  throwWarning: tr("{0} is deprecated", "{0.tag}");
808  suggestAlternative: "{1.tag}";
809  group: tr("deprecated tagging");
810}
811/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
812*[landuse=conservation] {
813  throwWarning: tr("{0} is deprecated", "{0.tag}");
814  suggestAlternative: "boundary=protected_area";
815  group: tr("deprecated tagging");
816  fixAdd: "boundary=protected_area";
817  fixRemove: "landuse";
818}
819
820/* #12205 */
821*[amenity=kiosk] {
822  throwWarning: tr("{0} is deprecated", "{0.tag}");
823  suggestAlternative: "shop=kiosk";
824  group: tr("deprecated tagging");
825  fixChangeKey: "amenity => shop";
826}
827*[amenity=shop] {
828  throwWarning: tr("{0} is deprecated", "{0.tag}");
829  suggestAlternative: "shop=*";
830  group: tr("deprecated tagging");
831}
832*[shop=fishmonger] {
833  throwWarning: tr("{0} is deprecated", "{0.tag}");
834  suggestAlternative: "shop=seafood";
835  group: tr("deprecated tagging");
836  fixAdd: "shop=seafood";
837}
838*[shop=fish] {
839  throwWarning: tr("{0} is deprecated", "{0.tag}");
840  suggestAlternative: "shop=seafood";
841  suggestAlternative: "shop=pet";
842  suggestAlternative: "shop=fishing";
843  group: tr("deprecated tagging");
844}
845*[shop=betting] {
846  throwWarning: tr("{0} is deprecated", "{0.tag}");
847  suggestAlternative: "shop=bookmaker";
848  suggestAlternative: "shop=lottery";
849  suggestAlternative: "amenity=casino";
850  suggestAlternative: "leisure=amusement_arcade";
851  suggestAlternative: "leisure=adult_gaming_centre";
852  suggestAlternative: "amenity=gambling";
853  group: tr("deprecated tagging");
854}
855*[shop=perfume] {
856  throwWarning: tr("{0} is deprecated", "{0.tag}");
857  suggestAlternative: "shop=perfumery";
858  group: tr("deprecated tagging");
859  fixAdd: "shop=perfumery";
860}
861*[amenity=exercise_point] {
862  throwWarning: tr("{0} is deprecated", "{0.tag}");
863  suggestAlternative: "leisure=fitness_station";
864  group: tr("deprecated tagging");
865  fixAdd: "leisure=fitness_station";
866  fixRemove: "amenity";
867}
868*[shop=auto_parts] {
869  throwWarning: tr("{0} is deprecated", "{0.tag}");
870  suggestAlternative: "shop=car_parts";
871  group: tr("deprecated tagging");
872  fixAdd: "shop=car_parts";
873}
874*[amenity=car_repair] {
875  throwWarning: tr("{0} is deprecated", "{0.tag}");
876  suggestAlternative: "shop=car_repair";
877  group: tr("deprecated tagging");
878  fixChangeKey: "amenity => shop";
879}
880
881/* #12311 */
882*[amenity=studio][type=audio],
883*[amenity=studio][type=radio],
884*[amenity=studio][type=television],
885*[amenity=studio][type=video] {
886  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
887  suggestAlternative: "studio";
888  group: tr("deprecated tagging");
889  fixChangeKey: "type => studio";
890}
891
892/* #11507, #12297, #15409 */
893*[power=cable_distribution_cabinet] {
894  throwWarning: tr("{0} is deprecated", "{0.tag}");
895  suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
896  group: tr("deprecated tagging");
897  fixAdd: "man_made=street_cabinet";
898  fixRemove: "power";
899}
900
901/* #16430 */
902*[power][location=kiosk] {
903  throwWarning: tr("{0} is deprecated", "{1.tag}");
904  group: tr("deprecated tagging");
905  fixAdd: "man_made=street_cabinet";
906  fixAdd: "street_cabinet=power";
907  fixRemove: "location";
908}
909
910/* #12276 */
911*[man_made=well] {
912  throwWarning: tr("{0} is deprecated", "{0.tag}");
913  suggestAlternative: "man_made=water_well";
914  suggestAlternative: "man_made=petroleum_well";
915  group: tr("deprecated tagging");
916}
917*[amenity=dog_bin],
918*[amenity=dog_waste_bin] {
919  throwWarning: tr("{0} is deprecated", "{0.tag}");
920  suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
921  group: tr("deprecated tagging");
922  fixAdd: "amenity=waste_basket";
923  fixAdd: "waste=dog_excrement";
924  fixAdd: "vending=excrement_bags";
925}
926*[amenity=artwork] {
927  throwWarning: tr("{0} is deprecated", "{0.tag}");
928  suggestAlternative: "tourism=artwork";
929  group: tr("deprecated tagging");
930  fixAdd: "tourism=artwork";
931  fixRemove: "amenity";
932}
933*[amenity=community_center] {
934  throwWarning: tr("{0} is deprecated", "{0.tag}");
935  suggestAlternative: "amenity=community_centre";
936  group: tr("deprecated tagging");
937  fixAdd: "amenity=community_centre";
938}
939*[man_made=cut_line] {
940  throwWarning: tr("{0} is deprecated", "{0.tag}");
941  suggestAlternative: "man_made=cutline";
942  group: tr("deprecated tagging");
943  fixAdd: "man_made=cutline";
944}
945*[amenity=park] {
946  throwWarning: tr("{0} is deprecated", "{0.tag}");
947  suggestAlternative: "leisure=park";
948  group: tr("deprecated tagging");
949  fixAdd: "leisure=park";
950  fixRemove: "amenity";
951}
952*[amenity=hotel] {
953  throwWarning: tr("{0} is deprecated", "{0.tag}");
954  suggestAlternative: "tourism=hotel";
955  group: tr("deprecated tagging");
956  fixAdd: "tourism=hotel";
957  fixRemove: "amenity";
958}
959*[shop=window],
960*[shop=windows] {
961  throwWarning: tr("{0} is deprecated", "{0.tag}");
962  suggestAlternative: "craft=window_construction";
963  group: tr("deprecated tagging");
964  fixAdd: "craft=window_construction";
965  fixRemove: "shop";
966}
967*[amenity=education] {
968  throwWarning: tr("{0} is deprecated", "{0.tag}");
969  suggestAlternative: "amenity=college";
970  suggestAlternative: "amenity=school";
971  suggestAlternative: "amenity=university";
972  group: tr("deprecated tagging");
973}
974*[shop=gallery] {
975  throwWarning: tr("{0} is deprecated", "{0.tag}");
976  suggestAlternative: "shop=art";
977  group: tr("deprecated tagging");
978  fixAdd: "shop=art";
979}
980*[shop=gambling],
981*[leisure=gambling] {
982  throwWarning: tr("{0} is deprecated", "{0.tag}");
983  suggestAlternative: "shop=bookmaker";
984  suggestAlternative: "shop=lottery";
985  suggestAlternative: "amenity=casino";
986  suggestAlternative: "leisure=amusement_arcade";
987  suggestAlternative: "amenity=gambling";
988  group: tr("deprecated tagging");
989}
990*[office=real_estate],
991*[office=real_estate_agent] {
992  throwWarning: tr("{0} is deprecated", "{0.tag}");
993  suggestAlternative: "office=estate_agent";
994  group: tr("deprecated tagging");
995  fixAdd: "office=estate_agent";
996}
997*[shop=glass] {
998  throwWarning: tr("{0} is deprecated", "{0.tag}");
999  suggestAlternative: "shop=glaziery";
1000  suggestAlternative: "craft=glaziery";
1001  group: tr("deprecated tagging");
1002}
1003*[amenity=proposed],
1004*[amenity=proposed],
1005*[amenity=disused],
1006*[shop=disused],
1007*[highway=abandoned],
1008*[historic=abandoned] {
1009  throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
1010  group: tr("deprecated tagging");
1011}
1012
1013/* #12431 */
1014*[amenity=swimming_pool] {
1015  throwWarning: tr("{0} is deprecated", "{0.tag}");
1016  suggestAlternative: "leisure=swimming_pool";
1017  group: tr("deprecated tagging");
1018  fixChangeKey: "amenity => leisure";
1019}
1020
1021/* #17379 */
1022*[amenity=sauna] {
1023  throwWarning: tr("{0} is deprecated", "{0.tag}");
1024  suggestAlternative: "leisure=sauna";
1025  group: tr("deprecated tagging");
1026  fixChangeKey: "amenity => leisure";
1027}
1028
1029/* #12494, #17554 */
1030*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
1031  throwWarning: tr("{0}", "{0.key}");
1032  group: tr("questionable key (ending with a number)");
1033  assertMatch: "way name_1=foo";
1034  assertNoMatch: "way note_2=foo";
1035  assertNoMatch: "way description_3=foo";
1036  assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
1037}
1038
1039/* #12500 */
1040*[sport=skating] {
1041  throwWarning: tr("{0} is deprecated", "{0.tag}");
1042  suggestAlternative: "sport=ice_skating";
1043  suggestAlternative: "sport=roller_skating";
1044  group: tr("deprecated tagging");
1045}
1046
1047way[barrier=wall][type=noise_barrier][!wall],
1048way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
1049  throwWarning: tr("{0} is deprecated", "{1.tag}");
1050  suggestAlternative: "wall=noise_barrier";
1051  group: tr("deprecated tagging");
1052  fixChangeKey: "type => wall";
1053}
1054way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
1055  throwWarning: tr("{0} is deprecated", "{1.tag}");
1056  suggestAlternative: "wall=noise_barrier";
1057  group: tr("deprecated tagging");
1058}
1059
1060/* #8978, 12588 */
1061*[amenity=public_building] {
1062  throwWarning: tr("{0} is deprecated", "{0.tag}");
1063  suggestAlternative: "amenity=townhall";
1064  suggestAlternative: "amenity=community_centre";
1065  suggestAlternative: "amenity=hospital";
1066  suggestAlternative: "leisure=sports_centre";
1067  suggestAlternative: "office=government";
1068  suggestAlternative: "building=hospital";
1069  suggestAlternative: "building=public";
1070  suggestAlternative: "...";
1071  group: tr("deprecated tagging");
1072}
1073
1074/* #18517 */
1075*[office=administrative] {
1076  throwWarning: tr("{0} is deprecated", "{0.tag}");
1077  suggestAlternative: "office=government";
1078  group: tr("deprecated tagging");
1079  fixAdd: "office=government";
1080}
1081
1082/* #12708 */
1083*[vending=news_papers] {
1084  throwWarning: tr("{0} is deprecated", "{0.tag}");
1085  suggestAlternative: "vending=newspapers";
1086  group: tr("deprecated tagging");
1087  fixAdd: "vending=newspapers";
1088}
1089
1090/* #12771 */
1091*[service=drive_through] {
1092  throwWarning: tr("{0} is deprecated", "{0.tag}");
1093  suggestAlternative: "service=drive-through";
1094  group: tr("deprecated tagging");
1095  fixAdd: "service=drive-through";
1096}
1097
1098/* #12771, #9895 */
1099*[noexit][noexit!=yes][noexit!=no], /* noexit=no has an own warning */
1100way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|slipway|yes)$/], /* drive_through and yes have special warnings */
1101way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1102way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1103  throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
1104}
1105
1106/* #13008 */
1107*[name:botanical] {
1108  throwWarning: tr("{0} is deprecated", "{0.key}");
1109  suggestAlternative: "species";
1110  group: tr("deprecated tagging");
1111}
1112
1113/* #11344, #13101, #15480 */
1114node[pole=air_to_ground],
1115node[pole=transition] {
1116  throwWarning: tr("{0} is deprecated", "{0.tag}");
1117  suggestAlternative: "location:transition=yes";
1118  group: tr("deprecated tagging");
1119  fixAdd: "location:transition=yes";
1120  fixRemove: "pole";
1121}
1122node[tower=air_to_ground],
1123node[tower=transition] {
1124  throwWarning: tr("{0} is deprecated", "{0.tag}");
1125  suggestAlternative: "location:transition=yes";
1126  group: tr("deprecated tagging");
1127  fixAdd: "location:transition=yes";
1128  fixRemove: "tower";
1129}
1130
1131/* #13138 */
1132area[landuse=pond] {
1133  throwWarning: tr("{0} is deprecated", "{0.tag}");
1134  suggestAlternative: "natural=water + water=pond";
1135  group: tr("deprecated tagging");
1136  fixAdd: "natural=water";
1137  fixAdd: "water=pond";
1138  fixRemove: "landuse";
1139}
1140
1141*[shop=souvenir],
1142*[shop=souvenirs],
1143*[shop=souveniers] {
1144  throwWarning: tr("{0} is deprecated", "{0.tag}");
1145  suggestAlternative: "shop=gift";
1146  group: tr("deprecated tagging");
1147  fixAdd: "shop=gift";
1148}
1149
1150*[vending=animal_food] {
1151  throwWarning: tr("{0} is deprecated", "{0.tag}");
1152  suggestAlternative: "vending=animal_feed";
1153  group: tr("deprecated tagging");
1154  fixAdd: "vending=animal_feed";
1155}
1156
1157/* #14376 */
1158node[vending=photos][amenity=vending_machine],
1159node[vending=photo][amenity=vending_machine] {
1160  throwWarning: tr("{0} is deprecated", "{0.tag}");
1161  suggestAlternative: "amenity=photo_booth";
1162  group: tr("deprecated tagging");
1163  fixRemove: "vending";
1164  fixAdd: "amenity=photo_booth";
1165
1166}
1167node[vending=photos][amenity!=vending_machine] {
1168  throwWarning: tr("{0} is deprecated", "{0.tag}");
1169  suggestAlternative: "amenity=photo_booth";
1170  group: tr("deprecated tagging");
1171}
1172
1173/* #13653 */
1174node[highway=emergency_access_point][phone][!emergency_telephone_code],
1175way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1176  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1177  suggestAlternative: "emergency_telephone_code";
1178  group: tr("deprecated tagging");
1179  fixChangeKey: "phone => emergency_telephone_code";
1180  assertMatch:   "node highway=emergency_access_point phone=123";
1181  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1182  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1183  assertNoMatch: "node phone=123";
1184}
1185node[highway=emergency_access_point][phone=*emergency_telephone_code],
1186way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1187  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1188  suggestAlternative: "emergency_telephone_code";
1189  group: tr("deprecated tagging");
1190  fixRemove: "phone";
1191  assertNoMatch: "node highway=emergency_access_point phone=123";
1192  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1193  assertMatch:   "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1194}
1195node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1196way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1197  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1198  suggestAlternative: "emergency_telephone_code";
1199  group: tr("deprecated tagging");
1200  assertNoMatch: "node highway=emergency_access_point phone=123";
1201  assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1202  assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1203}
1204
1205/* #13879 */
1206way[tracktype=1] {
1207  throwError: tr("{0}", "{0.tag}");
1208  suggestAlternative: "tracktype=grade1";
1209  group: tr("misspelled value");
1210  fixAdd: "tracktype=grade1";
1211}
1212way[tracktype=2] {
1213  throwError: tr("{0}", "{0.tag}");
1214  suggestAlternative: "tracktype=grade2";
1215  group: tr("misspelled value");
1216  fixAdd: "tracktype=grade2";
1217}
1218way[tracktype=3] {
1219  throwError: tr("{0}", "{0.tag}");
1220  suggestAlternative: "tracktype=grade3";
1221  group: tr("misspelled value");
1222  fixAdd: "tracktype=grade3";
1223}
1224way[tracktype=4] {
1225  throwError: tr("{0}", "{0.tag}");
1226  suggestAlternative: "tracktype=grade4";
1227  group: tr("misspelled value");
1228  fixAdd: "tracktype=grade4";
1229}
1230way[tracktype=5] {
1231  throwError: tr("{0}", "{0.tag}");
1232  suggestAlternative: "tracktype=grade5";
1233  group: tr("misspelled value");
1234  fixAdd: "tracktype=grade5";
1235}
1236way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1237  throwError: tr("wrong value: {0}", "{0.tag}");
1238  suggestAlternative: "tracktype=grade1";
1239  suggestAlternative: "tracktype=grade2";
1240  suggestAlternative: "tracktype=grade3";
1241  suggestAlternative: "tracktype=grade4";
1242  suggestAlternative: "tracktype=grade5";
1243}
1244
1245area[area][area!=yes][area!=no] {
1246  throwError: tr("wrong value: {0}", "{0.tag}");
1247  suggestAlternative: "area=yes";
1248  suggestAlternative: "area=no";
1249}
1250
1251/* #13953 */
1252*[amenity=hunting_stand][lock=yes],
1253*[amenity=hunting_stand][lock=no] {
1254  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1255  suggestAlternative: "lockable";
1256  group: tr("deprecated tagging");
1257  fixChangeKey: "lock => lockable";
1258}
1259
1260*[amenity=advertising][!advertising] {
1261  throwWarning: tr("{0} is deprecated", "{0.tag}");
1262  suggestAlternative: "advertising=*";
1263  group: tr("deprecated tagging");
1264}
1265*[amenity=advertising][advertising] {
1266  throwWarning: tr("{0} is deprecated", "{0.tag}");
1267  suggestAlternative: "advertising=*";
1268  group: tr("deprecated tagging");
1269  fixRemove: "amenity";
1270}
1271
1272way[direction=up][incline=up],
1273way[direction=down][incline=down],
1274way[direction=up][!incline],
1275way[direction=down][!incline] {
1276  throwWarning: tr("{0} is deprecated", "{0.tag}");
1277  suggestAlternative: "incline";
1278  group: tr("deprecated tagging");
1279  fixChangeKey: "direction => incline";
1280}
1281way[direction=up][incline][incline!=up],
1282way[direction=down][incline][incline!=down] {
1283  throwWarning: tr("{0} is deprecated", "{0.tag}");
1284  suggestAlternative: "incline";
1285  group: tr("deprecated tagging");
1286}
1287
1288*[building=true],
1289*[building="*"],
1290*[building=Y],
1291*[building=y],
1292*[building=1] {
1293  throwError: tr("{0}", "{0.tag}");
1294  suggestAlternative: "building=yes";
1295  group: tr("misspelled value");
1296  fixAdd: "building=yes";
1297}
1298
1299/* #17786, #18612 */
1300*[building=abandoned],
1301*[building=address],
1302*[building=bing],
1303*[building=collapsed],
1304*[building=damaged],
1305*[building=demolished],
1306*[building=disused],
1307*[building=fixme],
1308*[building=occupied],
1309*[building=razed] {
1310  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1311  group: tr("deprecated tagging");
1312}
1313*[building=other],
1314*[building=unclassified],
1315*[building=undefined],
1316*[building=unknown],
1317*[building=unidentified] {
1318  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1319  group: tr("deprecated tagging");
1320  fixAdd: "building=yes";
1321}
1322
1323/* #15675 */
1324node[power=transformer][location=pole][transformer] {
1325  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1326  group: tr("deprecated tagging");
1327  fixChangeKey: "location => power";
1328}
1329node[power=transformer][location=pole][!transformer] {
1330  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1331  group: tr("deprecated tagging");
1332  fixChangeKey: "location => power";
1333  fixAdd: "transformer=yes";
1334}
1335
1336node[tourism=picnic_table],
1337node[amenity=picnic_table],
1338node[leisure=picnic],
1339node[leisure=picnic_site] {
1340  throwWarning: tr("{0} is deprecated", "{0.tag}");
1341  suggestAlternative: "tourism=picnic_site";
1342  suggestAlternative: "leisure=picnic_table";
1343  group: tr("deprecated tagging");
1344}
1345
1346/* #15804 */
1347relation[water=salt],
1348way[water=salt],
1349way[water=salt_pool],
1350way[water=salt_panne],
1351way[water=salt_pond] {
1352  throwWarning: tr("{0} is deprecated", "{0.tag}");
1353  suggestAlternative: "salt=yes";
1354  suggestAlternative: "landuse=salt_pond";
1355  group: tr("deprecated tagging");
1356}
1357
1358/* #15805 */
1359way[water=tidal] {
1360  throwWarning: tr("{0} is deprecated", "{0.tag}");
1361  suggestAlternative: "tidal=yes";
1362  fixAdd: "tidal=yes";
1363  fixRemove: "water";
1364  group: tr("deprecated tagging");
1365}
1366
1367*[amenity=toilet] {
1368  throwError: tr("{0}", "{0.tag}");
1369  suggestAlternative: "amenity=toilets";
1370  group: tr("misspelled value");
1371  fixAdd: "amenity=toilets";
1372}
1373
1374way[power=busbar] {
1375  throwWarning: tr("{0} is deprecated", "{0.tag}");
1376  suggestAlternative: "power=line + line=busbar";
1377  group: tr("deprecated tagging");
1378  fixAdd: "power=line";
1379  fixAdd: "line=busbar";
1380}
1381
1382/* #16924 */
1383*[man_made=MDF],
1384*[man_made=telephone_exchange] {
1385  throwWarning: tr("{0} is deprecated", "{0.tag}");
1386  suggestAlternative: "telecom=exchange";
1387  fixAdd: "telecom=exchange";
1388  fixRemove: "man_made";
1389  group: tr("deprecated tagging");
1390}
1391*[building=central_office] {
1392  throwWarning: tr("{0} is deprecated", "{0.tag}");
1393  suggestAlternative: "telecom=exchange";
1394  fixAdd: "telecom=exchange";
1395  fixAdd: "building=yes";
1396  group: tr("deprecated tagging");
1397}
1398*[telecom=central_office] {
1399  throwWarning: tr("{0} is deprecated", "{0.tag}");
1400  suggestAlternative: "telecom=exchange";
1401  fixAdd: "telecom=exchange";
1402  group: tr("deprecated tagging");
1403}
1404
1405/* #16925 */
1406node[communication=outdoor_dslam],
1407node[man_made=outdoor_dslam],
1408node[street_cabinet=outdoor_dslam] {
1409  throwWarning: tr("{0} is deprecated", "{0.tag}");
1410  suggestAlternative: "telecom=service_device";
1411  fixAdd: "telecom=service_device";
1412  fixRemove: "{0.key}";
1413  group: tr("deprecated tagging");
1414}
1415node[telecom=dslam],
1416node[telecom=outdoor_dslam] {
1417  throwWarning: tr("{0} is deprecated", "{0.tag}");
1418  suggestAlternative: "telecom=service_device";
1419  fixAdd: "telecom=service_device";
1420  group: tr("deprecated tagging");
1421}
1422
1423/* #15774 */
1424node[amenity=fire_hydrant] {
1425  throwWarning: tr("{0} is deprecated", "{0.tag}");
1426  suggestAlternative: "emergency=fire_hydrant";
1427  fixChangeKey: "amenity => emergency";
1428  group: tr("deprecated tagging");
1429}
1430node[fire_hydrant:type=pond] {
1431  throwWarning: tr("{0} is deprecated", "{0.tag}");
1432  suggestAlternative: "water_source=pond";
1433  fixAdd: "water_source=pond";
1434  fixRemove: "{0.key}";
1435  group: tr("deprecated tagging");
1436}
1437node[fire_hydrant:flow_capacity] {
1438  throwWarning: tr("{0} is deprecated", "{0.key}");
1439  suggestAlternative: "flow_rate";
1440  group: tr("deprecated tagging");
1441}
1442node[emergency=fire_hydrant][in_service=no] {
1443  throwWarning: tr("{0} is deprecated", "{1.tag}");
1444  suggestAlternative: "disused:emergency=fire_hydrant";
1445  fixAdd: "disused:emergency=fire_hydrant";
1446  fixRemove: "{1.key}";
1447  fixRemove: "{0.key}";
1448  group: tr("deprecated tagging");
1449}
1450node[fire_hydrant:water_source] {
1451  throwWarning: tr("{0} is deprecated", "{0.key}");
1452  suggestAlternative: "water_source";
1453  fixChangeKey: "fire_hydrant:water_source => water_source";
1454  group: tr("deprecated tagging");
1455}
1456
1457/* #17383 */
1458*[natural=waterfall] {
1459  throwWarning: tr("{0} is deprecated", "{0.tag}");
1460  suggestAlternative: "waterway=waterfall";
1461  fixChangeKey: "natural => waterway";
1462  group: tr("deprecated tagging");
1463}
1464
1465/* #17249 */
1466*[religion=unitarian] {
1467  throwWarning: tr("{0} is deprecated", "{0.tag}");
1468  suggestAlternative: "religion=unitarian_universalist";
1469  fixAdd: "religion=unitarian_universalist";
1470  group: tr("deprecated tagging");
1471}
1472
1473*[shop=shopping_centre] {
1474  throwWarning: tr("{0} is deprecated", "{0.tag}");
1475  suggestAlternative: "shop=mall";
1476  fixAdd: "shop=mall";
1477  group: tr("deprecated tagging");
1478}
1479
1480/* #17504 */
1481*[is_in],
1482node[/^is_in:.*$/],
1483way[/^is_in:.*$/] {
1484  throwWarning: tr("{0} is deprecated", "{0.key}");
1485  group: tr("deprecated tagging");
1486  fixRemove: "{0.key}";
1487}
1488
1489/* #17593 */
1490*[sport=football] {
1491  throwWarning: tr("{0} is deprecated", "{0.tag}");
1492  suggestAlternative: "sport=soccer";
1493  suggestAlternative: "sport=american_football";
1494  suggestAlternative: "sport=australian_football";
1495  suggestAlternative: "sport=canadian_football";
1496  suggestAlternative: "sport=rugby_league";
1497  suggestAlternative: "sport=rugby_union";
1498  suggestAlternative: "sport=gaelic_games";
1499  group: tr("deprecated tagging");
1500}
1501
1502/* #17556 */
1503*[leisure=common] {
1504  throwWarning: tr("{0} is deprecated", "{0.tag}");
1505  suggestAlternative: "landuse=*";
1506  suggestAlternative: "leisure=*";
1507  suggestAlternative: "designation=common";
1508  group: tr("deprecated tagging");
1509}
1510
1511/* #17043 */
1512*[cuisine=vegan],
1513*[cuisine=vegetarian] {
1514  throwWarning: tr("{0} is deprecated", "{0.tag}");
1515  suggestAlternative: concat("diet:", "{0.value}", "=yes");
1516  suggestAlternative: concat("diet:", "{0.value}", "=only");
1517  group: tr("deprecated tagging");
1518}
1519
1520/* #17798 */
1521*[kitchen_hours] {
1522  throwWarning: tr("{0} is deprecated", "{0.key}");
1523  suggestAlternative: "opening_hours:kitchen";
1524  fixChangeKey: "kitchen_hours => opening_hours:kitchen";
1525  group: tr("deprecated tagging");
1526}
1527
1528/* #17681 */
1529*[shop=money_transfer] {
1530  throwWarning: tr("{0} is deprecated", "{0.tag}");
1531  suggestAlternative: "amenity=money_transfer";
1532  fixChangeKey: "shop => amenity";
1533  group: tr("deprecated tagging");
1534}
1535
1536*[contact:google_plus] {
1537  throwWarning: tr("{0} is deprecated", "{0.key}");
1538  fixRemove: "contact:google_plus";
1539  group: tr("deprecated tagging");
1540}
1541
1542/* #17370  */
1543*[amenity=garages],
1544*[amenity=garage] {
1545  throwWarning: tr("{0} is deprecated", "{0.tag}");
1546  suggestAlternative: concat("building=", "{0.value}");
1547  suggestAlternative: "landuse=garages";
1548  suggestAlternative: "amenity=parking + parking=garage_boxes";
1549  group: tr("deprecated tagging");
1550}
1551*[shop=winery],
1552*[amenity=winery] {
1553  throwWarning: tr("{0} is deprecated", "{0.tag}");
1554  suggestAlternative: "craft=winery";
1555  suggestAlternative: "shop=wine";
1556  group: tr("deprecated tagging");
1557}
1558*[amenity=youth_centre] {
1559  throwWarning: tr("{0} is deprecated", "{0.tag}");
1560  suggestAlternative: "amenity=community_centre + community_centre=youth_centre";
1561  fixAdd: "amenity=community_centre";
1562  fixAdd: "community_centre=youth_centre";
1563  group: tr("deprecated tagging");
1564}
1565*[building:type][building=yes],
1566*[building:type][!building] {
1567  throwWarning: tr("{0} is deprecated", "{0.key}");
1568  suggestAlternative: "building";
1569  group: tr("deprecated tagging");
1570  fixChangeKey: "building:type => building";
1571  assertMatch: "way building:type=church";
1572  assertMatch: "way building:type=church building=yes";
1573  assertNoMatch: "way building:type=church building=supermarket";
1574}
1575*[building:type][building][building!=yes] {
1576  throwWarning: tr("{0} is deprecated", "{0.key}");
1577  suggestAlternative: "building";
1578  group: tr("deprecated tagging");
1579  assertNoMatch: "way building:type=church";
1580  assertNoMatch: "way building:type=church building=yes";
1581  assertMatch: "way building:type=church building=supermarket";
1582}
1583*[escalator] {
1584  throwWarning: tr("{0} is deprecated", "{0.key}");
1585  suggestAlternative: "highway=steps + conveying=*";
1586  group: tr("deprecated tagging");
1587}
1588*[fenced] {
1589  throwWarning: tr("{0} is deprecated", "{0.key}");
1590  suggestAlternative: "barrier=fence";
1591  group: tr("deprecated tagging");
1592}
1593*[historic_name][!old_name] {
1594  throwWarning: tr("{0} is deprecated", "{0.key}");
1595  suggestAlternative: "old_name";
1596  group: tr("deprecated tagging");
1597  fixChangeKey: "historic_name => old_name";
1598}
1599*[historic_name][old_name] {
1600  throwWarning: tr("{0} is deprecated", "{0.key}");
1601  suggestAlternative: "old_name";
1602  group: tr("deprecated tagging");
1603}
1604*[landuse=field] {
1605  throwWarning: tr("{0} is deprecated", "{0.tag}");
1606  suggestAlternative: "landuse=farmland";
1607  group: tr("deprecated tagging");
1608  fixAdd: "landuse=farmland";
1609}
1610*[leisure=beach] {
1611  throwWarning: tr("{0} is deprecated", "{0.tag}");
1612  suggestAlternative: "natural=beach";
1613  suggestAlternative: "leisure=beach_resort";
1614  group: tr("deprecated tagging");
1615}
1616*[leisure=club] {
1617  throwWarning: tr("{0} is deprecated", "{0.tag}");
1618  suggestAlternative: "club=*";
1619  group: tr("deprecated tagging");
1620}
1621*[leisure=video_arcade] {
1622  throwWarning: tr("{0} is deprecated", "{0.tag}");
1623  suggestAlternative: "leisure=amusement_arcade";
1624  suggestAlternative: "leisure=adult_gaming_centre";
1625  group: tr("deprecated tagging");
1626}
1627*[man_made=jetty] {
1628  throwWarning: tr("{0} is deprecated", "{0.tag}");
1629  suggestAlternative: "man_made=pier";
1630  group: tr("deprecated tagging");
1631  fixAdd: "man_made=pier";
1632}
1633*[man_made=village_pump] {
1634  throwWarning: tr("{0} is deprecated", "{0.tag}");
1635  suggestAlternative: "man_made=water_well";
1636  group: tr("deprecated tagging");
1637  fixAdd: "man_made=water_well";
1638}
1639*[man_made=water_tank] {
1640  throwWarning: tr("{0} is deprecated", "{0.tag}");
1641  suggestAlternative: "man_made=storage_tank + content=water";
1642  group: tr("deprecated tagging");
1643  fixAdd: "man_made=storage_tank";
1644  fixAdd: "content=water";
1645}
1646*[natural=moor] {
1647  throwWarning: tr("{0} is deprecated", "{0.tag}");
1648  suggestAlternative: "natural=heath";
1649  suggestAlternative: "natural=scrub";
1650  suggestAlternative: "natural=grassland";
1651  suggestAlternative: "natural=wetland";
1652  suggestAlternative: "natural=fell";
1653  suggestAlternative: "natural=tundra";
1654  suggestAlternative: "landuse=meadow + meadow=agricultural";
1655  group: tr("deprecated tagging");
1656}
1657*[noexit=no][!fixme] {
1658  throwWarning: tr("{0} is deprecated", "{0.tag}");
1659  suggestAlternative: "fixme=continue";
1660  group: tr("deprecated tagging");
1661  fixAdd: "fixme=continue";
1662  fixRemove: "noexit";
1663}
1664*[noexit=no][fixme] {
1665  throwWarning: tr("{0} is deprecated", "{0.tag}");
1666  suggestAlternative: "fixme=continue";
1667  group: tr("deprecated tagging");
1668}
1669*[shop=dive] {
1670  throwWarning: tr("{0} is deprecated", "{0.tag}");
1671  suggestAlternative: "shop=scuba_diving";
1672  group: tr("deprecated tagging");
1673  fixAdd: "shop=scuba_diving";
1674}
1675*[shop=furnace] {
1676  throwWarning: tr("{0} is deprecated", "{0.tag}");
1677  suggestAlternative: "shop=fireplace";
1678  suggestAlternative: "craft=plumber";
1679  group: tr("deprecated tagging");
1680}
1681*[sport=paragliding] {
1682  throwWarning: tr("{0} is deprecated", "{0.tag}");
1683  suggestAlternative: "sport=free_flying";
1684  group: tr("deprecated tagging");
1685  fixAdd: "sport=free_flying";
1686}
1687*[tourism=bed_and_breakfast] {
1688  throwWarning: tr("{0} is deprecated", "{0.tag}");
1689  suggestAlternative: "tourism=guest_house + guest_house=bed_and_breakfast";
1690  group: tr("deprecated tagging");
1691  fixAdd: "tourism=guest_house";
1692  fixAdd: "guest_house=bed_and_breakfast";
1693}
1694
1695/* #17880 */
1696*[diaper=yes],
1697*[diaper=no] {
1698  throwWarning: tr("{0} is deprecated", "{0.tag}");
1699  suggestAlternative: concat("changing_table=", "{0.value}");
1700  group: tr("deprecated tagging");
1701  fixChangeKey: "diaper => changing_table";
1702  set diaper_checked;
1703}
1704*[diaper][diaper =~ /^[1-9][0-9]*$/] {
1705  throwWarning: tr("{0} is deprecated", "{0.tag}");
1706  suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}");
1707  group: tr("deprecated tagging");
1708  fixChangeKey: "diaper => changing_table:count";
1709  fixAdd: "changing_table=yes";
1710  set diaper_checked;
1711}
1712*[diaper=room] {
1713  throwWarning: tr("{0} is deprecated", "{0.tag}");
1714  suggestAlternative: "changing_table=room";
1715  suggestAlternative: "changing_table=dedicated_room";
1716  group: tr("deprecated tagging");
1717  set diaper_checked;
1718}
1719*[diaper]!.diaper_checked {
1720  throwWarning: tr("{0} is deprecated", "{0.key}");
1721  suggestAlternative: "changing_table";
1722  group: tr("deprecated tagging");
1723}
1724*[diaper:male=yes] {
1725  throwWarning: tr("{0} is deprecated", "{0.tag}");
1726  suggestAlternative: "changing_table:location=male_toilet";
1727  group: tr("deprecated tagging");
1728  fixAdd: "changing_table:location=male_toilet";
1729  fixRemove: "diaper:male";
1730  set diaper___checked;
1731}
1732*[diaper:female=yes] {
1733  throwWarning: tr("{0} is deprecated", "{0.tag}");
1734  suggestAlternative: "changing_table:location=female_toilet";
1735  group: tr("deprecated tagging");
1736  fixAdd: "changing_table:location=female_toilet";
1737  fixRemove: "diaper:female";
1738  set diaper___checked;
1739}
1740*[diaper:unisex=yes] {
1741  throwWarning: tr("{0} is deprecated", "{0.tag}");
1742  suggestAlternative: "changing_table:location=unisex_toilet";
1743  group: tr("deprecated tagging");
1744  fixAdd: "changing_table:location=unisex_toilet";
1745  fixRemove: "diaper:unisex";
1746  set diaper___checked;
1747}
1748*[diaper:wheelchair=yes],
1749*[diaper:wheelchair=no] {
1750  throwWarning: tr("{0} is deprecated", "{0.tag}");
1751  suggestAlternative: concat("changing_table:wheelchair=", "{0.value}");
1752  group: tr("deprecated tagging");
1753  fixChangeKey: "diaper:wheelchair => changing_table:wheelchair";
1754  set diaper___checked;
1755}
1756*[diaper:fee=yes],
1757*[diaper:fee=no] {
1758  throwWarning: tr("{0} is deprecated", "{0.tag}");
1759  suggestAlternative: concat("changing_table:fee=", "{0.value}");
1760  group: tr("deprecated tagging");
1761  fixChangeKey: "diaper:fee => changing_table:fee";
1762  set diaper___checked;
1763}
1764*[/^diaper:/]!.diaper___checked {
1765  throwWarning: tr("{0} is deprecated", "diaper:*");
1766  suggestAlternative: "changing_table:*";
1767  group: tr("deprecated tagging");
1768}
1769*[changing_table][changing_table!~/^(yes|no|limited)$/] {
1770  throwWarning: tr("wrong value: {0}", "{0.tag}");
1771  suggestAlternative: "changing_table=yes";
1772  suggestAlternative: "changing_table=no";
1773  suggestAlternative: "changing_table=limited";
1774}
1775
1776/* #17990 */
1777*[roof:shape=half_hipped] {
1778  throwWarning: tr("{0} is deprecated", "{0.tag}");
1779  suggestAlternative: "roof:shape=half-hipped";
1780  group: tr("deprecated tagging");
1781  fixAdd: "roof:shape=half-hipped";
1782}
1783
1784/* #18003 */
1785*[bridge_name] {
1786  throwWarning: tr("{0} is deprecated", "{0.key}");
1787  suggestAlternative: "bridge:name";
1788  group: tr("deprecated tagging");
1789  fixChangeKey: "bridge_name => bridge:name";
1790}
1791
1792/* #18007 */
1793*[access=public] {
1794  throwWarning: tr("{0} is deprecated", "{0.tag}");
1795  suggestAlternative: "access=yes";
1796  group: tr("deprecated tagging");
1797  fixAdd: "access=yes";
1798}
1799
1800/* #17330 */
1801*[crossing=island] {
1802  throwWarning: tr("{0} is deprecated", "{0.tag}");
1803  suggestAlternative: "crossing:island=yes";
1804  group: tr("deprecated tagging");
1805  fixRemove: "crossing";
1806  fixAdd: "crossing:island=yes";
1807}
1808
1809/* #18152 */
1810*[recycling:metal] {
1811  throwWarning: tr("{0} is deprecated", "{0.key}");
1812  suggestAlternative: "recycling:scrap_metal";
1813  group: tr("deprecated tagging");
1814  fixChangeKey: "recycling:metal => recycling:scrap_metal";
1815}
1816
1817/* #18154 */
1818*[shop=dog_grooming] {
1819  throwWarning: tr("{0} is deprecated", "{0.tag}");
1820  suggestAlternative: "shop=pet_grooming";
1821  fixAdd: "shop=pet_grooming";
1822  group: tr("deprecated tagging");
1823}
1824
1825/* #17984 */
1826*[tower:type=anchor],
1827*[tower:type=suspension] {
1828  throwWarning: tr("{0} is deprecated", "{0.tag}");
1829  suggestAlternative: concat("line_attachment=", "{0.value}");
1830  fixChangeKey: "tower:type => line_attachment";
1831  group: tr("deprecated tagging");
1832}
1833node[pole:type=anchor],
1834node[pole:type=suspension] {
1835  throwWarning: tr("{0} is deprecated", "{0.tag}");
1836  suggestAlternative: concat("line_attachment=", "{0.value}");
1837  fixChangeKey: "pole:type => line_attachment";
1838  group: tr("deprecated tagging");
1839}
1840
1841/* #18267 */
1842node[man_made=pipeline_marker],
1843node[pipeline=marker],
1844node[power=marker],
1845node[cable=marker] {
1846  throwWarning: tr("{0} is deprecated", "{0.tag}");
1847  suggestAlternative: "marker=* + utility=*";
1848  group: tr("deprecated tagging");
1849}
1850
1851/* #17643 */
1852way[barrier=embankment] {
1853  throwWarning: tr("{0} is deprecated", "{0.tag}");
1854  suggestAlternative: "man_made=embankment";
1855  suggestAlternative: "embankment=yes";
1856  group: tr("deprecated tagging");
1857}
1858
1859/* #18469 */
1860way[landuse=churchyard] {
1861  throwWarning: tr("{0} is deprecated", "{0.tag}");
1862  suggestAlternative: "landuse=religious";
1863  suggestAlternative: "amenity=graveyard";
1864  group: tr("deprecated tagging");
1865}
1866
1867*[sloped_curb=yes][!kerb],
1868*[sloped_curb=both][!kerb] {
1869  throwWarning: tr("{0} is deprecated", "{0.tag}");
1870  suggestAlternative: "kerb=lowered";
1871  group: tr("deprecated tagging");
1872  fixRemove: "sloped_curb";
1873  fixAdd: "kerb=lowered";
1874}
1875*[sloped_curb=no][!kerb] {
1876  throwWarning: tr("{0} is deprecated", "{0.tag}");
1877  suggestAlternative: "kerb=yes";
1878  group: tr("deprecated tagging");
1879  fixRemove: "sloped_curb";
1880  fixAdd: "kerb=yes";
1881}
1882*[sloped_curb][sloped_curb !~ /^(yes|both|no)$/][!kerb],
1883*[sloped_curb][kerb] {
1884  throwWarning: tr("{0} is deprecated", "{0.key}");
1885  suggestAlternative: "kerb=*";
1886  group: tr("deprecated tagging");
1887}
1888
1889/* #18571 */
1890*[unnamed=yes] {
1891  throwWarning: tr("{0} is deprecated", "{0.tag}");
1892  suggestAlternative: "noname=yes";
1893  fixChangeKey: "unnamed => noname";
1894  group: tr("deprecated tagging");
1895}
1896
1897node[segregated][segregated!=yes][segregated!=no],
1898way[segregated ][segregated!=yes][segregated!=no] {
1899  throwWarning: tr("unusual value of {0}", "{0.key}");
1900}
1901
1902/* #18603 */
1903way[bicycle:oneway] {
1904  throwWarning: tr("{0} is deprecated", "{0.key}");
1905  suggestAlternative: "oneway:bicycle";
1906  fixChangeKey: "bicycle:oneway => oneway:bicycle";
1907  group: tr("deprecated tagging");
1908}
1909
1910/* #18605 */
1911*[building:height] {
1912  throwWarning: tr("{0} is deprecated", "{0.key}");
1913  suggestAlternative: "height";
1914  fixChangeKey: "building:height => height";
1915  group: tr("deprecated tagging");
1916}
1917*[building:min_height] {
1918  throwWarning: tr("{0} is deprecated", "{0.key}");
1919  suggestAlternative: "min_height";
1920  fixChangeKey: "building:min_height => min_height";
1921  group: tr("deprecated tagging");
1922}
1923
1924/* #11232 */
1925way[highway][construction=yes][highway!=construction] {
1926  throwWarning: tr("{0} is deprecated", "{1.tag}");
1927  suggestAlternative: "construction=minor";
1928  suggestAlternative: concat("highway=construction + construction=", "{0.value}");
1929  group: tr("deprecated tagging");
1930}
1931
1932/* #18659 */
1933*[car][amenity=charging_station] {
1934  throwWarning: tr("{0} is deprecated", "{0.key}");
1935  suggestAlternative: "motorcar";
1936  group: tr("deprecated tagging");
1937  fixChangeKey: "car => motorcar";
1938}
1939
1940/* #18767 */
1941*[navigationaid=approach_light],
1942*[navigationaid="ALS (Approach lighting system)"] {
1943  throwWarning: tr("{0} is deprecated", "{0.tag}");
1944  suggestAlternative: "navigationaid=als";
1945  group: tr("deprecated tagging");
1946  fixAdd: "navigationaid=als";
1947}
Note: See TracBrowser for help on using the repository browser.