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

Last change on this file since 14805 was 14805, checked in by Don-vip, 5 years ago

fix #17377 - complain about shop=yes, except for amenity=fuel

  • Property svn:eol-style set to native
File size: 42.9 KB
Line 
1*[barrier=wire_fence] {
2 throwWarning: tr("{0} is deprecated", "{0.tag}");
3 group: tr("deprecated tagging");
4 suggestAlternative: "barrier=fence + fence_type=chain_link";
5 fixAdd: "barrier=fence";
6 fixAdd: "fence_type=chain_link";
7 assertMatch: "way barrier=wire_fence";
8 assertNoMatch: "way barrier=fence";
9}
10
11*[barrier=wood_fence] {
12 throwWarning: tr("{0} is deprecated", "{0.tag}");
13 suggestAlternative: "barrier=fence + fence_type=wood";
14 group: tr("deprecated tagging");
15 fixAdd: "barrier=fence";
16 fixAdd: "fence_type=wood";
17}
18
19node[highway=ford] {
20 throwWarning: tr("{0} is deprecated", "{0.tag}");
21 suggestAlternative: "ford=yes";
22 group: tr("deprecated tagging");
23 fixRemove: "highway";
24 fixAdd: "ford=yes";
25}
26way[highway=ford] {
27 throwWarning: tr("{0} is deprecated", "{0.tag}");
28 suggestAlternative: "highway=* + ford=yes";
29 group: tr("deprecated tagging");
30}
31
32way[class] {
33 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
34 throwWarning: tr("{0} is deprecated", "{0.key}");
35 suggestAlternative: "highway";
36 group: tr("deprecated tagging");
37}
38
39*[highway=stile] {
40 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
41 throwWarning: tr("{0} is deprecated", "{0.tag}");
42 suggestAlternative: "barrier=stile";
43 group: tr("deprecated tagging");
44 fixRemove: "highway";
45 fixAdd: "barrier=stile";
46}
47
48*[highway=incline] {
49 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
50 throwWarning: tr("{0} is deprecated", "{0.tag}");
51 suggestAlternative: "incline";
52 group: tr("deprecated tagging");
53}
54
55*[highway=incline_steep] {
56 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
57 throwWarning: tr("{0} is deprecated", "{0.tag}");
58 suggestAlternative: "incline";
59 group: tr("deprecated tagging");
60}
61
62*[highway=unsurfaced] {
63 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
64 throwWarning: tr("{0} is deprecated", "{0.tag}");
65 suggestAlternative: "highway=* + surface=unpaved";
66 group: tr("deprecated tagging");
67 fixAdd: "highway=road";
68 fixAdd: "surface=unpaved";
69}
70
71*[landuse=wood] {
72 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
73 throwWarning: tr("{0} is deprecated", "{0.tag}");
74 suggestAlternative: "landuse=forest";
75 suggestAlternative: "natural=wood";
76 group: tr("deprecated tagging");
77}
78
79*[natural=marsh] {
80 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
81 throwWarning: tr("{0} is deprecated", "{0.tag}");
82 suggestAlternative: "natural=wetland + wetland=marsh";
83 group: tr("deprecated tagging");
84 fixAdd: "natural=wetland";
85 fixAdd: "wetland=marsh";
86}
87
88*[highway=byway] {
89 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
90 throwWarning: tr("{0} is deprecated", "{0.tag}");
91 group: tr("deprecated tagging");
92}
93
94*[power_source] {
95 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
96 throwWarning: tr("{0} is deprecated", "{0.key}");
97 suggestAlternative: "generator:source";
98 group: tr("deprecated tagging");
99}
100
101*[power_rating] {
102 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
103 throwWarning: tr("{0} is deprecated", "{0.key}");
104 suggestAlternative: "generator:output";
105 group: tr("deprecated tagging");
106}
107
108*[shop=antique] {
109 throwWarning: tr("{0} is deprecated", "{0.tag}");
110 suggestAlternative: "shop=antiques";
111 group: tr("deprecated tagging");
112 fixAdd: "shop=antiques";
113}
114
115*[shop=bags] {
116 throwWarning: tr("{0} is deprecated", "{0.tag}");
117 suggestAlternative: "shop=bag";
118 group: tr("deprecated tagging");
119 fixAdd: "shop=bag";
120}
121
122*[shop=organic] {
123 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
124 throwWarning: tr("{0} is deprecated", "{0.tag}");
125 suggestAlternative: "shop=* + organic=yes";
126 suggestAlternative: "shop=* + organic=only";
127 group: tr("deprecated tagging");
128}
129
130*[shop=pets] {
131 throwWarning: tr("{0} is deprecated", "{0.tag}");
132 suggestAlternative: "shop=pet";
133 group: tr("deprecated tagging");
134 fixAdd: "shop=pet";
135}
136
137*[shop=pharmacy] {
138 throwWarning: tr("{0} is deprecated", "{0.tag}");
139 suggestAlternative: "amenity=pharmacy";
140 group: tr("deprecated tagging");
141 fixChangeKey: "shop => amenity";
142}
143
144*[bicycle_parking=sheffield] {
145 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
146 throwWarning: tr("{0} is deprecated", "{0.tag}");
147 suggestAlternative: "bicycle_parking=stands";
148 group: tr("deprecated tagging");
149 fixAdd: "bicycle_parking=stands";
150}
151
152*[amenity=emergency_phone] {
153 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
154 throwWarning: tr("{0} is deprecated", "{0.tag}");
155 suggestAlternative: "emergency=phone";
156 group: tr("deprecated tagging");
157 fixRemove: "amenity";
158 fixAdd: "emergency=phone";
159}
160
161*[sport=gaelic_football] {
162 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
163 throwWarning: tr("{0} is deprecated", "{0.tag}");
164 suggestAlternative: "sport=gaelic_games";
165 group: tr("deprecated tagging");
166 fixAdd: "sport=gaelic_games";
167}
168
169*[power=station] {
170 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
171 throwWarning: tr("{0} is deprecated", "{0.tag}");
172 suggestAlternative: "power=plant";
173 suggestAlternative: "power=substation";
174 group: tr("deprecated tagging");
175}
176
177*[power=sub_station] {
178 throwWarning: tr("{0} is deprecated", "{0.tag}");
179 suggestAlternative: "power=substation";
180 group: tr("deprecated tagging");
181 fixAdd: "power=substation";
182}
183
184*[generator:method=dam] {
185 throwWarning: tr("{0} is deprecated", "{0.tag}");
186 suggestAlternative: "generator:method=water-storage";
187 group: tr("deprecated tagging");
188 fixAdd: "generator:method=water-storage";
189}
190
191*[generator:method=pumped-storage] {
192 throwWarning: tr("{0} is deprecated", "{0.tag}");
193 suggestAlternative: "generator:method=water-pumped-storage";
194 group: tr("deprecated tagging");
195 fixAdd: "generator:method=water-pumped-storage";
196}
197
198*[generator:method=pumping] {
199 throwWarning: tr("{0} is deprecated", "{0.tag}");
200 suggestAlternative: "generator:method=water-pumped-storage";
201 group: tr("deprecated tagging");
202 fixAdd: "generator:method=water-pumped-storage";
203}
204
205*[fence_type=chain] {
206 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
207 throwWarning: tr("{0} is deprecated", "{0.tag}");
208 suggestAlternative: "barrier=chain";
209 suggestAlternative: "barrier=fence + fence_type=chain_link";
210 group: tr("deprecated tagging");
211}
212
213*[building=entrance] {
214 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
215 throwWarning: tr("{0} is deprecated", "{0.tag}");
216 suggestAlternative: "entrance";
217 group: tr("deprecated tagging");
218}
219
220*[board_type=board] {
221 /* see #9213 - Useless tag proposed in internal preset for years */
222 throwWarning: tr("{0} is deprecated", "{0.tag}");
223 group: tr("deprecated tagging");
224 fixRemove: "board_type";
225}
226
227*[man_made=measurement_station] {
228 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
229 throwWarning: tr("{0} is deprecated", "{0.tag}");
230 suggestAlternative: "man_made=monitoring_station";
231 group: tr("deprecated tagging");
232 fixAdd: "man_made=monitoring_station";
233}
234
235*[measurement=water_level] {
236 throwWarning: tr("{0} is deprecated", "{0.tag}");
237 suggestAlternative: "monitoring:water_level=yes";
238 group: tr("deprecated tagging");
239 fixRemove: "measurement";
240 fixAdd: "monitoring:water_level=yes";
241}
242
243*[measurement=weather] {
244 throwWarning: tr("{0} is deprecated", "{0.tag}");
245 suggestAlternative: "monitoring:weather=yes";
246 group: tr("deprecated tagging");
247 fixRemove: "measurement";
248 fixAdd: "monitoring:weather=yes";
249}
250
251*[measurement=seismic] {
252 throwWarning: tr("{0} is deprecated", "{0.tag}");
253 suggestAlternative: "monitoring:seismic_activity=yes";
254 group: tr("deprecated tagging");
255 fixRemove: "measurement";
256 fixAdd: "monitoring:seismic_activity=yes";
257}
258
259*[monitoring:river_level] {
260 throwWarning: tr("{0} is deprecated", "{0.key}");
261 suggestAlternative: "monitoring:water_level";
262 group: tr("deprecated tagging");
263 fixChangeKey: "monitoring:river_level => monitoring:water_level";
264}
265
266*[stay] {
267 throwWarning: tr("{0} is deprecated", "{0.key}");
268 suggestAlternative: "maxstay";
269 group: tr("deprecated tagging");
270 fixChangeKey: "stay => maxstay";
271}
272
273*[emergency=aed] {
274 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
275 throwWarning: tr("{0} is deprecated", "{0.tag}");
276 suggestAlternative: "emergency=defibrillator";
277 group: tr("deprecated tagging");
278 fixAdd: "emergency=defibrillator";
279}
280
281/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
282*[day_on][!restriction],
283*[day_off][!restriction],
284*[date_on][!restriction],
285*[date_off][!restriction],
286*[hour_on][!restriction],
287*[hour_off][!restriction] {
288 throwWarning: tr("{0} is deprecated", "{0.key}");
289 suggestAlternative: "*:conditional";
290 group: tr("deprecated tagging");
291 assertMatch: "node day_on=0-12";
292}
293
294/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
295*[access=designated] {
296 throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
297 assertMatch: "way access=designated";
298}
299*[access=official] {
300 throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
301 assertMatch: "way access=official";
302}
303
304/* see #10085 - give warning for fixme=yes */
305*[fixme=yes], *[FIXME=yes] {
306 throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
307 assertMatch: "way fixme=yes";
308}
309
310*[name][name=~/^(?i)fixme$/] {
311 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}");
312 fixRemove: "name";
313 assertMatch: "node name=fixme";
314 assertMatch: "node name=Fixme";
315 assertMatch: "node name=FIXME";
316 assertNoMatch: "node name=valid name";
317}
318
319*[note][note=~/^(?i)fixme$/] {
320 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}");
321}
322
323/* see #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
324*[type=broad_leaved],
325*[type=broad_leafed] {
326 throwWarning: tr("{0} is deprecated", "{0.tag}");
327 suggestAlternative: "leaf_type=broadleaved";
328 group: tr("deprecated tagging");
329 fixRemove: "{0.key}";
330 fixAdd: "leaf_type=broadleaved";
331}
332
333*[wood=coniferous],
334*[type=coniferous],
335*[type=conifer] {
336 throwWarning: tr("{0} is deprecated", "{0.tag}");
337 suggestAlternative: "leaf_type=needleleaved";
338 group: tr("deprecated tagging");
339 fixRemove: "{0.key}";
340 fixAdd: "leaf_type=needleleaved";
341}
342
343*[wood=mixed] {
344 throwWarning: tr("{0} is deprecated", "{0.tag}");
345 suggestAlternative: "leaf_type=mixed";
346 group: tr("deprecated tagging");
347 fixRemove: "wood";
348 fixAdd: "leaf_type=mixed";
349}
350
351*[wood=evergreen],
352*[type=evergreen] {
353 throwWarning: tr("{0} is deprecated", "{0.tag}");
354 suggestAlternative: "leaf_cycle=evergreen";
355 group: tr("deprecated tagging");
356 fixRemove: "{0.key}";
357 fixAdd: "leaf_cycle=evergreen";
358}
359
360*[type=deciduous],
361*[type=deciduos] {
362 throwWarning: tr("{0} is deprecated", "{0.tag}");
363 suggestAlternative: "leaf_cycle=deciduous";
364 group: tr("deprecated tagging");
365 fixRemove: "type";
366 fixAdd: "leaf_cycle=deciduous";
367}
368
369*[wood=deciduous] {
370 throwWarning: tr("{0} is deprecated", "{0.tag}");
371 suggestAlternative: "leaf_type + leaf_cycle";
372 group: tr("deprecated tagging");
373}
374
375node[type=palm],
376way[type=palm] {
377 throwWarning: tr("{0} is deprecated", "{0.tag}");
378 suggestAlternative: "leaf_type";
379 suggestAlternative: "trees";
380 suggestAlternative: "species";
381 group: tr("deprecated tagging");
382}
383
384*[natural=land] {
385 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
386 group: tr("deprecated tagging");
387 assertMatch: "way natural=land";
388}
389
390/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
391*[bridge=causeway] {
392 throwWarning: tr("{0} is deprecated", "{0.tag}");
393 suggestAlternative: "ford=yes";
394 suggestAlternative: "bridge=low_water_crossing";
395 suggestAlternative: "embankment=yes";
396 group: tr("deprecated tagging");
397}
398
399*[bridge=swing] {
400 throwWarning: tr("{0} is deprecated", "{0.tag}");
401 suggestAlternative: "bridge:movable=swing";
402 suggestAlternative: "bridge:structure=simple-suspension";
403 group: tr("deprecated tagging");
404}
405
406*[bridge=suspension] {
407 throwWarning: tr("{0} is deprecated", "{0.tag}");
408 suggestAlternative: "bridge=yes + bridge:structure=suspension";
409 group: tr("deprecated tagging");
410 fixAdd: "bridge=yes";
411 fixAdd: "bridge:structure=suspension";
412}
413
414/* See #10530 - Incorrect tag proposed in internal preset for years */
415*[fee=interval],
416*[lit=interval],
417*[supervised=interval] {
418 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
419 group: tr("deprecated tagging");
420}
421
422/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
423*[/josm\/ignore/] {
424 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
425 group: tr("deprecated tagging");
426 fixDeleteObject: this;
427}
428
429/* see #8281 */
430*[sport=diving] {
431 throwWarning: tr("{0} is deprecated", "{0.tag}");
432 suggestAlternative: "sport=scuba_diving";
433 suggestAlternative: "sport=cliff_diving";
434 group: tr("deprecated tagging");
435}
436
437/* see #8281 */
438*[parking=park_and_ride] {
439 throwWarning: tr("{0} is deprecated", "{0.tag}");
440 suggestAlternative: "amenity=parking + park_ride=yes";
441 group: tr("deprecated tagging");
442 fixRemove: "parking";
443 fixAdd: "amenity=parking";
444 fixAdd: "park_ride=yes";
445}
446
447/* see #10661, #10837, #11737, #12771 */
448*[traffic_calming=yes],
449*[access=restricted],
450*[barrier=yes],
451*[aerialway=yes][!public_transport],
452*[amenity=yes],
453*[leisure=yes],
454*[shop="*"],
455*[shop=yes][amenity!=fuel],
456*[craft=yes],
457*[service=yes],
458*[place=yes] {
459 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
460}
461
462/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
463*[place_name][!name] {
464 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
465 fixChangeKey: "place_name => name";
466}
467*[place][place_name = *name] {
468 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
469 fixRemove: "{1.key}";
470}
471
472way[footway=/both|right|left|no|none/] {
473 throwWarning: tr("{0} is deprecated", "{0.tag}");
474 group: tr("deprecated tagging");
475 fixChangeKey: "footway => sidewalk";
476}
477way[sidewalk=yes] {
478 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
479}
480
481*[waterway=water_point] {
482 throwWarning: tr("{0} is deprecated", "{0.tag}");
483 suggestAlternative: "amenity=water_point";
484 group: tr("deprecated tagging");
485 fixChangeKey: "waterway => amenity";
486}
487*[waterway=waste_disposal] {
488 throwWarning: tr("{0} is deprecated", "{0.tag}");
489 suggestAlternative: "amenity=waste_disposal";
490 group: tr("deprecated tagging");
491 fixChangeKey: "waterway => amenity";
492}
493*[waterway=mooring] {
494 throwWarning: tr("{0} is deprecated", "{0.tag}");
495 suggestAlternative: "mooring=yes";
496 group: tr("deprecated tagging");
497 fixRemove: "waterway";
498 fixAdd: "mooring=yes";
499}
500
501/* see #10837 */
502*[building][levels],
503*[building:part=yes][levels] {
504 throwWarning: tr("{0} is deprecated", "{1.key}");
505 suggestAlternative: "building:levels";
506 group: tr("deprecated tagging");
507 fixChangeKey: "levels => building:levels";
508}
509
510/* see #10691 */
511*[protected_class] {
512 throwWarning: tr("{0} is deprecated", "{0.key}");
513 suggestAlternative: "protect_class";
514 group: tr("deprecated tagging");
515 fixChangeKey: "protected_class => protect_class";
516}
517
518/* see #11070 */
519*[lock=unknown],
520*[hide=unknown],
521*[shelter=unknown],
522*[access=unknown],
523*[capacity:parent=unknown],
524*[capacity:women=unknown],
525*[capacity:disabled=unknown],
526*[crossing=unknown],
527*[foot=unknown] {
528 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
529}
530
531/* unclear definition, see #11183 */
532*[sport=skiing] {
533 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
534 suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
535 group: tr("deprecated tagging");
536}
537
538/* see #11223 */
539*[waterway=wadi] {
540 throwWarning: tr("{0} is deprecated", "{0.tag}");
541 suggestAlternative: "{0.key}=* + intermittent=yes";
542 suggestAlternative: "natural=valley";
543 group: tr("deprecated tagging");
544}
545
546/* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
547way[oneway=1][!waterway] {
548 throwWarning: tr("{0} is deprecated", "{0.tag}");
549 suggestAlternative: "oneway=yes";
550 group: tr("deprecated tagging");
551 fixAdd: "oneway=yes";
552}
553
554/* see #11329, #15667 */
555way[oneway=-1][!waterway] {
556 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
557}
558
559*[drinkable] {
560 throwWarning: tr("{0} is deprecated", "{0.key}");
561 suggestAlternative: "drinking_water";
562 group: tr("deprecated tagging");
563}
564
565/* see #10329, #15877 */
566 /* simple key change */
567*[color][!colour] {
568 throwWarning: tr("{0} is deprecated", "{0.key}");
569 suggestAlternative: "colour";
570 group: tr("deprecated tagging");
571 fixChangeKey: "color => colour";
572 assertMatch: "way color=red";
573 assertNoMatch: "way color=red colour=red";
574}
575area[building:color][!building:colour] {
576 throwWarning: tr("{0} is deprecated", "{0.key}");
577 suggestAlternative: "building:colour";
578 group: tr("deprecated tagging");
579 fixChangeKey: "building:color => building:colour";
580 assertMatch: "way building:color=red";
581 assertNoMatch: "way building:color=red building:colour=red";
582}
583area[roof:color][!roof:colour] {
584 throwWarning: tr("{0} is deprecated", "{0.key}");
585 suggestAlternative: "roof:colour";
586 group: tr("deprecated tagging");
587 fixChangeKey: "roof:color => roof:colour";
588 assertMatch: "way roof:color=red";
589 assertNoMatch: "way roof:color=red roof:colour=red";
590}
591 /* both tags with same value, remove color */
592*[color][colour][color=*colour] {
593 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
594 suggestAlternative: "colour";
595 group: tr("deprecated tagging");
596 set samecolor;
597 fixRemove: "color";
598 assertMatch: "way color=red colour=red";
599 assertNoMatch: "way color=red colour=green";
600}
601area[building:color][building:colour]["building:color"=*"building:colour"] {
602 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
603 suggestAlternative: "building:colour";
604 group: tr("deprecated tagging");
605 set samebuildingcolor;
606 fixRemove: "building:color";
607 assertMatch: "way building:color=red building:colour=red";
608 assertNoMatch: "way building:color=red building:colour=green";
609}
610area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
611 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
612 suggestAlternative: "roof:colour";
613 group: tr("deprecated tagging");
614 set sameroofcolor;
615 fixRemove: "roof:color";
616 assertMatch: "way roof:color=red roof:colour=red";
617 assertNoMatch: "way roof:color=red roof:colour=green";
618}
619 /* both tags with different values, no autofix */
620*[color][colour]!.samecolor {
621 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
622 suggestAlternative: "colour";
623 group: tr("deprecated tagging");
624 assertNoMatch: "way color=red colour=red";
625 assertMatch: "way color=red colour=green";
626}
627*[building:color][building:colour]!.samebuildingcolor {
628 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
629 suggestAlternative: "building:colour";
630 group: tr("deprecated tagging");
631 assertNoMatch: "way building:color=red building:colour=red";
632 assertMatch: "way building:color=red building:colour=green";
633}
634*[roof:color][roof:colour]!.sameroofcolor {
635 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
636 suggestAlternative: "roof:colour";
637 group: tr("deprecated tagging");
638 assertNoMatch: "way roof:color=red roof:colour=red";
639 assertMatch: "way roof:color=red roof:colour=green";
640}
641 /* further more universal checks, no autofix */
642*[/:color/][!building:color][!roof:color] {
643 throwWarning: tr("{0} is deprecated", "{0.key}");
644 suggestAlternative: ":colour";
645 group: tr("deprecated tagging");
646 assertNoMatch: "way color=red";
647 assertNoMatch: "way roof:color=grey";
648 assertMatch: "way cycleway:surface:color=grey";
649}
650*[/color:/] {
651 throwWarning: tr("{0} is deprecated", "{0.key}");
652 suggestAlternative: "colour:";
653 group: tr("deprecated tagging");
654 assertNoMatch: "way color=red";
655 assertMatch: "way color:back=grey";
656}
657
658/* see #11234 */
659*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
660 throwWarning: tr("{0}", "{0.key}");
661 group: tr("key with uncommon character");
662}
663
664/* see #11330 */
665*[/^.$/],
666node[/^..$/],
667way[/^..$/],
668relation[/^..$/][!to] {
669 throwWarning: tr("uncommon short key");
670 assertNoMatch: "relation to=Berlin";
671 assertMatch: "relation fo=bar";
672 assertMatch: "way to=bar";
673 assertMatch: "node fo=bar";
674 assertMatch: "node f=b";
675}
676
677/* see #11439 */
678*[sport=hockey] {
679 throwWarning: tr("{0} is deprecated", "{0.tag}");
680 suggestAlternative: "sport=field_hockey";
681 suggestAlternative: "sport=ice_hockey";
682 group: tr("deprecated tagging");
683}
684
685/* see #11471 */
686*[sport=billard],
687*[sport=billards],
688*[sport=billiard] {
689 throwWarning: tr("{0} is deprecated", "{0.tag}");
690 suggestAlternative: "sport=billiards";
691 group: tr("deprecated tagging");
692 fixAdd: "sport=billiards";
693}
694
695/* see #11499, #16928 */
696*[payment:credit_cards=yes] {
697 throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:mastercard=yes", "payment:visa=yes");
698}
699*[payment:debit_cards=yes] {
700 throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:maestro=yes", "payment:girocard=yes");
701}
702*[payment:electronic_purses=yes] {
703 throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:ep_geldkarte=yes", "payment:ep_quick=yes");
704}
705*[payment:cryptocurrencies=yes] {
706 throwWarning: tr("{0} is inaccurate. Use separate tags for each specific type, e.g. {1} or {2}.", "{0.tag}", "payment:bitcoin=yes", "payment:litecoin=yes");
707}
708
709/* defunct payment cards */
710*[payment:ep_quick],
711*[payment:ep_cash],
712*[payment:ep_proton],
713*[payment:ep_chipknip] {
714 throwWarning: tr("{0} is deprecated", "{0.key}");
715 group: tr("deprecated tagging");
716 fixRemove: "{0.key}";
717}
718
719/* see #8717 */
720*[kp][highway=milestone],
721*[kp][railway=milestone],
722*[kp][waterway=milestone] {
723 throwWarning: tr("{0} is deprecated", "{0.key}");
724 suggestAlternative: "distance";
725 group: tr("deprecated tagging");
726 fixChangeKey: "kp => distance";
727}
728*[pk][highway=milestone],
729*[pk][railway=milestone],
730*[pk][waterway=milestone] {
731 throwWarning: tr("{0} is deprecated", "{0.key}");
732 suggestAlternative: "distance";
733 group: tr("deprecated tagging");
734 fixChangeKey: "pk => distance";
735}
736
737*[postcode] {
738 throwWarning: tr("{0} is deprecated", "{0.key}");
739 suggestAlternative: "addr:postcode";
740 group: tr("deprecated tagging");
741 suggestAlternative: "postal_code";
742}
743
744*[water=intermittent] {
745 throwWarning: tr("{0} is deprecated", "{0.tag}");
746 suggestAlternative: "intermittent=yes";
747 group: tr("deprecated tagging");
748 fixRemove: "water";
749 fixAdd: "intermittent=yes";
750}
751
752/* #10907, #14141 */
753/* type=waterway on ways is questionable, but the autofix doesn't make it better, so disabled; type=route and type=network is used only on relations */
754way[type][type!=waterway][man_made=pipeline],
755node[type][pipeline=marker] {
756 throwWarning: tr("{0} is deprecated", "{0.key}");
757 suggestAlternative: "substance";
758 group: tr("deprecated tagging");
759 fixChangeKey: "type => substance";
760}
761
762*[landuse=farm] {
763 throwWarning: tr("{0} is deprecated", "{0.tag}");
764 suggestAlternative: "landuse=farmland";
765 suggestAlternative: "landuse=farmyard";
766 group: tr("deprecated tagging");
767}
768
769/* #12135 comment:11 */
770*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
771 throwWarning: tr("{0} is deprecated", "{0.tag}");
772 suggestAlternative: "{1.tag}";
773 group: tr("deprecated tagging");
774 fixRemove: "seamark";
775}
776*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
777 throwWarning: tr("{0} is deprecated", "{0.tag}");
778 suggestAlternative: "{1.tag}";
779 group: tr("deprecated tagging");
780}
781/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
782*[landuse=conservation] {
783 throwWarning: tr("{0} is deprecated", "{0.tag}");
784 suggestAlternative: "boundary=protected_area";
785 group: tr("deprecated tagging");
786 fixAdd: "boundary=protected_area";
787 fixRemove: "landuse";
788}
789
790/* #12205 */
791*[amenity=kiosk] {
792 throwWarning: tr("{0} is deprecated", "{0.tag}");
793 suggestAlternative: "shop=kiosk";
794 group: tr("deprecated tagging");
795 fixChangeKey: "amenity => shop";
796}
797*[amenity=shop] {
798 throwWarning: tr("{0} is deprecated", "{0.tag}");
799 suggestAlternative: "shop=*";
800 group: tr("deprecated tagging");
801}
802*[shop=fishmonger] {
803 throwWarning: tr("{0} is deprecated", "{0.tag}");
804 suggestAlternative: "shop=seafood";
805 group: tr("deprecated tagging");
806 fixAdd: "shop=seafood";
807}
808*[shop=fish] {
809 throwWarning: tr("{0} is deprecated", "{0.tag}");
810 suggestAlternative: "shop=seafood";
811 suggestAlternative: "shop=pet";
812 suggestAlternative: "shop=fishing";
813 group: tr("deprecated tagging");
814}
815*[shop=betting] {
816 throwWarning: tr("{0} is deprecated", "{0.tag}");
817 suggestAlternative: "shop=bookmaker";
818 suggestAlternative: "shop=lottery";
819 suggestAlternative: "amenity=casino";
820 suggestAlternative: "leisure=amusement_arcade";
821 suggestAlternative: "leisure=adult_gaming_centre";
822 suggestAlternative: "amenity=gambling";
823 group: tr("deprecated tagging");
824}
825*[shop=perfume] {
826 throwWarning: tr("{0} is deprecated", "{0.tag}");
827 suggestAlternative: "shop=perfumery";
828 group: tr("deprecated tagging");
829 fixAdd: "shop=perfumery";
830}
831*[amenity=exercise_point] {
832 throwWarning: tr("{0} is deprecated", "{0.tag}");
833 suggestAlternative: "leisure=fitness_station";
834 group: tr("deprecated tagging");
835 fixAdd: "leisure=fitness_station";
836 fixRemove: "amenity";
837}
838*[shop=auto_parts] {
839 throwWarning: tr("{0} is deprecated", "{0.tag}");
840 suggestAlternative: "shop=car_parts";
841 group: tr("deprecated tagging");
842 fixAdd: "shop=car_parts";
843}
844*[amenity=car_repair] {
845 throwWarning: tr("{0} is deprecated", "{0.tag}");
846 suggestAlternative: "shop=car_repair";
847 group: tr("deprecated tagging");
848 fixChangeKey: "amenity => shop";
849}
850
851/* #12311 */
852*[amenity=studio][type=audio],
853*[amenity=studio][type=radio],
854*[amenity=studio][type=television],
855*[amenity=studio][type=video] {
856 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
857 suggestAlternative: "studio";
858 group: tr("deprecated tagging");
859 fixChangeKey: "type => studio";
860}
861
862/* #11507, #12297, #15409 */
863*[power=cable_distribution_cabinet] {
864 throwWarning: tr("{0} is deprecated", "{0.tag}");
865 suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
866 group: tr("deprecated tagging");
867 fixAdd: "man_made=street_cabinet";
868 fixRemove: "power";
869}
870
871/* #16430 */
872*[power][location=kiosk] {
873 throwWarning: tr("{0} is deprecated", "{1.tag}");
874 group: tr("deprecated tagging");
875 fixAdd: "man_made=street_cabinet";
876 fixAdd: "street_cabinet=power";
877 fixRemove: "location";
878}
879
880/* #12276 */
881*[man_made=well] {
882 throwWarning: tr("{0} is deprecated", "{0.tag}");
883 suggestAlternative: "man_made=water_well";
884 suggestAlternative: "man_made=petroleum_well";
885 group: tr("deprecated tagging");
886}
887*[amenity=dog_bin],
888*[amenity=dog_waste_bin] {
889 throwWarning: tr("{0} is deprecated", "{0.tag}");
890 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
891 group: tr("deprecated tagging");
892 fixAdd: "amenity=waste_basket";
893 fixAdd: "waste=dog_excrement";
894 fixAdd: "vending=excrement_bags";
895}
896*[amenity=artwork] {
897 throwWarning: tr("{0} is deprecated", "{0.tag}");
898 suggestAlternative: "tourism=artwork";
899 group: tr("deprecated tagging");
900 fixAdd: "tourism=artwork";
901 fixRemove: "amenity";
902}
903*[amenity=community_center] {
904 throwWarning: tr("{0} is deprecated", "{0.tag}");
905 suggestAlternative: "amenity=community_centre";
906 group: tr("deprecated tagging");
907 fixAdd: "amenity=community_centre";
908}
909*[man_made=cut_line] {
910 throwWarning: tr("{0} is deprecated", "{0.tag}");
911 suggestAlternative: "man_made=cutline";
912 group: tr("deprecated tagging");
913 fixAdd: "man_made=cutline";
914}
915*[amenity=park] {
916 throwWarning: tr("{0} is deprecated", "{0.tag}");
917 suggestAlternative: "leisure=park";
918 group: tr("deprecated tagging");
919 fixAdd: "leisure=park";
920 fixRemove: "amenity";
921}
922*[amenity=hotel] {
923 throwWarning: tr("{0} is deprecated", "{0.tag}");
924 suggestAlternative: "tourism=hotel";
925 group: tr("deprecated tagging");
926 fixAdd: "tourism=hotel";
927 fixRemove: "amenity";
928}
929*[shop=window],
930*[shop=windows] {
931 throwWarning: tr("{0} is deprecated", "{0.tag}");
932 suggestAlternative: "craft=window_construction";
933 group: tr("deprecated tagging");
934 fixAdd: "craft=window_construction";
935 fixRemove: "shop";
936}
937*[amenity=education] {
938 throwWarning: tr("{0} is deprecated", "{0.tag}");
939 suggestAlternative: "amenity=college";
940 suggestAlternative: "amenity=school";
941 suggestAlternative: "amenity=university";
942 group: tr("deprecated tagging");
943}
944*[shop=gallery] {
945 throwWarning: tr("{0} is deprecated", "{0.tag}");
946 suggestAlternative: "shop=art";
947 group: tr("deprecated tagging");
948 fixAdd: "shop=art";
949}
950*[shop=gambling],
951*[leisure=gambling] {
952 throwWarning: tr("{0} is deprecated", "{0.tag}");
953 suggestAlternative: "shop=bookmaker";
954 suggestAlternative: "shop=lottery";
955 suggestAlternative: "amenity=casino";
956 suggestAlternative: "leisure=amusement_arcade";
957 suggestAlternative: "amenity=gambling";
958 group: tr("deprecated tagging");
959}
960*[office=real_estate_agent] {
961 throwWarning: tr("{0} is deprecated", "{0.tag}");
962 suggestAlternative: "office=estate_agent ";
963 group: tr("deprecated tagging");
964 fixAdd: "office=estate_agent ";
965}
966*[shop=glass] {
967 throwWarning: tr("{0} is deprecated", "{0.tag}");
968 suggestAlternative: "shop=glaziery";
969 suggestAlternative: "craft=glaziery";
970 group: tr("deprecated tagging");
971}
972*[amenity=proposed],
973*[amenity=proposed],
974*[amenity=disused],
975*[shop=disused],
976*[historic=abandoned] {
977 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
978 group: tr("deprecated tagging");
979}
980
981/* #12431, #17379 */
982*[amenity=swimming_pool],
983*[amenity=sauna] {
984 throwWarning: tr("{0} is deprecated", "{0.tag}");
985 group: tr("deprecated tagging");
986 fixChangeKey: "amenity => leisure";
987}
988
989/* #12494 */
990*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
991 throwOther: tr("{0}", "{0.key}");
992 group: tr("questionable key (ending with a number)");
993 assertMatch: "way name_1=foo";
994 assertNoMatch: "way note_2=foo";
995 assertNoMatch: "way description_3=foo";
996 assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
997}
998
999/* #12500 */
1000*[sport=skating] {
1001 throwWarning: tr("{0} is deprecated", "{0.tag}");
1002 suggestAlternative: "sport=ice_skating";
1003 suggestAlternative: "sport=roller_skating";
1004 group: tr("deprecated tagging");
1005}
1006
1007way[barrier=wall][type=noise_barrier][!wall],
1008way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
1009 throwWarning: tr("{0} is deprecated", "{1.tag}");
1010 suggestAlternative: "wall=noise_barrier";
1011 group: tr("deprecated tagging");
1012 fixChangeKey: "type => wall";
1013}
1014way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
1015 throwWarning: tr("{0} is deprecated", "{1.tag}");
1016 suggestAlternative: "wall=noise_barrier";
1017 group: tr("deprecated tagging");
1018}
1019
1020/* #8978, 12588 */
1021*[amenity=public_building] {
1022 throwWarning: tr("{0} is deprecated", "{0.tag}");
1023 suggestAlternative: "amenity=townhall";
1024 suggestAlternative: "amenity=community_centre";
1025 suggestAlternative: "amenity=hospital";
1026 suggestAlternative: "leisure=sports_centre";
1027 suggestAlternative: "office=government";
1028 suggestAlternative: "building=hospital";
1029 suggestAlternative: "building=public";
1030 suggestAlternative: "...";
1031 group: tr("deprecated tagging");
1032}
1033
1034/* #12708 */
1035*[vending=news_papers] {
1036 throwWarning: tr("{0} is deprecated", "{0.tag}");
1037 suggestAlternative: "vending=newspapers";
1038 group: tr("deprecated tagging");
1039 fixAdd: "vending=newspapers";
1040}
1041
1042/* #12771 */
1043*[service=drive_through] {
1044 throwWarning: tr("{0} is deprecated", "{0.tag}");
1045 suggestAlternative: "service=drive-through";
1046 group: tr("deprecated tagging");
1047 fixAdd: "service=drive-through";
1048}
1049
1050/* #12771 */
1051way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|yes)$/], /* drive_through and yes have special warnings */
1052way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1053way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1054 throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
1055}
1056
1057/* #13008 */
1058*[name:botanical] {
1059 throwWarning: tr("{0} is deprecated", "{0.key}");
1060 suggestAlternative: "species";
1061 group: tr("deprecated tagging");
1062}
1063
1064/* #11344, #13101, #15480 */
1065node[pole=air_to_ground],
1066node[pole=transition] {
1067 throwWarning: tr("{0} is deprecated", "{0.tag}");
1068 suggestAlternative: "location:transition=yes";
1069 group: tr("deprecated tagging");
1070 fixAdd: "location:transition=yes";
1071 fixRemove: "pole";
1072}
1073node[tower=air_to_ground],
1074node[tower=transition] {
1075 throwWarning: tr("{0} is deprecated", "{0.tag}");
1076 suggestAlternative: "location:transition=yes";
1077 group: tr("deprecated tagging");
1078 fixAdd: "location:transition=yes";
1079 fixRemove: "tower";
1080}
1081
1082/* #13138 */
1083area[landuse=pond] {
1084 throwWarning: tr("{0} is deprecated", "{0.tag}");
1085 suggestAlternative: "natural=water + water=pond";
1086 group: tr("deprecated tagging");
1087 fixAdd: "natural=water";
1088 fixAdd: "water=pond";
1089 fixRemove: "landuse";
1090}
1091
1092*[shop=souvenir],
1093*[shop=souvenirs],
1094*[shop=souveniers] {
1095 throwWarning: tr("{0} is deprecated", "{0.tag}");
1096 suggestAlternative: "shop=gift";
1097 group: tr("deprecated tagging");
1098 fixAdd: "shop=gift";
1099}
1100
1101*[vending=animal_food] {
1102 throwWarning: tr("{0} is deprecated", "{0.tag}");
1103 suggestAlternative: "vending=animal_feed";
1104 group: tr("deprecated tagging");
1105 fixAdd: "vending=animal_feed";
1106}
1107
1108/* #14376 */
1109node[vending=photos][amenity=vending_machine],
1110node[vending=photo][amenity=vending_machine] {
1111 throwWarning: tr("{0} is deprecated", "{0.tag}");
1112 suggestAlternative: "amenity=photo_booth";
1113 group: tr("deprecated tagging");
1114 fixRemove: "vending";
1115 fixAdd: "amenity=photo_booth";
1116
1117}
1118node[vending=photos][amenity!=vending_machine] {
1119 throwWarning: tr("{0} is deprecated", "{0.tag}");
1120 suggestAlternative: "amenity=photo_booth";
1121 group: tr("deprecated tagging");
1122}
1123
1124/* #13653 */
1125node[highway=emergency_access_point][phone][!emergency_telephone_code],
1126way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1127 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1128 suggestAlternative: "emergency_telephone_code";
1129 group: tr("deprecated tagging");
1130 fixChangeKey: "phone => emergency_telephone_code";
1131 assertMatch: "node highway=emergency_access_point phone=123";
1132 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1133 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1134 assertNoMatch: "node phone=123";
1135}
1136node[highway=emergency_access_point][phone=*emergency_telephone_code],
1137way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1138 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1139 suggestAlternative: "emergency_telephone_code";
1140 group: tr("deprecated tagging");
1141 fixRemove: "phone";
1142 assertNoMatch: "node highway=emergency_access_point phone=123";
1143 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1144 assertMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1145}
1146node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1147way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1148 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1149 suggestAlternative: "emergency_telephone_code";
1150 group: tr("deprecated tagging");
1151 assertNoMatch: "node highway=emergency_access_point phone=123";
1152 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1153 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1154}
1155
1156/* #13879 */
1157way[tracktype=1] {
1158 throwError: tr("{0}", "{0.tag}");
1159 suggestAlternative: "tracktype=grade1";
1160 group: tr("misspelled value");
1161 fixAdd: "tracktype=grade1";
1162}
1163way[tracktype=2] {
1164 throwError: tr("{0}", "{0.tag}");
1165 suggestAlternative: "tracktype=grade2";
1166 group: tr("misspelled value");
1167 fixAdd: "tracktype=grade2";
1168}
1169way[tracktype=3] {
1170 throwError: tr("{0}", "{0.tag}");
1171 suggestAlternative: "tracktype=grade3";
1172 group: tr("misspelled value");
1173 fixAdd: "tracktype=grade3";
1174}
1175way[tracktype=4] {
1176 throwError: tr("{0}", "{0.tag}");
1177 suggestAlternative: "tracktype=grade4";
1178 group: tr("misspelled value");
1179 fixAdd: "tracktype=grade4";
1180}
1181way[tracktype=5] {
1182 throwError: tr("{0}", "{0.tag}");
1183 suggestAlternative: "tracktype=grade5";
1184 group: tr("misspelled value");
1185 fixAdd: "tracktype=grade5";
1186}
1187way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1188 throwError: tr("wrong value: {0}", "{0.tag}");
1189 suggestAlternative: "tracktype=grade1";
1190 suggestAlternative: "tracktype=grade2";
1191 suggestAlternative: "tracktype=grade3";
1192 suggestAlternative: "tracktype=grade4";
1193 suggestAlternative: "tracktype=grade5";
1194}
1195
1196area[area][area!=yes][area!=no] {
1197 throwError: tr("wrong value: {0}", "{0.tag}");
1198 suggestAlternative: "area=yes";
1199 suggestAlternative: "area=no";
1200}
1201
1202/* #13953 */
1203*[amenity=hunting_stand][lock=yes],
1204*[amenity=hunting_stand][lock=no] {
1205 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1206 suggestAlternative: "lockable";
1207 group: tr("deprecated tagging");
1208 fixChangeKey: "lock => lockable";
1209}
1210
1211*[amenity=advertising][!advertising] {
1212 throwWarning: tr("{0} is deprecated", "{0.tag}");
1213 suggestAlternative: "advertising=*";
1214 group: tr("deprecated tagging");
1215}
1216*[amenity=advertising][advertising] {
1217 throwWarning: tr("{0} is deprecated", "{0.tag}");
1218 suggestAlternative: "advertising=*";
1219 group: tr("deprecated tagging");
1220 fixRemove: "amenity";
1221}
1222
1223way[direction=up][incline=up],
1224way[direction=down][incline=down],
1225way[direction=up][!incline],
1226way[direction=down][!incline] {
1227 throwWarning: tr("{0} is deprecated", "{0.tag}");
1228 suggestAlternative: "incline";
1229 group: tr("deprecated tagging");
1230 fixChangeKey: "direction => incline";
1231}
1232way[direction=up][incline][incline!=up],
1233way[direction=down][incline][incline!=down] {
1234 throwWarning: tr("{0} is deprecated", "{0.tag}");
1235 suggestAlternative: "incline";
1236 group: tr("deprecated tagging");
1237}
1238
1239way[building=y],
1240way[building=1] {
1241 throwError: tr("{0}", "{0.tag}");
1242 suggestAlternative: "building=yes";
1243 group: tr("misspelled value");
1244 fixAdd: "building=yes";
1245}
1246
1247/* #15675 */
1248node[power=transformer][location=pole][transformer] {
1249 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1250 group: tr("deprecated tagging");
1251 fixChangeKey: "location => power";
1252}
1253node[power=transformer][location=pole][!transformer] {
1254 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1255 group: tr("deprecated tagging");
1256 fixChangeKey: "location => power";
1257 fixAdd: "transformer=yes";
1258}
1259
1260node[tourism=picnic_table],
1261node[amenity=picnic_table],
1262node[leisure=picnic],
1263node[leisure=picnic_site] {
1264 throwWarning: tr("{0} is deprecated", "{0.tag}");
1265 suggestAlternative: "tourism=picnic_site";
1266 suggestAlternative: "leisure=picnic_table";
1267 group: tr("deprecated tagging");
1268}
1269
1270/* #15804 */
1271relation[water=salt],
1272way[water=salt],
1273way[water=salt_pool],
1274way[water=salt_panne],
1275way[water=salt_pond] {
1276 throwWarning: tr("{0} is deprecated", "{0.tag}");
1277 suggestAlternative: "salt=yes";
1278 suggestAlternative: "landuse=salt_pond";
1279 group: tr("deprecated tagging");
1280}
1281
1282/* #15805 */
1283way[water=tidal] {
1284 throwWarning: tr("{0} is deprecated", "{0.tag}");
1285 suggestAlternative: "tidal=yes";
1286 fixAdd: "tidal=yes";
1287 fixRemove: "water";
1288 group: tr("deprecated tagging");
1289}
1290
1291*[amenity=toilet] {
1292 throwError: tr("{0}", "{0.tag}");
1293 suggestAlternative: "amenity=toilets";
1294 group: tr("misspelled value");
1295 fixAdd: "amenity=toilets";
1296}
1297
1298way[power=busbar] {
1299 throwWarning: tr("{0} is deprecated", "{0.tag}");
1300 suggestAlternative: "power=line + line=busbar";
1301 group: tr("deprecated tagging");
1302 fixAdd: "power=line";
1303 fixAdd: "line=busbar";
1304}
1305
1306/* #16924 */
1307*[man_made=MDF],
1308*[man_made=telephone_exchange] {
1309 throwWarning: tr("{0} is deprecated", "{0.tag}");
1310 suggestAlternative: "telecom=exchange";
1311 fixAdd: "telecom=exchange";
1312 fixRemove: "man_made";
1313 group: tr("deprecated tagging");
1314}
1315*[building=central_office] {
1316 throwWarning: tr("{0} is deprecated", "{0.tag}");
1317 suggestAlternative: "telecom=exchange";
1318 fixAdd: "telecom=exchange";
1319 fixAdd: "building=yes";
1320 group: tr("deprecated tagging");
1321}
1322*[telecom=central_office] {
1323 throwWarning: tr("{0} is deprecated", "{0.tag}");
1324 suggestAlternative: "telecom=exchange";
1325 fixAdd: "telecom=exchange";
1326 group: tr("deprecated tagging");
1327}
1328
1329/* #16925 */
1330node[communication=outdoor_dslam],
1331node[man_made=outdoor_dslam],
1332node[street_cabinet=outdoor_dslam] {
1333 throwWarning: tr("{0} is deprecated", "{0.tag}");
1334 suggestAlternative: "telecom=service_device";
1335 fixAdd: "telecom=service_device";
1336 fixRemove: "{0.key}";
1337 group: tr("deprecated tagging");
1338}
1339node[telecom=dslam],
1340node[telecom=outdoor_dslam] {
1341 throwWarning: tr("{0} is deprecated", "{0.tag}");
1342 suggestAlternative: "telecom=service_device";
1343 fixAdd: "telecom=service_device";
1344 group: tr("deprecated tagging");
1345}
1346
1347/* #15774 */
1348node[amenity=fire_hydrant] {
1349 throwWarning: tr("{0} is deprecated", "{0.tag}");
1350 suggestAlternative: "emergency=fire_hydrant";
1351 fixChangeKey: "amenity => emergency";
1352 group: tr("deprecated tagging");
1353}
1354node[fire_hydrant:type=pond] {
1355 throwWarning: tr("{0} is deprecated", "{0.tag}");
1356 suggestAlternative: "water_source=pond";
1357 fixAdd: "water_source=pond";
1358 fixRemove: "{0.key}";
1359 group: tr("deprecated tagging");
1360}
1361node[fire_hydrant:flow_capacity] {
1362 throwWarning: tr("{0} is deprecated", "{0.key}");
1363 suggestAlternative: "flow_rate";
1364 group: tr("deprecated tagging");
1365}
1366node[emergency=fire_hydrant][in_service=no] {
1367 throwWarning: tr("{0} is deprecated", "{1.tag}");
1368 suggestAlternative: "disused:emergency=fire_hydrant";
1369 fixAdd: "disused:emergency=fire_hydrant";
1370 fixRemove: "{1.key}";
1371 fixRemove: "{0.key}";
1372 group: tr("deprecated tagging");
1373}
1374node[fire_hydrant:water_source] {
1375 throwWarning: tr("{0} is deprecated", "{0.key}");
1376 suggestAlternative: "water_source";
1377 fixChangeKey: "fire_hydrant:water_source => water_source";
1378 group: tr("deprecated tagging");
1379}
Note: See TracBrowser for help on using the repository browser.