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

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

fix #12276 - deprecate some tags

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