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

Last change on this file since 10511 was 10511, checked in by Klumbumbus, 4 years ago

fix #13101 - deprecate tower=transition and pole=transition in favor of location:transition

  • Property svn:eol-style set to native
File size: 25.6 KB
Line 
1*[barrier=wire_fence] {
2  throwWarning: tr("{0} is deprecated", "{0.tag}");
3  fixAdd: "barrier=fence";
4  fixAdd: "fence_type=chain_link";
5  assertMatch: "way barrier=wire_fence";
6  assertNoMatch: "way barrier=fence";
7}
8 
9*[barrier=wood_fence] {
10  throwWarning: tr("{0} is deprecated", "{0.tag}");
11  suggestAlternative: "barrier=fence + fence_type=wood";
12  fixAdd: "barrier=fence";
13  fixAdd: "fence_type=wood";
14}
15 
16*[highway=ford] {
17  throwWarning: tr("{0} is deprecated", "{0.tag}");
18  suggestAlternative: "ford=yes";
19  fixRemove: "highway";
20  fixAdd: "ford=yes";
21}
22 
23*[class] {
24  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
25  throwWarning: tr("{0} is deprecated", "{0.key}");
26  suggestAlternative: "highway";
27}
28 
29*[highway=stile] {
30  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
31  throwWarning: tr("{0} is deprecated", "{0.tag}");
32  suggestAlternative: "barrier=stile";
33  fixRemove: "highway";
34  fixAdd: "barrier=stile";
35}
36 
37*[highway=incline] {
38  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
39  throwWarning: tr("{0} is deprecated", "{0.tag}");
40  suggestAlternative: "incline";
41}
42 
43*[highway=incline_steep] {
44  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
45  throwWarning: tr("{0} is deprecated", "{0.tag}");
46  suggestAlternative: "incline";
47}
48 
49*[highway=unsurfaced] {
50  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
51  throwWarning: tr("{0} is deprecated", "{0.tag}");
52  suggestAlternative: "highway=* + surface=unpaved";
53  fixAdd: "highway=road";
54  fixAdd: "surface=unpaved";
55}
56 
57*[landuse=wood] {
58  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
59  throwWarning: tr("{0} is deprecated", "{0.tag}");
60  suggestAlternative: "landuse=forest";
61  suggestAlternative: "natural=wood";
62}
63 
64*[natural=marsh] {
65  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
66  throwWarning: tr("{0} is deprecated", "{0.tag}");
67  suggestAlternative: "natural=wetland + wetland=marsh";
68  fixAdd: "natural=wetland";
69  fixAdd: "wetland=marsh";
70}
71 
72*[highway=byway] {
73  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
74  throwWarning: tr("{0} is deprecated", "{0.tag}");
75}
76 
77*[power_source] {
78  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
79  throwWarning: tr("{0} is deprecated", "{0.key}");
80  suggestAlternative: "generator:source";
81}
82 
83*[power_rating] {
84  /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
85  throwWarning: tr("{0} is deprecated", "{0.key}");
86  suggestAlternative: "generator:output";
87}
88 
89*[shop=antique] {
90  throwWarning: tr("{0} is deprecated", "{0.tag}");
91  suggestAlternative: "shop=antiques";
92  fixAdd: "shop=antiques";
93}
94
95*[shop=bags] {
96  throwWarning: tr("{0} is deprecated", "{0.tag}");
97  suggestAlternative: "shop=bag";
98  fixAdd: "shop=bag";
99}
100
101*[shop=organic] {
102  /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
103  throwWarning: tr("{0} is deprecated", "{0.tag}");
104  suggestAlternative: "shop=* + organic=yes";
105  suggestAlternative: "shop=* + organic=only";
106}
107
108*[shop=pets] {
109  throwWarning: tr("{0} is deprecated", "{0.tag}");
110  suggestAlternative: "shop=pet";
111  fixAdd: "shop=pet";
112}
113
114*[shop=pharmacy] {
115  throwWarning: tr("{0} is deprecated", "{0.tag}");
116  suggestAlternative: "amenity=pharmacy";
117  fixChangeKey: "shop => amenity";
118}
119
120*[bicycle_parking=sheffield] {
121  /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
122  throwWarning: tr("{0} is deprecated", "{0.tag}");
123  suggestAlternative: "bicycle_parking=stands";
124  fixAdd: "bicycle_parking=stands";
125}
126 
127*[amenity=emergency_phone] {
128  /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
129  throwWarning: tr("{0} is deprecated", "{0.tag}");
130  suggestAlternative: "emergency=phone";
131  fixRemove: "amenity";
132  fixAdd: "emergency=phone";
133}
134 
135*[sport=gaelic_football] {
136  /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
137  throwWarning: tr("{0} is deprecated", "{0.tag}");
138  suggestAlternative: "sport=gaelic_games";
139  fixAdd: "sport=gaelic_games";
140}
141 
142*[power=station] {
143  /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
144  throwWarning: tr("{0} is deprecated", "{0.tag}");
145  suggestAlternative: "power=plant";
146  suggestAlternative: "power=substation";
147}
148
149*[power=sub_station] {
150  throwWarning: tr("{0} is deprecated", "{0.tag}");
151  suggestAlternative: "power=substation";
152  fixAdd: "power=substation";
153}
154 
155*[generator:method=dam] {
156  throwWarning: tr("{0} is deprecated", "{0.tag}");
157  suggestAlternative: "generator:method=water-storage";
158  fixAdd: "generator:method=water-storage";
159}
160 
161*[generator:method=pumped-storage] {
162  throwWarning: tr("{0} is deprecated", "{0.tag}");
163  suggestAlternative: "generator:method=water-pumped-storage";
164  fixAdd: "generator:method=water-pumped-storage";
165}
166 
167*[generator:method=pumping] {
168  throwWarning: tr("{0} is deprecated", "{0.tag}");
169  suggestAlternative: "generator:method=water-pumped-storage";
170  fixAdd: "generator:method=water-pumped-storage";
171}
172 
173*[fence_type=chain] {
174  /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
175  throwWarning: tr("{0} is deprecated", "{0.tag}");
176  suggestAlternative: "barrier=chain";
177  suggestAlternative: "barrier=fence + fence_type=chain_link";
178}
179
180*[building=entrance] {
181  /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
182  throwWarning: tr("{0} is deprecated", "{0.tag}");
183  suggestAlternative: "entrance";
184}
185 
186*[board_type=board] {
187  /* see #9213 - Useless tag proposed in internal preset for years */
188  throwWarning: tr("{0} is deprecated", "{0.tag}");
189  fixRemove: "board_type";
190}
191 
192*[man_made=measurement_station] {
193  /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
194  throwWarning: tr("{0} is deprecated", "{0.tag}");
195  suggestAlternative: "man_made=monitoring_station";
196  fixAdd: "man_made=monitoring_station";
197}
198 
199*[measurement=water_level] {
200  throwWarning: tr("{0} is deprecated", "{0.tag}");
201  suggestAlternative: "monitoring:water_level=yes";
202  fixRemove: "measurement";
203  fixAdd: "monitoring:water_level=yes";
204}
205 
206*[measurement=weather] {
207  throwWarning: tr("{0} is deprecated", "{0.tag}");
208  suggestAlternative: "monitoring:weather=yes";
209  fixRemove: "measurement";
210  fixAdd: "monitoring:weather=yes";
211}
212 
213*[measurement=seismic] {
214  throwWarning: tr("{0} is deprecated", "{0.tag}");
215  suggestAlternative: "monitoring:seismic_activity=yes";
216  fixRemove: "measurement";
217  fixAdd: "monitoring:seismic_activity=yes";
218}
219
220*[monitoring:river_level] {
221  throwWarning: tr("{0} is deprecated", "{0.key}");
222  suggestAlternative: "monitoring:water_level";
223  fixChangeKey: "monitoring:river_level => monitoring:water_level";
224}
225
226*[stay] {
227  throwWarning: tr("{0} is deprecated", "{0.key}");
228  suggestAlternative: "maxstay";
229  fixChangeKey: "stay => maxstay";
230}
231
232*[emergency=aed] {
233  /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
234  throwWarning: tr("{0} is deprecated", "{0.tag}");
235  suggestAlternative: "emergency=defibrillator";
236  fixAdd: "emergency=defibrillator";
237}
238
239/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
240*[day_on][!restriction],
241*[day_off][!restriction],
242*[date_on][!restriction],
243*[date_off][!restriction],
244*[hour_on][!restriction],
245*[hour_off][!restriction] {
246  throwWarning: tr("{0} is deprecated", "{0.key}");
247  suggestAlternative: "*:conditional";
248  assertMatch: "node day_on=0-12";
249}
250
251/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
252*[access=designated] {
253  throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
254  assertMatch: "way access=designated";
255}
256*[access=official] {
257  throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
258  assertMatch: "way access=official";
259}
260
261/* see #10085 - give warning for fixme=yes */
262*[fixme=yes], *[FIXME=yes] {
263  throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
264  assertMatch: "way fixme=yes";
265}
266
267*[name][name=~/^(?i)fixme$/] {
268  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}");
269  fixRemove: "name";
270  assertMatch: "node name=fixme";
271  assertMatch: "node name=Fixme";
272  assertMatch: "node name=FIXME";
273  assertNoMatch: "node name=valid name";
274}
275
276*[note][note=~/^(?i)fixme$/] {
277  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}");
278}
279
280/* see #10107, #10108, #10929 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
281*[wood=deciduous],
282*[type=broad_leaved],
283*[type=broad_leafed] {
284  throwWarning: tr("{0} is deprecated", "{0.tag}");
285  suggestAlternative: "leaf_type=broadleaved";
286  fixRemove: "{0.key}";
287  fixAdd: "leaf_type=broadleaved";
288}
289
290*[wood=coniferous],
291*[type=coniferous],
292*[type=conifer] {
293  throwWarning: tr("{0} is deprecated", "{0.tag}");
294  suggestAlternative: "leaf_type=needleleaved";
295  fixRemove: "{0.key}";
296  fixAdd: "leaf_type=needleleaved";
297}
298
299*[wood=mixed] {
300  throwWarning: tr("{0} is deprecated", "{0.tag}");
301  suggestAlternative: "leaf_type=mixed";
302  fixRemove: "wood";
303  fixAdd: "leaf_type=mixed";
304}
305
306*[wood=evergreen],
307*[type=evergreen] {
308  throwWarning: tr("{0} is deprecated", "{0.tag}");
309  suggestAlternative: "leaf_cycle=evergreen";
310  fixRemove: "{0.key}";
311  fixAdd: "leaf_cycle=evergreen";
312}
313
314*[type=deciduous],
315*[type=deciduos] {
316  throwWarning: tr("{0} is deprecated", "{0.tag}");
317  suggestAlternative: "leaf_cycle=deciduous";
318  fixRemove: "type";
319  fixAdd: "leaf_cycle=deciduous";
320}
321
322*[natural=land] {
323  throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
324  assertMatch: "way natural=land";
325}
326
327/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
328*[bridge=causeway] {
329  throwWarning: tr("{0} is deprecated", "{0.tag}");
330  suggestAlternative: "ford=yes";
331  suggestAlternative: "bridge=low_water_crossing";
332  suggestAlternative: "embankment=yes";
333}
334
335*[bridge=swing] {
336  throwWarning: tr("{0} is deprecated", "{0.tag}");
337  suggestAlternative: "bridge:movable=swing";
338  suggestAlternative: "bridge:structure=simple-suspension";
339}
340
341*[bridge=suspension] {
342  throwWarning: tr("{0} is deprecated", "{0.tag}");
343  suggestAlternative: "bridge=yes + bridge:structure=suspension";
344  fixAdd: "bridge=yes";
345  fixAdd: "bridge:structure=suspension";
346}
347
348/* See #10530 - Incorrect tag proposed in internal preset for years */
349*[fee=interval],
350*[lit=interval],
351*[supervised=interval] {
352  throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
353}
354
355/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
356*[/josm\/ignore/] {
357  throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
358  fixDeleteObject: this;
359}
360
361/* see #8281 */
362*[sport=diving] {
363  throwWarning: tr("{0} is deprecated", "{0.tag}");
364  suggestAlternative: "sport=scuba_diving";
365  suggestAlternative: "sport=cliff_diving";
366}
367
368/* see #8281 */
369*[parking=park_and_ride] {
370  throwWarning: tr("{0} is deprecated", "{0.tag}");
371  suggestAlternative: "amenity=parking + park_ride=yes";
372  fixRemove: "parking";
373  fixAdd: "amenity=parking";
374  fixAdd: "park_ride=yes";
375}
376
377/* see #10661, #10837, #11737, #12771 */
378*[traffic_calming=yes],
379*[access=restricted],
380*[barrier=yes],
381*[aerialway=yes][!public_transport],
382*[amenity=yes],
383*[leisure=yes],
384*[shop="*"],
385*[craft=yes],
386*[service=yes],
387*[place=yes] {
388  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
389}
390
391/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
392*[place_name][!name] {
393  throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
394  fixChangeKey: "place_name => name";
395}
396*[place][place_name = *name] {
397  throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
398  fixRemove: "{1.key}";
399}
400
401way[sidewalk=yes] {
402  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
403}
404
405*[waterway=water_point] {
406  throwWarning: tr("{0} is deprecated", "{0.tag}");
407  suggestAlternative: "amenity=water_point";
408  fixChangeKey: "waterway => amenity";
409}
410*[waterway=waste_disposal] {
411  throwWarning: tr("{0} is deprecated", "{0.tag}");
412  suggestAlternative: "amenity=waste_disposal";
413  fixChangeKey: "waterway => amenity";
414}
415*[waterway=mooring] {
416  throwWarning: tr("{0} is deprecated", "{0.tag}");
417  suggestAlternative: "mooring=yes";
418  fixRemove: "waterway";
419  fixAdd: "mooring=yes";
420}
421
422/* see #10837 */
423*[building][levels],
424*[building:part=yes][levels] {
425  throwWarning: tr("{0} is deprecated", "{1.key}");
426  suggestAlternative: "building:levels";
427  fixChangeKey: "levels => building:levels";
428}
429
430/* see #10691 */
431*[protected_class] {
432  throwWarning: tr("{0} is deprecated", "{0.key}");
433  suggestAlternative: "protect_class";
434  fixChangeKey: "protected_class => protect_class";
435}
436
437/* see #11070 */
438*[lock=unknown],
439*[hide=unknown],
440*[shelter=unknown],
441*[access=unknown],
442*[capacity:parent=unknown],
443*[capacity:women=unknown],
444*[capacity:disabled=unknown],
445*[crossing=unknown],
446*[foot=unknown] {
447  throwWarning: tr("Unspecific tag {0}", "{0.tag}");
448}
449
450/* unclear definition, see #11183 */
451*[sport=skiing][!piste:type] {
452  throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
453  suggestAlternative: {1.key};
454}
455
456/* see #11223 */
457*[waterway=wadi] {
458  throwWarning: tr("{0} is deprecated", "{0.tag}");
459  suggestAlternative: "{0.key}=* + intermittent=yes";
460  suggestAlternative: "natural=valley";
461}
462
463/* see #10346 */
464way[oneway=1] {
465  throwWarning: tr("{0} is deprecated", "{0.tag}");
466  suggestAlternative: "oneway=yes";
467  fixAdd: "oneway=yes";
468}
469
470/* see #11329 */
471way[oneway=-1] {
472  throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
473}
474
475*[drinkable] {
476  throwWarning: tr("{0} is deprecated", "{0.key}");
477  suggestAlternative: "drinking_water";
478}
479
480/* see #10329 */
481*[color][!colour] {
482  throwWarning: tr("{0} is deprecated", "{0.key}");
483  suggestAlternative: "colour";
484  fixChangeKey: "color => colour";
485}
486*[color][colour][tag(color)=tag(colour)] {
487  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
488  set samecolor;
489  fixRemove: "color";
490}
491*[color][colour]!.samecolor {
492  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
493}
494*[/:color/]{
495  throwWarning: tr("{0} is deprecated", "{0.key}");
496  suggestAlternative: ":colour";
497}
498*[/color:/] {
499  throwWarning: tr("{0} is deprecated", "{0.key}");
500  suggestAlternative: "colour:";
501}
502
503/* see #11234 */
504*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
505  throwWarning: tr("key with uncommon character");
506}
507
508/* see #11330 */
509*[/^.$/],
510node[/^..$/],
511way[/^..$/],
512relation[/^..$/][!to] {
513  throwWarning: tr("uncommon short key");
514}
515
516/* see #11344 */
517*[tower=air_to_ground] {
518  throwWarning: tr("{0} is deprecated", "{0.tag}");
519  suggestAlternative: "tower=transition";
520  fixAdd: "tower=transition";
521}
522*[pole=air_to_ground] {
523  throwWarning: tr("{0} is deprecated", "{0.tag}");
524  suggestAlternative: "pole=transition";
525  fixAdd: "pole=transition";
526}
527
528/* see #11439 */
529*[sport=hockey] {
530  throwWarning: tr("{0} is inaccurate", "{0.tag}");
531  suggestAlternative: "sport=field_hockey";
532  suggestAlternative: "sport=ice_hockey";
533}
534
535/* see #11471 */
536*[sport=billard],
537*[sport=billards],
538*[sport=billiard] {
539  throwWarning: tr("{0} is deprecated", "{0.tag}");
540  suggestAlternative: "sport=billiards";
541  fixAdd: "sport=billiards";
542}
543
544/* see #11499 */
545*[payment:credit_cards=yes] {
546  throwWarning: tr("{0} is inaccurate", "{0.tag}");
547  suggestAlternative: "payment:mastercard=yes";
548  suggestAlternative: "payment:visa=yes";
549  suggestAlternative: "...";
550}
551*[payment:debit_cards=yes] {
552  throwWarning: tr("{0} is inaccurate", "{0.tag}");
553  suggestAlternative: "payment:maestro=yes";
554  suggestAlternative: "payment:girocard=yes";
555  suggestAlternative: "...";
556}
557*[payment:electronic_purses=yes] {
558  throwWarning: tr("{0} is inaccurate", "{0.tag}");
559  suggestAlternative: "payment:ep_geldkarte=yes";
560  suggestAlternative: "payment:ep_quick=yes";
561  suggestAlternative: "...";
562}
563*[payment:cryptocurrencies=yes] {
564  throwWarning: tr("{0} is inaccurate", "{0.tag}");
565  suggestAlternative: "payment:bitcoin=yes";
566  suggestAlternative: "payment:litecoin=yes";
567  suggestAlternative: "...";
568}
569
570/* see #8717 */
571*[kp][highway=milestone],
572*[kp][railway=milestone],
573*[kp][waterway=milestone] {
574  throwWarning: tr("{0} is deprecated", "{0.key}");
575  suggestAlternative: "distance";
576  fixChangeKey: "kp => distance";
577}
578*[pk][highway=milestone],
579*[pk][railway=milestone],
580*[pk][waterway=milestone] {
581  throwWarning: tr("{0} is deprecated", "{0.key}");
582  suggestAlternative: "distance";
583  fixChangeKey: "pk => distance";
584}
585
586*[postcode] {
587  throwWarning: tr("{0} is deprecated", "{0.key}");
588  suggestAlternative: "addr:postcode";
589  suggestAlternative: "postal_code";
590}
591
592*[water=intermittent] {
593  throwWarning: tr("{0} is deprecated", "{0.tag}");
594  suggestAlternative: "intermittent=yes";
595  fixRemove: "water";
596  fixAdd: "intermittent=yes";
597}
598
599*[type][man_made=pipeline],
600*[type][pipeline=marker] {
601  throwWarning: tr("{0} is deprecated", "{0.key}");
602  suggestAlternative: "substance";
603  fixChangeKey: "type => substance";
604}
605
606*[landuse=farm] {
607  throwWarning: tr("{0} is deprecated", "{0.tag}");
608  suggestAlternative: "landuse=farmland";
609  suggestAlternative: "landuse=farmyard";
610}
611
612/* #12135 comment:11 */
613*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
614  throwWarning: tr("{0} is deprecated", "{0.tag}");
615  suggestAlternative: "{1.tag}";
616  fixRemove: "seamark";
617}
618*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
619  throwWarning: tr("{0} is deprecated", "{0.tag}");
620  suggestAlternative: "{1.tag}";
621}
622/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
623*[landuse=conservation] {
624  throwWarning: tr("{0} is deprecated", "{0.tag}");
625  suggestAlternative: "boundary=protected_area";
626  fixAdd: "boundary=protected_area";
627  fixRemove: "landuse";
628}
629
630/* #12205 */
631*[amenity=kiosk] {
632  throwWarning: tr("{0} is deprecated", "{0.tag}");
633  suggestAlternative: "shop=kiosk";
634  fixChangeKey: "amenity => shop";
635}
636*[amenity=shop] {
637  throwWarning: tr("{0} is deprecated", "{0.tag}");
638  suggestAlternative: "shop=*";
639}
640*[shop=fishmonger] {
641  throwWarning: tr("{0} is deprecated", "{0.tag}");
642  suggestAlternative: "shop=seafood";
643  fixAdd: "shop=seafood";
644}
645*[shop=fish] {
646  throwWarning: tr("{0} is deprecated", "{0.tag}");
647  suggestAlternative: "shop=seafood";
648  suggestAlternative: "shop=pet";
649  suggestAlternative: "shop=fishing";
650}
651*[shop=betting] {
652  throwWarning: tr("{0} is deprecated", "{0.tag}");
653  suggestAlternative: "shop=bookmaker";
654  suggestAlternative: "shop=lottery";
655  suggestAlternative: "amenity=casino";
656  suggestAlternative: "leisure=amusement_arcade";
657  suggestAlternative: "leisure=adult_gaming_centre";
658  suggestAlternative: "amenity=gambling";
659}
660*[shop=perfume] {
661  throwWarning: tr("{0} is deprecated", "{0.tag}");
662  suggestAlternative: "shop=perfumery";
663  fixAdd: "shop=perfumery";
664}
665*[amenity=exercise_point] {
666  throwWarning: tr("{0} is deprecated", "{0.tag}");
667  suggestAlternative: "leisure=fitness_station";
668  fixAdd: "leisure=fitness_station";
669  fixRemove: "amenity";
670}
671*[shop=auto_parts] {
672  throwWarning: tr("{0} is deprecated", "{0.tag}");
673  suggestAlternative: "shop=car_parts";
674  fixAdd: "shop=car_parts";
675}
676*[amenity=car_repair] {
677  throwWarning: tr("{0} is deprecated", "{0.tag}");
678  suggestAlternative: "shop=car_repair";
679  fixChangeKey: "amenity => shop";
680}
681
682/* #12311 */
683*[amenity=studio][type=audio],
684*[amenity=studio][type=radio],
685*[amenity=studio][type=television],
686*[amenity=studio][type=video] {
687  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
688  suggestAlternative: "studio";
689  fixChangeKey: "type => studio";
690}
691
692/* #11507, #12297 */
693*[power=cable_distribution_cabinet] {
694  throwWarning: tr("{0} is deprecated", "{0.tag}");
695  suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
696  fixAdd: "man_made=street_cabinet";
697  fixAdd: "street_cabinet=power";
698  fixRemove: "power";
699}
700
701/* #12276 */
702*[man_made=well] {
703  throwWarning: tr("{0} is deprecated", "{0.tag}");
704  suggestAlternative: "man_made=water_well";
705  suggestAlternative: "man_made=petroleum_well";
706}
707*[amenity=dog_bin],
708*[amenity=dog_waste_bin] {
709  throwWarning: tr("{0} is deprecated", "{0.tag}");
710  suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
711  fixAdd: "amenity=waste_basket";
712  fixAdd: "waste=dog_excrement";
713  fixAdd: "vending=excrement_bags";
714}
715*[amenity=artwork] {
716  throwWarning: tr("{0} is deprecated", "{0.tag}");
717  suggestAlternative: "tourism=artwork";
718  fixAdd: "tourism=artwork";
719  fixRemove: "amenity";
720}
721*[amenity=community_center] {
722  throwWarning: tr("{0} is deprecated", "{0.tag}");
723  suggestAlternative: "amenity=community_centre";
724  fixAdd: "amenity=community_centre";
725}
726*[man_made=cut_line] {
727  throwWarning: tr("{0} is deprecated", "{0.tag}");
728  suggestAlternative: "man_made=cutline";
729  fixAdd: "man_made=cutline";
730}
731*[amenity=park] {
732  throwWarning: tr("{0} is deprecated", "{0.tag}");
733  suggestAlternative: "leisure=park";
734  fixAdd: "leisure=park";
735  fixRemove: "amenity";
736}
737*[amenity=hotel] {
738  throwWarning: tr("{0} is deprecated", "{0.tag}");
739  suggestAlternative: "tourism=hotel";
740  fixAdd: "tourism=hotel";
741  fixRemove: "amenity";
742}
743*[shop=window],
744*[shop=windows] {
745  throwWarning: tr("{0} is deprecated", "{0.tag}");
746  suggestAlternative: "craft=window_construction";
747  fixAdd: "craft=window_construction";
748  fixRemove: "shop";
749}
750*[amenity=education] {
751  throwWarning: tr("{0} is deprecated", "{0.tag}");
752  suggestAlternative: "amenity=college";
753  suggestAlternative: "amenity=school";
754  suggestAlternative: "amenity=university";
755}
756*[shop=gallery] {
757  throwWarning: tr("{0} is deprecated", "{0.tag}");
758  suggestAlternative: "shop=art";
759  fixAdd: "shop=art";
760}
761*[shop=gambling],
762*[leisure=gambling] {
763  throwWarning: tr("{0} is deprecated", "{0.tag}");
764  suggestAlternative: "shop=bookmaker";
765  suggestAlternative: "shop=lottery";
766  suggestAlternative: "amenity=casino";
767  suggestAlternative: "leisure=amusement_arcade";
768  suggestAlternative: "amenity=gambling";
769}
770*[office=real_estate_agent] {
771  throwWarning: tr("{0} is deprecated", "{0.tag}");
772  suggestAlternative: "office=estate_agent ";
773  fixAdd: "office=estate_agent ";
774}
775*[shop=glass] {
776  throwWarning: tr("{0} is deprecated", "{0.tag}");
777  suggestAlternative: "shop=glaziery";
778  suggestAlternative: "craft=glaziery";
779}
780*[amenity=proposed],
781*[amenity=proposed],
782*[amenity=disused],
783*[shop=disused],
784*[historic=abandoned] {
785  throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
786}
787
788/* #12431 */
789*[amenity=swimming_pool] {
790  throwWarning: tr("{0} is deprecated", "{0.tag}");
791  suggestAlternative: "leisure=swimming_pool";
792  fixChangeKey: "amenity => leisure";
793}
794
795/* #12494 */
796*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
797  throwOther: tr("questionable key (ending with a number): {0}", "{0.key}");
798} /*should not warn for key tiger:name_base_1 */
799
800/* #12500 */
801*[sport=skating] {
802  throwWarning: tr("{0} is deprecated", "{0.tag}");
803  suggestAlternative: "sport=ice_skating";
804  suggestAlternative: "sport=roller_skating";
805}
806
807way[barrier=wall][type=noise_barrier][!wall],
808way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
809  throwWarning: tr("{0} is deprecated", "{1.tag}");
810  suggestAlternative: "wall=noise_barrier";
811  fixChangeKey: "type => wall";
812}
813way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
814  throwWarning: tr("{0} is deprecated", "{1.tag}");
815  suggestAlternative: "wall=noise_barrier";
816}
817
818/* #8978, 12588 */
819*[amenity=public_building] {
820  throwWarning: tr("{0} is deprecated", "{0.tag}");
821  suggestAlternative: "amenity=townhall";
822  suggestAlternative: "amenity=community_centre";
823  suggestAlternative: "amenity=hospital";
824  suggestAlternative: "leisure=sports_centre";
825  suggestAlternative: "office=government";
826  suggestAlternative: "building=hospital";
827  suggestAlternative: "building=public";
828  suggestAlternative: "...";
829}
830
831/* #12708 */
832*[vending=news_papers] {
833  throwWarning: tr("{0} is deprecated", "{0.tag}");
834  suggestAlternative: "vending=newspapers";
835  fixAdd: "vending=newspapers";
836}
837
838/* #12771 */
839*[service=drive_through] {
840  throwWarning: tr("{0} is deprecated", "{0.tag}");
841  suggestAlternative: "service=drive-through";
842  fixAdd: "service=drive-through";
843}
844
845/* #12771 */
846way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|yes)$/], /* drive_through and yes have special warnings */
847way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
848way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
849  throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
850}
851
852/* #13008 */
853*[name:botanical] {
854  throwWarning: tr("{0} is deprecated", "{0.key}");
855  suggestAlternative: "species";
856}
857
858/* #13101 */
859node[pole=transition] {
860  throwWarning: tr("{0} is deprecated", "{0.tag}");
861  suggestAlternative: "location:transition=yes";
862  fixAdd: "location:transition=yes";
863  fixRemove: "pole";
864}
865node[tower=transition] {
866  throwWarning: tr("{0} is deprecated", "{0.tag}");
867  suggestAlternative: "location:transition=yes";
868  fixAdd: "location:transition=yes";
869  fixRemove: "tower";
870}
Note: See TracBrowser for help on using the repository browser.