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

Last change on this file since 15758 was 15758, checked in by Klumbumbus, 4 months ago
  • fix #18612 - autofix building=other|unclassified|undefined|unknown|unidentified to building=yes
  • fix #18603 - deprecate bicycle:oneway in favor of oneway:bicycle
  • fix #18605 - deprecate building:height and building:min_height in favor of height and min_height
  • fix #18607, see #18464 - fix validator rule text
  • Property svn:eol-style set to native
File size: 58.7 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, #18612 */
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=razed] {
1307  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1308  group: tr("deprecated tagging");
1309}
1310*[building=other],
1311*[building=unclassified],
1312*[building=undefined],
1313*[building=unknown],
1314*[building=unidentified] {
1315  throwWarning: tr("{0} is not a building type.", "{0.tag}");
1316  group: tr("deprecated tagging");
1317  fixAdd: "building=yes";
1318}
1319
1320/* #15675 */
1321node[power=transformer][location=pole][transformer] {
1322  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1323  group: tr("deprecated tagging");
1324  fixChangeKey: "location => power";
1325}
1326node[power=transformer][location=pole][!transformer] {
1327  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1328  group: tr("deprecated tagging");
1329  fixChangeKey: "location => power";
1330  fixAdd: "transformer=yes";
1331}
1332
1333node[tourism=picnic_table],
1334node[amenity=picnic_table],
1335node[leisure=picnic],
1336node[leisure=picnic_site] {
1337  throwWarning: tr("{0} is deprecated", "{0.tag}");
1338  suggestAlternative: "tourism=picnic_site";
1339  suggestAlternative: "leisure=picnic_table";
1340  group: tr("deprecated tagging");
1341}
1342
1343/* #15804 */
1344relation[water=salt],
1345way[water=salt],
1346way[water=salt_pool],
1347way[water=salt_panne],
1348way[water=salt_pond] {
1349  throwWarning: tr("{0} is deprecated", "{0.tag}");
1350  suggestAlternative: "salt=yes";
1351  suggestAlternative: "landuse=salt_pond";
1352  group: tr("deprecated tagging");
1353}
1354
1355/* #15805 */
1356way[water=tidal] {
1357  throwWarning: tr("{0} is deprecated", "{0.tag}");
1358  suggestAlternative: "tidal=yes";
1359  fixAdd: "tidal=yes";
1360  fixRemove: "water";
1361  group: tr("deprecated tagging");
1362}
1363
1364*[amenity=toilet] {
1365  throwError: tr("{0}", "{0.tag}");
1366  suggestAlternative: "amenity=toilets";
1367  group: tr("misspelled value");
1368  fixAdd: "amenity=toilets";
1369}
1370
1371way[power=busbar] {
1372  throwWarning: tr("{0} is deprecated", "{0.tag}");
1373  suggestAlternative: "power=line + line=busbar";
1374  group: tr("deprecated tagging");
1375  fixAdd: "power=line";
1376  fixAdd: "line=busbar";
1377}
1378
1379/* #16924 */
1380*[man_made=MDF],
1381*[man_made=telephone_exchange] {
1382  throwWarning: tr("{0} is deprecated", "{0.tag}");
1383  suggestAlternative: "telecom=exchange";
1384  fixAdd: "telecom=exchange";
1385  fixRemove: "man_made";
1386  group: tr("deprecated tagging");
1387}
1388*[building=central_office] {
1389  throwWarning: tr("{0} is deprecated", "{0.tag}");
1390  suggestAlternative: "telecom=exchange";
1391  fixAdd: "telecom=exchange";
1392  fixAdd: "building=yes";
1393  group: tr("deprecated tagging");
1394}
1395*[telecom=central_office] {
1396  throwWarning: tr("{0} is deprecated", "{0.tag}");
1397  suggestAlternative: "telecom=exchange";
1398  fixAdd: "telecom=exchange";
1399  group: tr("deprecated tagging");
1400}
1401
1402/* #16925 */
1403node[communication=outdoor_dslam],
1404node[man_made=outdoor_dslam],
1405node[street_cabinet=outdoor_dslam] {
1406  throwWarning: tr("{0} is deprecated", "{0.tag}");
1407  suggestAlternative: "telecom=service_device";
1408  fixAdd: "telecom=service_device";
1409  fixRemove: "{0.key}";
1410  group: tr("deprecated tagging");
1411}
1412node[telecom=dslam],
1413node[telecom=outdoor_dslam] {
1414  throwWarning: tr("{0} is deprecated", "{0.tag}");
1415  suggestAlternative: "telecom=service_device";
1416  fixAdd: "telecom=service_device";
1417  group: tr("deprecated tagging");
1418}
1419
1420/* #15774 */
1421node[amenity=fire_hydrant] {
1422  throwWarning: tr("{0} is deprecated", "{0.tag}");
1423  suggestAlternative: "emergency=fire_hydrant";
1424  fixChangeKey: "amenity => emergency";
1425  group: tr("deprecated tagging");
1426}
1427node[fire_hydrant:type=pond] {
1428  throwWarning: tr("{0} is deprecated", "{0.tag}");
1429  suggestAlternative: "water_source=pond";
1430  fixAdd: "water_source=pond";
1431  fixRemove: "{0.key}";
1432  group: tr("deprecated tagging");
1433}
1434node[fire_hydrant:flow_capacity] {
1435  throwWarning: tr("{0} is deprecated", "{0.key}");
1436  suggestAlternative: "flow_rate";
1437  group: tr("deprecated tagging");
1438}
1439node[emergency=fire_hydrant][in_service=no] {
1440  throwWarning: tr("{0} is deprecated", "{1.tag}");
1441  suggestAlternative: "disused:emergency=fire_hydrant";
1442  fixAdd: "disused:emergency=fire_hydrant";
1443  fixRemove: "{1.key}";
1444  fixRemove: "{0.key}";
1445  group: tr("deprecated tagging");
1446}
1447node[fire_hydrant:water_source] {
1448  throwWarning: tr("{0} is deprecated", "{0.key}");
1449  suggestAlternative: "water_source";
1450  fixChangeKey: "fire_hydrant:water_source => water_source";
1451  group: tr("deprecated tagging");
1452}
1453
1454/* #17383 */
1455*[natural=waterfall] {
1456  throwWarning: tr("{0} is deprecated", "{0.tag}");
1457  suggestAlternative: "waterway=waterfall";
1458  fixChangeKey: "natural => waterway";
1459  group: tr("deprecated tagging");
1460}
1461
1462/* #17249 */
1463*[religion=unitarian] {
1464  throwWarning: tr("{0} is deprecated", "{0.tag}");
1465  suggestAlternative: "religion=unitarian_universalist";
1466  fixAdd: "religion=unitarian_universalist";
1467  group: tr("deprecated tagging");
1468}
1469
1470*[shop=shopping_centre] {
1471  throwWarning: tr("{0} is deprecated", "{0.tag}");
1472  suggestAlternative: "shop=mall";
1473  fixAdd: "shop=mall";
1474  group: tr("deprecated tagging");
1475}
1476
1477/* #17504 */
1478*[is_in],
1479node[/^is_in:.*$/],
1480way[/^is_in:.*$/] {
1481  throwWarning: tr("{0} is deprecated", "{0.key}");
1482  group: tr("deprecated tagging");
1483  fixRemove: "{0.key}";
1484}
1485
1486/* #17593 */
1487*[sport=football] {
1488  throwWarning: tr("{0} is deprecated", "{0.tag}");
1489  suggestAlternative: "sport=soccer";
1490  suggestAlternative: "sport=american_football";
1491  suggestAlternative: "sport=australian_football";
1492  suggestAlternative: "sport=canadian_football";
1493  suggestAlternative: "sport=rugby_league";
1494  suggestAlternative: "sport=rugby_union";
1495  suggestAlternative: "sport=gaelic_games";
1496  group: tr("deprecated tagging");
1497}
1498
1499/* #17556 */
1500*[leisure=common] {
1501  throwWarning: tr("{0} is deprecated", "{0.tag}");
1502  suggestAlternative: "landuse=*";
1503  suggestAlternative: "leisure=*";
1504  suggestAlternative: "designation=common";
1505  group: tr("deprecated tagging");
1506}
1507
1508/* #17043 */
1509*[cuisine=vegan],
1510*[cuisine=vegetarian] {
1511  throwWarning: tr("{0} is deprecated", "{0.tag}");
1512  suggestAlternative: concat("diet:", "{0.value}", "=yes");
1513  suggestAlternative: concat("diet:", "{0.value}", "=only");
1514  group: tr("deprecated tagging");
1515}
1516
1517/* #17798 */
1518*[kitchen_hours] {
1519  throwWarning: tr("{0} is deprecated", "{0.key}");
1520  suggestAlternative: "opening_hours:kitchen";
1521  fixChangeKey: "kitchen_hours => opening_hours:kitchen";
1522  group: tr("deprecated tagging");
1523}
1524
1525/* #17681 */
1526*[shop=money_transfer] {
1527  throwWarning: tr("{0} is deprecated", "{0.tag}");
1528  suggestAlternative: "amenity=money_transfer";
1529  fixChangeKey: "shop => amenity";
1530  group: tr("deprecated tagging");
1531}
1532
1533*[contact:google_plus] {
1534  throwWarning: tr("{0} is deprecated", "{0.key}");
1535  fixRemove: "contact:google_plus";
1536  group: tr("deprecated tagging");
1537}
1538
1539/* #17370  */
1540*[amenity=garages],
1541*[amenity=garage] {
1542  throwWarning: tr("{0} is deprecated", "{0.tag}");
1543  suggestAlternative: concat("building=", "{0.value}");
1544  suggestAlternative: "landuse=garages";
1545  suggestAlternative: "amenity=parking + parking=garage_boxes";
1546  group: tr("deprecated tagging");
1547}
1548*[shop=winery],
1549*[amenity=winery] {
1550  throwWarning: tr("{0} is deprecated", "{0.tag}");
1551  suggestAlternative: "craft=winery";
1552  suggestAlternative: "shop=wine";
1553  group: tr("deprecated tagging");
1554}
1555*[amenity=youth_centre] {
1556  throwWarning: tr("{0} is deprecated", "{0.tag}");
1557  suggestAlternative: "amenity=community_centre + community_centre=youth_centre";
1558  fixAdd: "amenity=community_centre";
1559  fixAdd: "community_centre=youth_centre";
1560  group: tr("deprecated tagging");
1561}
1562*[building:type][building=yes],
1563*[building:type][!building] {
1564  throwWarning: tr("{0} is deprecated", "{0.key}");
1565  suggestAlternative: "building";
1566  group: tr("deprecated tagging");
1567  fixChangeKey: "building:type => building";
1568  assertMatch: "way building:type=church";
1569  assertMatch: "way building:type=church building=yes";
1570  assertNoMatch: "way building:type=church building=supermarket";
1571}
1572*[building:type][building][building!=yes] {
1573  throwWarning: tr("{0} is deprecated", "{0.key}");
1574  suggestAlternative: "building";
1575  group: tr("deprecated tagging");
1576  assertNoMatch: "way building:type=church";
1577  assertNoMatch: "way building:type=church building=yes";
1578  assertMatch: "way building:type=church building=supermarket";
1579}
1580*[escalator] {
1581  throwWarning: tr("{0} is deprecated", "{0.key}");
1582  suggestAlternative: "highway=steps + conveying=*";
1583  group: tr("deprecated tagging");
1584}
1585*[fenced] {
1586  throwWarning: tr("{0} is deprecated", "{0.key}");
1587  suggestAlternative: "barrier=fence";
1588  group: tr("deprecated tagging");
1589}
1590*[historic_name][!old_name] {
1591  throwWarning: tr("{0} is deprecated", "{0.key}");
1592  suggestAlternative: "old_name";
1593  group: tr("deprecated tagging");
1594  fixChangeKey: "historic_name => old_name";
1595}
1596*[historic_name][old_name] {
1597  throwWarning: tr("{0} is deprecated", "{0.key}");
1598  suggestAlternative: "old_name";
1599  group: tr("deprecated tagging");
1600}
1601*[landuse=field] {
1602  throwWarning: tr("{0} is deprecated", "{0.tag}");
1603  suggestAlternative: "landuse=farmland";
1604  group: tr("deprecated tagging");
1605  fixAdd: "landuse=farmland";
1606}
1607*[leisure=beach] {
1608  throwWarning: tr("{0} is deprecated", "{0.tag}");
1609  suggestAlternative: "natural=beach";
1610  suggestAlternative: "leisure=beach_resort";
1611  group: tr("deprecated tagging");
1612}
1613*[leisure=club] {
1614  throwWarning: tr("{0} is deprecated", "{0.tag}");
1615  suggestAlternative: "club=*";
1616  group: tr("deprecated tagging");
1617}
1618*[leisure=video_arcade] {
1619  throwWarning: tr("{0} is deprecated", "{0.tag}");
1620  suggestAlternative: "leisure=amusement_arcade";
1621  suggestAlternative: "leisure=adult_gaming_centre";
1622  group: tr("deprecated tagging");
1623}
1624*[man_made=jetty] {
1625  throwWarning: tr("{0} is deprecated", "{0.tag}");
1626  suggestAlternative: "man_made=pier";
1627  group: tr("deprecated tagging");
1628  fixAdd: "man_made=pier";
1629}
1630*[man_made=village_pump] {
1631  throwWarning: tr("{0} is deprecated", "{0.tag}");
1632  suggestAlternative: "man_made=water_well";
1633  group: tr("deprecated tagging");
1634  fixAdd: "man_made=water_well";
1635}
1636*[man_made=water_tank] {
1637  throwWarning: tr("{0} is deprecated", "{0.tag}");
1638  suggestAlternative: "man_made=storage_tank + content=water";
1639  group: tr("deprecated tagging");
1640  fixAdd: "man_made=storage_tank";
1641  fixAdd: "content=water";
1642}
1643*[natural=moor] {
1644  throwWarning: tr("{0} is deprecated", "{0.tag}");
1645  suggestAlternative: "natural=heath";
1646  suggestAlternative: "natural=scrub";
1647  suggestAlternative: "natural=grassland";
1648  suggestAlternative: "natural=wetland";
1649  suggestAlternative: "natural=fell";
1650  suggestAlternative: "natural=tundra";
1651  suggestAlternative: "landuse=meadow + meadow=agricultural";
1652  group: tr("deprecated tagging");
1653}
1654*[noexit=no][!fixme] {
1655  throwWarning: tr("{0} is deprecated", "{0.tag}");
1656  suggestAlternative: "fixme=continue";
1657  group: tr("deprecated tagging");
1658  fixAdd: "fixme=continue";
1659  fixRemove: "noexit";
1660}
1661*[noexit=no][fixme] {
1662  throwWarning: tr("{0} is deprecated", "{0.tag}");
1663  suggestAlternative: "fixme=continue";
1664  group: tr("deprecated tagging");
1665}
1666*[shop=dive] {
1667  throwWarning: tr("{0} is deprecated", "{0.tag}");
1668  suggestAlternative: "shop=scuba_diving";
1669  group: tr("deprecated tagging");
1670  fixAdd: "shop=scuba_diving";
1671}
1672*[shop=furnace] {
1673  throwWarning: tr("{0} is deprecated", "{0.tag}");
1674  suggestAlternative: "shop=fireplace";
1675  suggestAlternative: "craft=plumber";
1676  group: tr("deprecated tagging");
1677}
1678*[sport=paragliding] {
1679  throwWarning: tr("{0} is deprecated", "{0.tag}");
1680  suggestAlternative: "sport=free_flying";
1681  group: tr("deprecated tagging");
1682  fixAdd: "sport=free_flying";
1683}
1684*[tourism=bed_and_breakfast] {
1685  throwWarning: tr("{0} is deprecated", "{0.tag}");
1686  suggestAlternative: "tourism=guest_house + guest_house=bed_and_breakfast";
1687  group: tr("deprecated tagging");
1688  fixAdd: "tourism=guest_house";
1689  fixAdd: "guest_house=bed_and_breakfast";
1690}
1691
1692/* #17880 */
1693*[diaper=yes],
1694*[diaper=no] {
1695  throwWarning: tr("{0} is deprecated", "{0.tag}");
1696  suggestAlternative: concat("changing_table=", "{0.value}");
1697  group: tr("deprecated tagging");
1698  fixChangeKey: "diaper => changing_table";
1699  set diaper_checked;
1700}
1701*[diaper][diaper =~ /^[1-9][0-9]*$/] {
1702  throwWarning: tr("{0} is deprecated", "{0.tag}");
1703  suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}");
1704  group: tr("deprecated tagging");
1705  fixChangeKey: "diaper => changing_table:count";
1706  fixAdd: "changing_table=yes";
1707  set diaper_checked;
1708}
1709*[diaper=room] {
1710  throwWarning: tr("{0} is deprecated", "{0.tag}");
1711  suggestAlternative: "changing_table=room";
1712  suggestAlternative: "changing_table=dedicated_room";
1713  group: tr("deprecated tagging");
1714  set diaper_checked;
1715}
1716*[diaper]!.diaper_checked {
1717  throwWarning: tr("{0} is deprecated", "{0.key}");
1718  suggestAlternative: "changing_table";
1719  group: tr("deprecated tagging");
1720}
1721*[diaper:male=yes] {
1722  throwWarning: tr("{0} is deprecated", "{0.tag}");
1723  suggestAlternative: "changing_table:location=male_toilet";
1724  group: tr("deprecated tagging");
1725  fixAdd: "changing_table:location=male_toilet";
1726  fixRemove: "diaper:male";
1727  set diaper___checked;
1728}
1729*[diaper:female=yes] {
1730  throwWarning: tr("{0} is deprecated", "{0.tag}");
1731  suggestAlternative: "changing_table:location=female_toilet";
1732  group: tr("deprecated tagging");
1733  fixAdd: "changing_table:location=female_toilet";
1734  fixRemove: "diaper:female";
1735  set diaper___checked;
1736}
1737*[diaper:unisex=yes] {
1738  throwWarning: tr("{0} is deprecated", "{0.tag}");
1739  suggestAlternative: "changing_table:location=unisex_toilet";
1740  group: tr("deprecated tagging");
1741  fixAdd: "changing_table:location=unisex_toilet";
1742  fixRemove: "diaper:unisex";
1743  set diaper___checked;
1744}
1745*[diaper:wheelchair=yes],
1746*[diaper:wheelchair=no] {
1747  throwWarning: tr("{0} is deprecated", "{0.tag}");
1748  suggestAlternative: concat("changing_table:wheelchair=", "{0.value}");
1749  group: tr("deprecated tagging");
1750  fixChangeKey: "diaper:wheelchair => changing_table:wheelchair";
1751  set diaper___checked;
1752}
1753*[diaper:fee=yes],
1754*[diaper:fee=no] {
1755  throwWarning: tr("{0} is deprecated", "{0.tag}");
1756  suggestAlternative: concat("changing_table:fee=", "{0.value}");
1757  group: tr("deprecated tagging");
1758  fixChangeKey: "diaper:fee => changing_table:fee";
1759  set diaper___checked;
1760}
1761*[/^diaper:/]!.diaper___checked {
1762  throwWarning: tr("{0} is deprecated", "diaper:*");
1763  suggestAlternative: "changing_table:*";
1764  group: tr("deprecated tagging");
1765}
1766*[changing_table][changing_table!~/^(yes|no|limited)$/] {
1767  throwWarning: tr("wrong value: {0}", "{0.tag}");
1768  suggestAlternative: "changing_table=yes";
1769  suggestAlternative: "changing_table=no";
1770  suggestAlternative: "changing_table=limited";
1771}
1772
1773/* #17990 */
1774*[roof:shape=half_hipped] {
1775  throwWarning: tr("{0} is deprecated", "{0.tag}");
1776  suggestAlternative: "roof:shape=half-hipped";
1777  group: tr("deprecated tagging");
1778  fixAdd: "roof:shape=half-hipped";
1779}
1780
1781/* #18003 */
1782*[bridge_name] {
1783  throwWarning: tr("{0} is deprecated", "{0.key}");
1784  suggestAlternative: "bridge:name";
1785  group: tr("deprecated tagging");
1786  fixChangeKey: "bridge_name => bridge:name";
1787}
1788
1789/* #18007 */
1790*[access=public] {
1791  throwWarning: tr("{0} is deprecated", "{0.tag}");
1792  suggestAlternative: "access=yes";
1793  group: tr("deprecated tagging");
1794  fixAdd: "access=yes";
1795}
1796
1797/* #17330 */
1798*[crossing=island] {
1799  throwWarning: tr("{0} is deprecated", "{0.tag}");
1800  suggestAlternative: "crossing:island=yes";
1801  group: tr("deprecated tagging");
1802  fixRemove: "crossing";
1803  fixAdd: "crossing:island=yes";
1804}
1805
1806/* #18152 */
1807*[recycling:metal] {
1808  throwWarning: tr("{0} is deprecated", "{0.key}");
1809  suggestAlternative: "recycling:scrap_metal";
1810  group: tr("deprecated tagging");
1811  fixChangeKey: "recycling:metal => recycling:scrap_metal";
1812}
1813
1814/* #18154 */
1815*[shop=dog_grooming] {
1816  throwWarning: tr("{0} is deprecated", "{0.tag}");
1817  suggestAlternative: "shop=pet_grooming";
1818  fixAdd: "shop=pet_grooming";
1819  group: tr("deprecated tagging");
1820}
1821
1822/* #17984 */
1823*[tower:type=anchor],
1824*[tower:type=suspension] {
1825  throwWarning: tr("{0} is deprecated", "{0.tag}");
1826  suggestAlternative: concat("line_attachment=", "{0.value}");
1827  fixChangeKey: "tower:type => line_attachment";
1828  group: tr("deprecated tagging");
1829}
1830node[pole:type=anchor],
1831node[pole:type=suspension] {
1832  throwWarning: tr("{0} is deprecated", "{0.tag}");
1833  suggestAlternative: concat("line_attachment=", "{0.value}");
1834  fixChangeKey: "pole:type => line_attachment";
1835  group: tr("deprecated tagging");
1836}
1837
1838/* #18267 */
1839node[man_made=pipeline_marker],
1840node[pipeline=marker],
1841node[power=marker],
1842node[cable=marker] {
1843  throwWarning: tr("{0} is deprecated", "{0.tag}");
1844  suggestAlternative: "marker=* + utility=*";
1845  group: tr("deprecated tagging");
1846}
1847
1848/* #17643 */
1849way[barrier=embankment] {
1850  throwWarning: tr("{0} is deprecated", "{0.tag}");
1851  suggestAlternative: "man_made=embankment";
1852  suggestAlternative: "embankment=yes";
1853  group: tr("deprecated tagging");
1854}
1855
1856/* #18469 */
1857way[landuse=churchyard] {
1858  throwWarning: tr("{0} is deprecated", "{0.tag}");
1859  suggestAlternative: "landuse=religious";
1860  suggestAlternative: "amenity=graveyard";
1861  group: tr("deprecated tagging");
1862}
1863
1864*[sloped_curb=yes][!kerb],
1865*[sloped_curb=both][!kerb] {
1866  throwWarning: tr("{0} is deprecated", "{0.tag}");
1867  suggestAlternative: "kerb=lowered";
1868  group: tr("deprecated tagging");
1869  fixRemove: "sloped_curb";
1870  fixAdd: "kerb=lowered";
1871}
1872*[sloped_curb=no][!kerb] {
1873  throwWarning: tr("{0} is deprecated", "{0.tag}");
1874  suggestAlternative: "kerb=yes";
1875  group: tr("deprecated tagging");
1876  fixRemove: "sloped_curb";
1877  fixAdd: "kerb=yes";
1878}
1879*[sloped_curb][sloped_curb !~ /^(yes|both|no)$/][!kerb],
1880*[sloped_curb][kerb] {
1881  throwWarning: tr("{0} is deprecated", "{0.key}");
1882  suggestAlternative: "kerb=*";
1883  group: tr("deprecated tagging");
1884}
1885
1886/* #18571 */
1887*[unnamed=yes] {
1888  throwWarning: tr("{0} is deprecated", "{0.tag}");
1889  suggestAlternative: "noname=yes";
1890  fixChangeKey: "unnamed => noname";
1891  group: tr("deprecated tagging");
1892}
1893
1894node[segregated][segregated!=yes][segregated!=no],
1895way[segregated ][segregated!=yes][segregated!=no] {
1896  throwWarning: tr("unusual value of {0}", "{0.key}");
1897}
1898
1899/* #18603 */
1900way[bicycle:oneway] {
1901  throwWarning: tr("{0} is deprecated", "{0.key}");
1902  suggestAlternative: "oneway:bicycle";
1903  fixChangeKey: "bicycle:oneway => oneway:bicycle";
1904  group: tr("deprecated tagging");
1905}
1906
1907/* #18605 */
1908*[building:height] {
1909  throwWarning: tr("{0} is deprecated", "{0.key}");
1910  suggestAlternative: "height";
1911  fixChangeKey: "building:height => height";
1912  group: tr("deprecated tagging");
1913}
1914*[building:min_height] {
1915  throwWarning: tr("{0} is deprecated", "{0.key}");
1916  suggestAlternative: "min_height";
1917  fixChangeKey: "building:min_height => min_height";
1918  group: tr("deprecated tagging");
1919}
Note: See TracBrowser for help on using the repository browser.