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

Last change on this file since 14891 was 14891, checked in by Don-vip, 19 months ago

fix #17471 - complain about name=АЗС on amenity=fuel

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