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

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

fix #12494 - warn about keys ending with a number

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