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

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

fix #12404 - add suggestAlternative to validator rules with FixAdd or FixChangeKey; replace tr("{0}={1} is deprecated", "{0.key}", "{0.value}"); by shorter tr("{0} is deprecated", "{0.tag}");

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