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

Last change on this file since 11025 was 11025, checked in by Klumbumbus, 7 years ago

fix #13653 - use emergency_telephone_code instead of phone for highway=emergency_access_point

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