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

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

see #12296 - add new water and waypoint icons (by zermes), move old icons to nodist folder; see also [o31996]; add warning for traffic_calming=yes; remove power.mapcss test (see #12386)

  • Property svn:eol-style set to native
File size: 21.8 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*[traffic_calming=yes],
345*[access=restricted],
346*[barrier=yes],
347*[aerialway=yes][!public_transport],
348*[amenity=yes],
349*[shop="*"],
350*[place=yes] {
351  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
352}
353
354/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
355*[place_name][!name] {
356  throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
357  fixChangeKey: "place_name => name";
358}
359*[place][place_name = *name] {
360  throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
361  fixRemove: "{1.key}";
362}
363
364way[sidewalk=yes] {
365  throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
366}
367
368*[waterway=water_point],
369*[waterway=waste_disposal] {
370  throwWarning: tr("{0} is deprecated", "{0.tag}");
371  fixChangeKey: "waterway => amenity";
372}
373*[waterway=mooring] {
374  throwWarning: tr("{0} is deprecated", "{0.tag}");
375  fixRemove: "waterway";
376  fixAdd: "mooring=yes";
377}
378
379/* see #10837 */
380*[building][levels],
381*[building:part=yes][levels] {
382  throwWarning: tr("{0} is deprecated", "{1.key}");
383  suggestAlternative: "building:levels";
384  fixChangeKey: "levels => building:levels";
385}
386
387/* see #10691 */
388*[protected_class] {
389  throwWarning: tr("{0} is deprecated", "{0.key}");
390  suggestAlternative: "protect_class";
391  fixChangeKey: "protected_class => protect_class";
392}
393
394/* see #11070 */
395*[lock=unknown],
396*[hide=unknown],
397*[shelter=unknown],
398*[access=unknown],
399*[capacity:parent=unknown],
400*[capacity:women=unknown],
401*[capacity:disabled=unknown],
402*[crossing=unknown],
403*[foot=unknown] {
404  throwWarning: tr("Unspecific tag {0}", "{0.tag}");
405}
406
407/* unclear definition, see #11183 */
408*[sport=skiing][!piste:type] {
409  throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
410  suggestAlternative: {1.key};
411}
412
413/* see #11223 */
414*[waterway=wadi] {
415  throwWarning: tr("{0} is deprecated", "{0.tag}");
416  suggestAlternative: "{0.key}=* + intermittent=yes";
417  suggestAlternative: "natural=valley";
418}
419
420/* see #10346 */
421way[oneway=1] {
422  throwWarning: tr("{0} is deprecated", "{0.tag}");
423  suggestAlternative: "oneway=yes";
424  fixAdd: "oneway=yes";
425}
426
427/* see #11329 */
428way[oneway=-1] {
429  throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
430}
431
432*[drinkable] {
433  throwWarning: tr("{0} is deprecated", "{0.key}");
434  suggestAlternative: "drinking_water";
435}
436
437/* see #10329 */
438*[color][!colour] {
439  throwWarning: tr("{0} is deprecated", "{0.key}");
440  suggestAlternative: "colour";
441  fixChangeKey: "color => colour";
442}
443*[color][colour][tag(color)=tag(colour)] {
444  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
445  set samecolor;
446  fixRemove: "color";
447}
448*[color][colour]!.samecolor {
449  throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
450}
451*[/:color/]{
452  throwWarning: tr("{0} is deprecated", "{0.key}");
453  suggestAlternative: ":colour";
454}
455*[/color:/] {
456  throwWarning: tr("{0} is deprecated", "{0.key}");
457  suggestAlternative: "colour:";
458}
459
460/* see #11234 */
461*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
462  throwWarning: tr("key with uncommon character");
463}
464
465/* see #11330 */
466*[/^.$/],
467node[/^..$/],
468way[/^..$/],
469relation[/^..$/][!to] {
470  throwWarning: tr("uncommon short key");
471}
472
473/* see #11344 */
474*[tower=air_to_ground] {
475  throwWarning: tr("{0} is deprecated", "{0.tag}");
476  suggestAlternative: "tower=transition";
477  fixAdd: "tower=transition";
478}
479*[pole=air_to_ground] {
480  throwWarning: tr("{0} is deprecated", "{0.tag}");
481  suggestAlternative: "pole=transition";
482  fixAdd: "pole=transition";
483}
484
485/* see #11439 */
486*[sport=hockey] {
487  throwWarning: tr("{0} is inaccurate", "{0.tag}");
488  suggestAlternative: "sport=field_hockey";
489  suggestAlternative: "sport=ice_hockey";
490}
491
492/* see #11471 */
493*[sport=billard],
494*[sport=billards],
495*[sport=billiard] {
496  throwWarning: tr("{0} is deprecated", "{0.tag}");
497  suggestAlternative: "sport=billiards";
498  fixAdd: "sport=billiards";
499}
500
501/* see #11499 */
502*[payment:credit_cards=yes] {
503  throwWarning: tr("{0} is inaccurate", "{0.tag}");
504  suggestAlternative: "payment:mastercard=yes";
505  suggestAlternative: "payment:visa=yes";
506  suggestAlternative: "...";
507}
508*[payment:debit_cards=yes] {
509  throwWarning: tr("{0} is inaccurate", "{0.tag}");
510  suggestAlternative: "payment:maestro=yes";
511  suggestAlternative: "payment:girocard=yes";
512  suggestAlternative: "...";
513}
514*[payment:electronic_purses=yes] {
515  throwWarning: tr("{0} is inaccurate", "{0.tag}");
516  suggestAlternative: "payment:ep_geldkarte=yes";
517  suggestAlternative: "payment:ep_quick=yes";
518  suggestAlternative: "...";
519}
520*[payment:cryptocurrencies=yes] {
521  throwWarning: tr("{0} is inaccurate", "{0.tag}");
522  suggestAlternative: "payment:bitcoin=yes";
523  suggestAlternative: "payment:litecoin=yes";
524  suggestAlternative: "...";
525}
526
527/* see #8717 */
528*[kp][highway=milestone],
529*[kp][railway=milestone],
530*[kp][waterway=milestone] {
531  throwWarning: tr("{0} is deprecated", "{0.key}");
532  suggestAlternative: "distance";
533  fixChangeKey: "kp => distance";
534}
535*[pk][highway=milestone],
536*[pk][railway=milestone],
537*[pk][waterway=milestone] {
538  throwWarning: tr("{0} is deprecated", "{0.key}");
539  suggestAlternative: "distance";
540  fixChangeKey: "pk => distance";
541}
542
543*[postcode] {
544  throwWarning: tr("{0} is deprecated", "{0.key}");
545  suggestAlternative: "addr:postcode";
546  suggestAlternative: "postal_code";
547}
548
549*[water=intermittent] {
550  throwWarning: tr("{0} is deprecated", "{0.tag}");
551  suggestAlternative: "intermittent=yes";
552  fixRemove: "water";
553  fixAdd: "intermittent=yes";
554}
555
556*[type][man_made=pipeline],
557*[type][pipeline=marker] {
558  throwWarning: tr("{0} is deprecated", "{0.key}");
559  suggestAlternative: "substance";
560  fixChangeKey: "type => substance";
561}
562
563*[landuse=farm] {
564  throwWarning: tr("{0} is deprecated", "{0.tag}");
565  suggestAlternative: "landuse=farmland";
566  suggestAlternative: "landuse=farmyard";
567}
568
569/* #12135 comment:11 */
570*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
571  throwWarning: tr("{0} is deprecated", "{0.tag}");
572  suggestAlternative: "{1.tag}";
573  fixRemove: "seamark";
574}
575*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
576  throwWarning: tr("{0} is deprecated", "{0.tag}");
577  suggestAlternative: "{1.tag}";
578}
579/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
580*[landuse=conservation] {
581  throwWarning: tr("{0} is deprecated", "{0.tag}");
582  suggestAlternative: "boundary=protected_area";
583  fixAdd: "boundary=protected_area";
584  fixRemove: "landuse";
585}
586
587/* #12205 */
588*[amenity=kiosk] {
589  throwWarning: tr("{0} is deprecated", "{0.tag}");
590  suggestAlternative: "shop=kiosk";
591  fixChangeKey: "amenity => shop";
592}
593*[amenity=shop] {
594  throwWarning: tr("{0} is deprecated", "{0.tag}");
595  suggestAlternative: "shop=*";
596}
597*[shop=fishmonger] {
598  throwWarning: tr("{0} is deprecated", "{0.tag}");
599  suggestAlternative: "shop=seafood";
600  fixAdd: "shop=seafood";
601}
602*[shop=fish] {
603  throwWarning: tr("{0} is deprecated", "{0.tag}");
604  suggestAlternative: "shop=seafood";
605  suggestAlternative: "shop=pet";
606  suggestAlternative: "shop=fishing";
607}
608*[shop=betting] {
609  throwWarning: tr("{0} is deprecated", "{0.tag}");
610  suggestAlternative: "shop=bookmaker";
611  suggestAlternative: "shop=lottery";
612  suggestAlternative: "amenity=casino";
613  suggestAlternative: "leisure=amusement_arcade";
614  suggestAlternative: "leisure=adult_gaming_centre";
615  suggestAlternative: "amenity=gambling";
616}
617*[shop=perfume] {
618  throwWarning: tr("{0} is deprecated", "{0.tag}");
619  suggestAlternative: "shop=perfumery";
620  fixAdd: "shop=perfumery";
621}
622*[amenity=exercise_point] {
623  throwWarning: tr("{0} is deprecated", "{0.tag}");
624  suggestAlternative: "leisure=fitness_station";
625  fixAdd: "leisure=fitness_station";
626  fixRemove: "amenity";
627}
628*[shop=auto_parts] {
629  throwWarning: tr("{0} is deprecated", "{0.tag}");
630  suggestAlternative: "shop=car_parts";
631  fixAdd: "shop=car_parts";
632}
633*[amenity=car_repair] {
634  throwWarning: tr("{0} is deprecated", "{0.tag}");
635  suggestAlternative: "shop=car_repair";
636  fixChangeKey: "amenity => shop";
637}
638
639/* #12311 */
640*[amenity=studio][type=audio],
641*[amenity=studio][type=radio],
642*[amenity=studio][type=television],
643*[amenity=studio][type=video] {
644  throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
645  suggestAlternative: "studio";
646  fixChangeKey: "type => studio";
647}
648
649/* #11507, #12297 */
650*[power=cable_distribution_cabinet] {
651  throwWarning: tr("{0} is deprecated", "{0.tag}");
652  suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
653  fixAdd: "man_made=street_cabinet";
654  fixAdd: "street_cabinet=power";
655  fixRemove: "power";
656}
657
658/* #12276 */
659*[man_made=well] {
660  throwWarning: tr("{0} is deprecated", "{0.tag}");
661  suggestAlternative: "man_made=water_well";
662  suggestAlternative: "man_made=petroleum_well";
663}
664*[amenity=dog_bin],
665*[amenity=dog_waste_bin] {
666  throwWarning: tr("{0} is deprecated", "{0.tag}");
667  suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
668  fixAdd: "amenity=waste_basket";
669  fixAdd: "waste=dog_excrement";
670  fixAdd: "vending=excrement_bags";
671}
672*[amenity=artwork] {
673  throwWarning: tr("{0} is deprecated", "{0.tag}");
674  suggestAlternative: "tourism=artwork";
675  fixAdd: "tourism=artwork";
676  fixRemove: "amenity";
677}
678*[amenity=community_center] {
679  throwWarning: tr("{0} is deprecated", "{0.tag}");
680  suggestAlternative: "amenity=community_centre";
681  fixAdd: "amenity=community_centre";
682}
683*[man_made=cut_line] {
684  throwWarning: tr("{0} is deprecated", "{0.tag}");
685  suggestAlternative: "man_made=cutline";
686  fixAdd: "man_made=cutline";
687}
688*[amenity=park] {
689  throwWarning: tr("{0} is deprecated", "{0.tag}");
690  suggestAlternative: "leisure=park";
691  fixAdd: "leisure=park";
692  fixRemove: "amenity";
693}
694*[amenity=hotel] {
695  throwWarning: tr("{0} is deprecated", "{0.tag}");
696  suggestAlternative: "tourism=hotel";
697  fixAdd: "tourism=hotel";
698  fixRemove: "amenity";
699}
700*[shop=window],
701*[shop=windows] {
702  throwWarning: tr("{0} is deprecated", "{0.tag}");
703  suggestAlternative: "craft=window_construction";
704  fixAdd: "craft=window_construction";
705  fixRemove: "shop";
706}
707*[amenity=education] {
708  throwWarning: tr("{0} is deprecated", "{0.tag}");
709  suggestAlternative: "amenity=college";
710  suggestAlternative: "amenity=school";
711  suggestAlternative: "amenity=university";
712}
713*[shop=gallery] {
714  throwWarning: tr("{0} is deprecated", "{0.tag}");
715  suggestAlternative: "shop=art";
716  fixAdd: "shop=art";
717}
718*[shop=gambling],
719*[leisure=gambling] {
720  throwWarning: tr("{0} is deprecated", "{0.tag}");
721  suggestAlternative: "shop=bookmaker";
722  suggestAlternative: "shop=lottery";
723  suggestAlternative: "amenity=casino";
724  suggestAlternative: "leisure=amusement_arcade";
725  suggestAlternative: "amenity=gambling";
726}
727*[office=real_estate_agent] {
728  throwWarning: tr("{0} is deprecated", "{0.tag}");
729  suggestAlternative: "office=estate_agent ";
730  fixAdd: "office=estate_agent ";
731}
732*[shop=glass] {
733  throwWarning: tr("{0} is deprecated", "{0.tag}");
734  suggestAlternative: "shop=glaziery";
735  suggestAlternative: "craft=glaziery";
736}
737*[amenity=proposed],
738*[amenity=proposed],
739*[amenity=disused],
740*[shop=disused],
741*[historic=abandoned] {
742  throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
743}
Note: See TracBrowser for help on using the repository browser.