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

Last change on this file since 10230 was 10230, checked in by Klumbumbus, 9 years ago

see #12771 - warn about uncommon values of key service

  • Property svn:eol-style set to native
File size: 25.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*[note][note=~/^(?i)fixme$/] {
278 throwWarning: tr("{0} is unspecific. Instead use the key fixme with the information what exactly should be fixed in the value of fixme.", "{0.tag}");
279}
280
281/* see #10107, #10108, #10929 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
282*[wood=deciduous],
283*[type=broad_leaved],
284*[type=broad_leafed] {
285 throwWarning: tr("{0} is deprecated", "{0.tag}");
286 suggestAlternative: "leaf_type=broadleaved";
287 fixRemove: "{0.key}";
288 fixAdd: "leaf_type=broadleaved";
289}
290
291*[wood=coniferous],
292*[type=coniferous],
293*[type=conifer] {
294 throwWarning: tr("{0} is deprecated", "{0.tag}");
295 suggestAlternative: "leaf_type=needleleaved";
296 fixRemove: "{0.key}";
297 fixAdd: "leaf_type=needleleaved";
298}
299
300*[wood=mixed] {
301 throwWarning: tr("{0} is deprecated", "{0.tag}");
302 suggestAlternative: "leaf_type=mixed";
303 fixRemove: "wood";
304 fixAdd: "leaf_type=mixed";
305}
306
307*[wood=evergreen],
308*[type=evergreen] {
309 throwWarning: tr("{0} is deprecated", "{0.tag}");
310 suggestAlternative: "leaf_cycle=evergreen";
311 fixRemove: "{0.key}";
312 fixAdd: "leaf_cycle=evergreen";
313}
314
315*[type=deciduous],
316*[type=deciduos] {
317 throwWarning: tr("{0} is deprecated", "{0.tag}");
318 suggestAlternative: "leaf_cycle=deciduous";
319 fixRemove: "type";
320 fixAdd: "leaf_cycle=deciduous";
321}
322
323*[natural=land] {
324 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
325 assertMatch: "way natural=land";
326}
327
328/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
329*[bridge=causeway] {
330 throwWarning: tr("{0} is deprecated", "{0.tag}");
331 suggestAlternative: "ford=yes";
332 suggestAlternative: "bridge=low_water_crossing";
333 suggestAlternative: "embankment=yes";
334}
335
336*[bridge=swing] {
337 throwWarning: tr("{0} is deprecated", "{0.tag}");
338 suggestAlternative: "bridge:movable=swing";
339 suggestAlternative: "bridge:structure=simple-suspension";
340}
341
342*[bridge=suspension] {
343 throwWarning: tr("{0} is deprecated", "{0.tag}");
344 suggestAlternative: "bridge=yes + bridge:structure=suspension";
345 fixAdd: "bridge=yes";
346 fixAdd: "bridge:structure=suspension";
347}
348
349/* See #10530 - Incorrect tag proposed in internal preset for years */
350*[fee=interval],
351*[lit=interval],
352*[supervised=interval] {
353 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
354}
355
356/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
357*[/josm\/ignore/] {
358 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
359 fixDeleteObject: this;
360}
361
362/* see #8281 */
363*[sport=diving] {
364 throwWarning: tr("{0} is deprecated", "{0.tag}");
365 suggestAlternative: "sport=scuba_diving";
366 suggestAlternative: "sport=cliff_diving";
367}
368
369/* see #8281 */
370*[parking=park_and_ride] {
371 throwWarning: tr("{0} is deprecated", "{0.tag}");
372 suggestAlternative: "amenity=parking + park_ride=yes";
373 fixRemove: "parking";
374 fixAdd: "amenity=parking";
375 fixAdd: "park_ride=yes";
376}
377
378/* see #10661, #10837, #11737, #12771 */
379*[traffic_calming=yes],
380*[access=restricted],
381*[barrier=yes],
382*[aerialway=yes][!public_transport],
383*[amenity=yes],
384*[shop="*"],
385*[craft=yes],
386*[service=yes],
387*[place=yes] {
388 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
389}
390
391/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
392*[place_name][!name] {
393 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
394 fixChangeKey: "place_name => name";
395}
396*[place][place_name = *name] {
397 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
398 fixRemove: "{1.key}";
399}
400
401way[sidewalk=yes] {
402 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
403}
404
405*[waterway=water_point] {
406 throwWarning: tr("{0} is deprecated", "{0.tag}");
407 suggestAlternative: "amenity=water_point";
408 fixChangeKey: "waterway => amenity";
409}
410*[waterway=waste_disposal] {
411 throwWarning: tr("{0} is deprecated", "{0.tag}");
412 suggestAlternative: "amenity=waste_disposal";
413 fixChangeKey: "waterway => amenity";
414}
415*[waterway=mooring] {
416 throwWarning: tr("{0} is deprecated", "{0.tag}");
417 suggestAlternative: "mooring=yes";
418 fixRemove: "waterway";
419 fixAdd: "mooring=yes";
420}
421
422/* see #10837 */
423*[building][levels],
424*[building:part=yes][levels] {
425 throwWarning: tr("{0} is deprecated", "{1.key}");
426 suggestAlternative: "building:levels";
427 fixChangeKey: "levels => building:levels";
428}
429
430/* see #10691 */
431*[protected_class] {
432 throwWarning: tr("{0} is deprecated", "{0.key}");
433 suggestAlternative: "protect_class";
434 fixChangeKey: "protected_class => protect_class";
435}
436
437/* see #11070 */
438*[lock=unknown],
439*[hide=unknown],
440*[shelter=unknown],
441*[access=unknown],
442*[capacity:parent=unknown],
443*[capacity:women=unknown],
444*[capacity:disabled=unknown],
445*[crossing=unknown],
446*[foot=unknown] {
447 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
448}
449
450/* unclear definition, see #11183 */
451*[sport=skiing][!piste:type] {
452 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
453 suggestAlternative: {1.key};
454}
455
456/* see #11223 */
457*[waterway=wadi] {
458 throwWarning: tr("{0} is deprecated", "{0.tag}");
459 suggestAlternative: "{0.key}=* + intermittent=yes";
460 suggestAlternative: "natural=valley";
461}
462
463/* see #10346 */
464way[oneway=1] {
465 throwWarning: tr("{0} is deprecated", "{0.tag}");
466 suggestAlternative: "oneway=yes";
467 fixAdd: "oneway=yes";
468}
469
470/* see #11329 */
471way[oneway=-1] {
472 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
473}
474
475*[drinkable] {
476 throwWarning: tr("{0} is deprecated", "{0.key}");
477 suggestAlternative: "drinking_water";
478}
479
480/* see #10329 */
481*[color][!colour] {
482 throwWarning: tr("{0} is deprecated", "{0.key}");
483 suggestAlternative: "colour";
484 fixChangeKey: "color => colour";
485}
486*[color][colour][tag(color)=tag(colour)] {
487 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
488 set samecolor;
489 fixRemove: "color";
490}
491*[color][colour]!.samecolor {
492 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
493}
494*[/:color/]{
495 throwWarning: tr("{0} is deprecated", "{0.key}");
496 suggestAlternative: ":colour";
497}
498*[/color:/] {
499 throwWarning: tr("{0} is deprecated", "{0.key}");
500 suggestAlternative: "colour:";
501}
502
503/* see #11234 */
504*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
505 throwWarning: tr("key with uncommon character");
506}
507
508/* see #11330 */
509*[/^.$/],
510node[/^..$/],
511way[/^..$/],
512relation[/^..$/][!to] {
513 throwWarning: tr("uncommon short key");
514}
515
516/* see #11344 */
517*[tower=air_to_ground] {
518 throwWarning: tr("{0} is deprecated", "{0.tag}");
519 suggestAlternative: "tower=transition";
520 fixAdd: "tower=transition";
521}
522*[pole=air_to_ground] {
523 throwWarning: tr("{0} is deprecated", "{0.tag}");
524 suggestAlternative: "pole=transition";
525 fixAdd: "pole=transition";
526}
527
528/* see #11439 */
529*[sport=hockey] {
530 throwWarning: tr("{0} is inaccurate", "{0.tag}");
531 suggestAlternative: "sport=field_hockey";
532 suggestAlternative: "sport=ice_hockey";
533}
534
535/* see #11471 */
536*[sport=billard],
537*[sport=billards],
538*[sport=billiard] {
539 throwWarning: tr("{0} is deprecated", "{0.tag}");
540 suggestAlternative: "sport=billiards";
541 fixAdd: "sport=billiards";
542}
543
544/* see #11499 */
545*[payment:credit_cards=yes] {
546 throwWarning: tr("{0} is inaccurate", "{0.tag}");
547 suggestAlternative: "payment:mastercard=yes";
548 suggestAlternative: "payment:visa=yes";
549 suggestAlternative: "...";
550}
551*[payment:debit_cards=yes] {
552 throwWarning: tr("{0} is inaccurate", "{0.tag}");
553 suggestAlternative: "payment:maestro=yes";
554 suggestAlternative: "payment:girocard=yes";
555 suggestAlternative: "...";
556}
557*[payment:electronic_purses=yes] {
558 throwWarning: tr("{0} is inaccurate", "{0.tag}");
559 suggestAlternative: "payment:ep_geldkarte=yes";
560 suggestAlternative: "payment:ep_quick=yes";
561 suggestAlternative: "...";
562}
563*[payment:cryptocurrencies=yes] {
564 throwWarning: tr("{0} is inaccurate", "{0.tag}");
565 suggestAlternative: "payment:bitcoin=yes";
566 suggestAlternative: "payment:litecoin=yes";
567 suggestAlternative: "...";
568}
569
570/* see #8717 */
571*[kp][highway=milestone],
572*[kp][railway=milestone],
573*[kp][waterway=milestone] {
574 throwWarning: tr("{0} is deprecated", "{0.key}");
575 suggestAlternative: "distance";
576 fixChangeKey: "kp => distance";
577}
578*[pk][highway=milestone],
579*[pk][railway=milestone],
580*[pk][waterway=milestone] {
581 throwWarning: tr("{0} is deprecated", "{0.key}");
582 suggestAlternative: "distance";
583 fixChangeKey: "pk => distance";
584}
585
586*[postcode] {
587 throwWarning: tr("{0} is deprecated", "{0.key}");
588 suggestAlternative: "addr:postcode";
589 suggestAlternative: "postal_code";
590}
591
592*[water=intermittent] {
593 throwWarning: tr("{0} is deprecated", "{0.tag}");
594 suggestAlternative: "intermittent=yes";
595 fixRemove: "water";
596 fixAdd: "intermittent=yes";
597}
598
599*[type][man_made=pipeline],
600*[type][pipeline=marker] {
601 throwWarning: tr("{0} is deprecated", "{0.key}");
602 suggestAlternative: "substance";
603 fixChangeKey: "type => substance";
604}
605
606*[landuse=farm] {
607 throwWarning: tr("{0} is deprecated", "{0.tag}");
608 suggestAlternative: "landuse=farmland";
609 suggestAlternative: "landuse=farmyard";
610}
611
612/* #12135 comment:11 */
613*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
614 throwWarning: tr("{0} is deprecated", "{0.tag}");
615 suggestAlternative: "{1.tag}";
616 fixRemove: "seamark";
617}
618*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
619 throwWarning: tr("{0} is deprecated", "{0.tag}");
620 suggestAlternative: "{1.tag}";
621}
622/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
623*[landuse=conservation] {
624 throwWarning: tr("{0} is deprecated", "{0.tag}");
625 suggestAlternative: "boundary=protected_area";
626 fixAdd: "boundary=protected_area";
627 fixRemove: "landuse";
628}
629
630/* #12205 */
631*[amenity=kiosk] {
632 throwWarning: tr("{0} is deprecated", "{0.tag}");
633 suggestAlternative: "shop=kiosk";
634 fixChangeKey: "amenity => shop";
635}
636*[amenity=shop] {
637 throwWarning: tr("{0} is deprecated", "{0.tag}");
638 suggestAlternative: "shop=*";
639}
640*[shop=fishmonger] {
641 throwWarning: tr("{0} is deprecated", "{0.tag}");
642 suggestAlternative: "shop=seafood";
643 fixAdd: "shop=seafood";
644}
645*[shop=fish] {
646 throwWarning: tr("{0} is deprecated", "{0.tag}");
647 suggestAlternative: "shop=seafood";
648 suggestAlternative: "shop=pet";
649 suggestAlternative: "shop=fishing";
650}
651*[shop=betting] {
652 throwWarning: tr("{0} is deprecated", "{0.tag}");
653 suggestAlternative: "shop=bookmaker";
654 suggestAlternative: "shop=lottery";
655 suggestAlternative: "amenity=casino";
656 suggestAlternative: "leisure=amusement_arcade";
657 suggestAlternative: "leisure=adult_gaming_centre";
658 suggestAlternative: "amenity=gambling";
659}
660*[shop=perfume] {
661 throwWarning: tr("{0} is deprecated", "{0.tag}");
662 suggestAlternative: "shop=perfumery";
663 fixAdd: "shop=perfumery";
664}
665*[amenity=exercise_point] {
666 throwWarning: tr("{0} is deprecated", "{0.tag}");
667 suggestAlternative: "leisure=fitness_station";
668 fixAdd: "leisure=fitness_station";
669 fixRemove: "amenity";
670}
671*[shop=auto_parts] {
672 throwWarning: tr("{0} is deprecated", "{0.tag}");
673 suggestAlternative: "shop=car_parts";
674 fixAdd: "shop=car_parts";
675}
676*[amenity=car_repair] {
677 throwWarning: tr("{0} is deprecated", "{0.tag}");
678 suggestAlternative: "shop=car_repair";
679 fixChangeKey: "amenity => shop";
680}
681
682/* #12311 */
683*[amenity=studio][type=audio],
684*[amenity=studio][type=radio],
685*[amenity=studio][type=television],
686*[amenity=studio][type=video] {
687 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
688 suggestAlternative: "studio";
689 fixChangeKey: "type => studio";
690}
691
692/* #11507, #12297 */
693*[power=cable_distribution_cabinet] {
694 throwWarning: tr("{0} is deprecated", "{0.tag}");
695 suggestAlternative: "man_made=street_cabinet + street_cabinet=power";
696 fixAdd: "man_made=street_cabinet";
697 fixAdd: "street_cabinet=power";
698 fixRemove: "power";
699}
700
701/* #12276 */
702*[man_made=well] {
703 throwWarning: tr("{0} is deprecated", "{0.tag}");
704 suggestAlternative: "man_made=water_well";
705 suggestAlternative: "man_made=petroleum_well";
706}
707*[amenity=dog_bin],
708*[amenity=dog_waste_bin] {
709 throwWarning: tr("{0} is deprecated", "{0.tag}");
710 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
711 fixAdd: "amenity=waste_basket";
712 fixAdd: "waste=dog_excrement";
713 fixAdd: "vending=excrement_bags";
714}
715*[amenity=artwork] {
716 throwWarning: tr("{0} is deprecated", "{0.tag}");
717 suggestAlternative: "tourism=artwork";
718 fixAdd: "tourism=artwork";
719 fixRemove: "amenity";
720}
721*[amenity=community_center] {
722 throwWarning: tr("{0} is deprecated", "{0.tag}");
723 suggestAlternative: "amenity=community_centre";
724 fixAdd: "amenity=community_centre";
725}
726*[man_made=cut_line] {
727 throwWarning: tr("{0} is deprecated", "{0.tag}");
728 suggestAlternative: "man_made=cutline";
729 fixAdd: "man_made=cutline";
730}
731*[amenity=park] {
732 throwWarning: tr("{0} is deprecated", "{0.tag}");
733 suggestAlternative: "leisure=park";
734 fixAdd: "leisure=park";
735 fixRemove: "amenity";
736}
737*[amenity=hotel] {
738 throwWarning: tr("{0} is deprecated", "{0.tag}");
739 suggestAlternative: "tourism=hotel";
740 fixAdd: "tourism=hotel";
741 fixRemove: "amenity";
742}
743*[shop=window],
744*[shop=windows] {
745 throwWarning: tr("{0} is deprecated", "{0.tag}");
746 suggestAlternative: "craft=window_construction";
747 fixAdd: "craft=window_construction";
748 fixRemove: "shop";
749}
750*[amenity=education] {
751 throwWarning: tr("{0} is deprecated", "{0.tag}");
752 suggestAlternative: "amenity=college";
753 suggestAlternative: "amenity=school";
754 suggestAlternative: "amenity=university";
755}
756*[shop=gallery] {
757 throwWarning: tr("{0} is deprecated", "{0.tag}");
758 suggestAlternative: "shop=art";
759 fixAdd: "shop=art";
760}
761*[shop=gambling],
762*[leisure=gambling] {
763 throwWarning: tr("{0} is deprecated", "{0.tag}");
764 suggestAlternative: "shop=bookmaker";
765 suggestAlternative: "shop=lottery";
766 suggestAlternative: "amenity=casino";
767 suggestAlternative: "leisure=amusement_arcade";
768 suggestAlternative: "amenity=gambling";
769}
770*[office=real_estate_agent] {
771 throwWarning: tr("{0} is deprecated", "{0.tag}");
772 suggestAlternative: "office=estate_agent ";
773 fixAdd: "office=estate_agent ";
774}
775*[shop=glass] {
776 throwWarning: tr("{0} is deprecated", "{0.tag}");
777 suggestAlternative: "shop=glaziery";
778 suggestAlternative: "craft=glaziery";
779}
780*[amenity=proposed],
781*[amenity=proposed],
782*[amenity=disused],
783*[shop=disused],
784*[historic=abandoned] {
785 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
786}
787
788/* #12431 */
789*[amenity=swimming_pool] {
790 throwWarning: tr("{0} is deprecated", "{0.tag}");
791 suggestAlternative: "leisure=swimming_pool";
792 fixChangeKey: "amenity => leisure";
793}
794
795/* #12494 */
796*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
797 throwOther: tr("questionable key (ending with a number): {0}", "{0.key}");
798} /*should not warn for key tiger:name_base_1 */
799
800/* #12500 */
801*[sport=skating] {
802 throwWarning: tr("{0} is deprecated", "{0.tag}");
803 suggestAlternative: "sport=ice_skating";
804 suggestAlternative: "sport=roller_skating";
805}
806
807way[barrier=wall][type=noise_barrier][!wall],
808way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
809 throwWarning: tr("{0} is deprecated", "{1.tag}");
810 suggestAlternative: "wall=noise_barrier";
811 fixChangeKey: "type => wall";
812}
813way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
814 throwWarning: tr("{0} is deprecated", "{1.tag}");
815 suggestAlternative: "wall=noise_barrier";
816}
817
818/* #8978, 12588 */
819*[amenity=public_building] {
820 throwWarning: tr("{0} is deprecated", "{0.tag}");
821 suggestAlternative: "amenity=townhall";
822 suggestAlternative: "amenity=community_centre";
823 suggestAlternative: "amenity=hospital";
824 suggestAlternative: "leisure=sports_centre";
825 suggestAlternative: "office=government";
826 suggestAlternative: "building=hospital";
827 suggestAlternative: "building=public";
828 suggestAlternative: "...";
829}
830
831/* #12708 */
832*[vending=news_papers] {
833 throwWarning: tr("{0} is deprecated", "{0.tag}");
834 suggestAlternative: "vending=newspapers";
835 fixAdd: "vending=newspapers";
836}
837
838/* #12771 */
839*[service=drive_through] {
840 throwWarning: tr("{0} is deprecated", "{0.tag}");
841 suggestAlternative: "service=drive-through";
842 fixAdd: "service=drive-through";
843}
844
845/* #12771 */
846way[highway=service][service][service !~ /^(alley|drive-through|driveway|emergency_access|parking_aisle|rest_area)$/],
847way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
848way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
849 throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
850}
Note: See TracBrowser for help on using the repository browser.