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

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

fix #17379 - deprecated amenity=sauna, footway=left|right|both|no|none

  • 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*[craft=yes],
456*[service=yes],
457*[place=yes] {
458 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
459}
460
461/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
462*[place_name][!name] {
463 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
464 fixChangeKey: "place_name => name";
465}
466*[place][place_name = *name] {
467 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
468 fixRemove: "{1.key}";
469}
470
471way[footway=/both|right|left|no|none/] {
472 throwWarning: tr("{0} is deprecated", "{0.tag}");
473 group: tr("deprecated tagging");
474 fixChangeKey: "footway => sidewalk";
475}
476way[sidewalk=yes] {
477 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
478}
479
480*[waterway=water_point] {
481 throwWarning: tr("{0} is deprecated", "{0.tag}");
482 suggestAlternative: "amenity=water_point";
483 group: tr("deprecated tagging");
484 fixChangeKey: "waterway => amenity";
485}
486*[waterway=waste_disposal] {
487 throwWarning: tr("{0} is deprecated", "{0.tag}");
488 suggestAlternative: "amenity=waste_disposal";
489 group: tr("deprecated tagging");
490 fixChangeKey: "waterway => amenity";
491}
492*[waterway=mooring] {
493 throwWarning: tr("{0} is deprecated", "{0.tag}");
494 suggestAlternative: "mooring=yes";
495 group: tr("deprecated tagging");
496 fixRemove: "waterway";
497 fixAdd: "mooring=yes";
498}
499
500/* see #10837 */
501*[building][levels],
502*[building:part=yes][levels] {
503 throwWarning: tr("{0} is deprecated", "{1.key}");
504 suggestAlternative: "building:levels";
505 group: tr("deprecated tagging");
506 fixChangeKey: "levels => building:levels";
507}
508
509/* see #10691 */
510*[protected_class] {
511 throwWarning: tr("{0} is deprecated", "{0.key}");
512 suggestAlternative: "protect_class";
513 group: tr("deprecated tagging");
514 fixChangeKey: "protected_class => protect_class";
515}
516
517/* see #11070 */
518*[lock=unknown],
519*[hide=unknown],
520*[shelter=unknown],
521*[access=unknown],
522*[capacity:parent=unknown],
523*[capacity:women=unknown],
524*[capacity:disabled=unknown],
525*[crossing=unknown],
526*[foot=unknown] {
527 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
528}
529
530/* unclear definition, see #11183 */
531*[sport=skiing] {
532 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
533 suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
534 group: tr("deprecated tagging");
535}
536
537/* see #11223 */
538*[waterway=wadi] {
539 throwWarning: tr("{0} is deprecated", "{0.tag}");
540 suggestAlternative: "{0.key}=* + intermittent=yes";
541 suggestAlternative: "natural=valley";
542 group: tr("deprecated tagging");
543}
544
545/* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
546way[oneway=1][!waterway] {
547 throwWarning: tr("{0} is deprecated", "{0.tag}");
548 suggestAlternative: "oneway=yes";
549 group: tr("deprecated tagging");
550 fixAdd: "oneway=yes";
551}
552
553/* see #11329, #15667 */
554way[oneway=-1][!waterway] {
555 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
556}
557
558*[drinkable] {
559 throwWarning: tr("{0} is deprecated", "{0.key}");
560 suggestAlternative: "drinking_water";
561 group: tr("deprecated tagging");
562}
563
564/* see #10329, #15877 */
565 /* simple key change */
566*[color][!colour] {
567 throwWarning: tr("{0} is deprecated", "{0.key}");
568 suggestAlternative: "colour";
569 group: tr("deprecated tagging");
570 fixChangeKey: "color => colour";
571 assertMatch: "way color=red";
572 assertNoMatch: "way color=red colour=red";
573}
574area[building:color][!building:colour] {
575 throwWarning: tr("{0} is deprecated", "{0.key}");
576 suggestAlternative: "building:colour";
577 group: tr("deprecated tagging");
578 fixChangeKey: "building:color => building:colour";
579 assertMatch: "way building:color=red";
580 assertNoMatch: "way building:color=red building:colour=red";
581}
582area[roof:color][!roof:colour] {
583 throwWarning: tr("{0} is deprecated", "{0.key}");
584 suggestAlternative: "roof:colour";
585 group: tr("deprecated tagging");
586 fixChangeKey: "roof:color => roof:colour";
587 assertMatch: "way roof:color=red";
588 assertNoMatch: "way roof:color=red roof:colour=red";
589}
590 /* both tags with same value, remove color */
591*[color][colour][color=*colour] {
592 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
593 suggestAlternative: "colour";
594 group: tr("deprecated tagging");
595 set samecolor;
596 fixRemove: "color";
597 assertMatch: "way color=red colour=red";
598 assertNoMatch: "way color=red colour=green";
599}
600area[building:color][building:colour]["building:color"=*"building:colour"] {
601 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
602 suggestAlternative: "building:colour";
603 group: tr("deprecated tagging");
604 set samebuildingcolor;
605 fixRemove: "building:color";
606 assertMatch: "way building:color=red building:colour=red";
607 assertNoMatch: "way building:color=red building:colour=green";
608}
609area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
610 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
611 suggestAlternative: "roof:colour";
612 group: tr("deprecated tagging");
613 set sameroofcolor;
614 fixRemove: "roof:color";
615 assertMatch: "way roof:color=red roof:colour=red";
616 assertNoMatch: "way roof:color=red roof:colour=green";
617}
618 /* both tags with different values, no autofix */
619*[color][colour]!.samecolor {
620 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
621 suggestAlternative: "colour";
622 group: tr("deprecated tagging");
623 assertNoMatch: "way color=red colour=red";
624 assertMatch: "way color=red colour=green";
625}
626*[building:color][building:colour]!.samebuildingcolor {
627 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
628 suggestAlternative: "building:colour";
629 group: tr("deprecated tagging");
630 assertNoMatch: "way building:color=red building:colour=red";
631 assertMatch: "way building:color=red building:colour=green";
632}
633*[roof:color][roof:colour]!.sameroofcolor {
634 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
635 suggestAlternative: "roof:colour";
636 group: tr("deprecated tagging");
637 assertNoMatch: "way roof:color=red roof:colour=red";
638 assertMatch: "way roof:color=red roof:colour=green";
639}
640 /* further more universal checks, no autofix */
641*[/:color/][!building:color][!roof:color] {
642 throwWarning: tr("{0} is deprecated", "{0.key}");
643 suggestAlternative: ":colour";
644 group: tr("deprecated tagging");
645 assertNoMatch: "way color=red";
646 assertNoMatch: "way roof:color=grey";
647 assertMatch: "way cycleway:surface:color=grey";
648}
649*[/color:/] {
650 throwWarning: tr("{0} is deprecated", "{0.key}");
651 suggestAlternative: "colour:";
652 group: tr("deprecated tagging");
653 assertNoMatch: "way color=red";
654 assertMatch: "way color:back=grey";
655}
656
657/* see #11234 */
658*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
659 throwWarning: tr("{0}", "{0.key}");
660 group: tr("key with uncommon character");
661}
662
663/* see #11330 */
664*[/^.$/],
665node[/^..$/],
666way[/^..$/],
667relation[/^..$/][!to] {
668 throwWarning: tr("uncommon short key");
669 assertNoMatch: "relation to=Berlin";
670 assertMatch: "relation fo=bar";
671 assertMatch: "way to=bar";
672 assertMatch: "node fo=bar";
673 assertMatch: "node f=b";
674}
675
676/* see #11439 */
677*[sport=hockey] {
678 throwWarning: tr("{0} is deprecated", "{0.tag}");
679 suggestAlternative: "sport=field_hockey";
680 suggestAlternative: "sport=ice_hockey";
681 group: tr("deprecated tagging");
682}
683
684/* see #11471 */
685*[sport=billard],
686*[sport=billards],
687*[sport=billiard] {
688 throwWarning: tr("{0} is deprecated", "{0.tag}");
689 suggestAlternative: "sport=billiards";
690 group: tr("deprecated tagging");
691 fixAdd: "sport=billiards";
692}
693
694/* see #11499, #16928 */
695*[payment:credit_cards=yes] {
696 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");
697}
698*[payment:debit_cards=yes] {
699 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");
700}
701*[payment:electronic_purses=yes] {
702 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");
703}
704*[payment:cryptocurrencies=yes] {
705 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");
706}
707
708/* defunct payment cards */
709*[payment:ep_quick],
710*[payment:ep_cash],
711*[payment:ep_proton],
712*[payment:ep_chipknip] {
713 throwWarning: tr("{0} is deprecated", "{0.key}");
714 group: tr("deprecated tagging");
715 fixRemove: "{0.key}";
716}
717
718/* see #8717 */
719*[kp][highway=milestone],
720*[kp][railway=milestone],
721*[kp][waterway=milestone] {
722 throwWarning: tr("{0} is deprecated", "{0.key}");
723 suggestAlternative: "distance";
724 group: tr("deprecated tagging");
725 fixChangeKey: "kp => distance";
726}
727*[pk][highway=milestone],
728*[pk][railway=milestone],
729*[pk][waterway=milestone] {
730 throwWarning: tr("{0} is deprecated", "{0.key}");
731 suggestAlternative: "distance";
732 group: tr("deprecated tagging");
733 fixChangeKey: "pk => distance";
734}
735
736*[postcode] {
737 throwWarning: tr("{0} is deprecated", "{0.key}");
738 suggestAlternative: "addr:postcode";
739 group: tr("deprecated tagging");
740 suggestAlternative: "postal_code";
741}
742
743*[water=intermittent] {
744 throwWarning: tr("{0} is deprecated", "{0.tag}");
745 suggestAlternative: "intermittent=yes";
746 group: tr("deprecated tagging");
747 fixRemove: "water";
748 fixAdd: "intermittent=yes";
749}
750
751/* #10907, #14141 */
752/* 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 */
753way[type][type!=waterway][man_made=pipeline],
754node[type][pipeline=marker] {
755 throwWarning: tr("{0} is deprecated", "{0.key}");
756 suggestAlternative: "substance";
757 group: tr("deprecated tagging");
758 fixChangeKey: "type => substance";
759}
760
761*[landuse=farm] {
762 throwWarning: tr("{0} is deprecated", "{0.tag}");
763 suggestAlternative: "landuse=farmland";
764 suggestAlternative: "landuse=farmyard";
765 group: tr("deprecated tagging");
766}
767
768/* #12135 comment:11 */
769*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
770 throwWarning: tr("{0} is deprecated", "{0.tag}");
771 suggestAlternative: "{1.tag}";
772 group: tr("deprecated tagging");
773 fixRemove: "seamark";
774}
775*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
776 throwWarning: tr("{0} is deprecated", "{0.tag}");
777 suggestAlternative: "{1.tag}";
778 group: tr("deprecated tagging");
779}
780/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
781*[landuse=conservation] {
782 throwWarning: tr("{0} is deprecated", "{0.tag}");
783 suggestAlternative: "boundary=protected_area";
784 group: tr("deprecated tagging");
785 fixAdd: "boundary=protected_area";
786 fixRemove: "landuse";
787}
788
789/* #12205 */
790*[amenity=kiosk] {
791 throwWarning: tr("{0} is deprecated", "{0.tag}");
792 suggestAlternative: "shop=kiosk";
793 group: tr("deprecated tagging");
794 fixChangeKey: "amenity => shop";
795}
796*[amenity=shop] {
797 throwWarning: tr("{0} is deprecated", "{0.tag}");
798 suggestAlternative: "shop=*";
799 group: tr("deprecated tagging");
800}
801*[shop=fishmonger] {
802 throwWarning: tr("{0} is deprecated", "{0.tag}");
803 suggestAlternative: "shop=seafood";
804 group: tr("deprecated tagging");
805 fixAdd: "shop=seafood";
806}
807*[shop=fish] {
808 throwWarning: tr("{0} is deprecated", "{0.tag}");
809 suggestAlternative: "shop=seafood";
810 suggestAlternative: "shop=pet";
811 suggestAlternative: "shop=fishing";
812 group: tr("deprecated tagging");
813}
814*[shop=betting] {
815 throwWarning: tr("{0} is deprecated", "{0.tag}");
816 suggestAlternative: "shop=bookmaker";
817 suggestAlternative: "shop=lottery";
818 suggestAlternative: "amenity=casino";
819 suggestAlternative: "leisure=amusement_arcade";
820 suggestAlternative: "leisure=adult_gaming_centre";
821 suggestAlternative: "amenity=gambling";
822 group: tr("deprecated tagging");
823}
824*[shop=perfume] {
825 throwWarning: tr("{0} is deprecated", "{0.tag}");
826 suggestAlternative: "shop=perfumery";
827 group: tr("deprecated tagging");
828 fixAdd: "shop=perfumery";
829}
830*[amenity=exercise_point] {
831 throwWarning: tr("{0} is deprecated", "{0.tag}");
832 suggestAlternative: "leisure=fitness_station";
833 group: tr("deprecated tagging");
834 fixAdd: "leisure=fitness_station";
835 fixRemove: "amenity";
836}
837*[shop=auto_parts] {
838 throwWarning: tr("{0} is deprecated", "{0.tag}");
839 suggestAlternative: "shop=car_parts";
840 group: tr("deprecated tagging");
841 fixAdd: "shop=car_parts";
842}
843*[amenity=car_repair] {
844 throwWarning: tr("{0} is deprecated", "{0.tag}");
845 suggestAlternative: "shop=car_repair";
846 group: tr("deprecated tagging");
847 fixChangeKey: "amenity => shop";
848}
849
850/* #12311 */
851*[amenity=studio][type=audio],
852*[amenity=studio][type=radio],
853*[amenity=studio][type=television],
854*[amenity=studio][type=video] {
855 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
856 suggestAlternative: "studio";
857 group: tr("deprecated tagging");
858 fixChangeKey: "type => studio";
859}
860
861/* #11507, #12297, #15409 */
862*[power=cable_distribution_cabinet] {
863 throwWarning: tr("{0} is deprecated", "{0.tag}");
864 suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
865 group: tr("deprecated tagging");
866 fixAdd: "man_made=street_cabinet";
867 fixRemove: "power";
868}
869
870/* #16430 */
871*[power][location=kiosk] {
872 throwWarning: tr("{0} is deprecated", "{1.tag}");
873 group: tr("deprecated tagging");
874 fixAdd: "man_made=street_cabinet";
875 fixAdd: "street_cabinet=power";
876 fixRemove: "location";
877}
878
879/* #12276 */
880*[man_made=well] {
881 throwWarning: tr("{0} is deprecated", "{0.tag}");
882 suggestAlternative: "man_made=water_well";
883 suggestAlternative: "man_made=petroleum_well";
884 group: tr("deprecated tagging");
885}
886*[amenity=dog_bin],
887*[amenity=dog_waste_bin] {
888 throwWarning: tr("{0} is deprecated", "{0.tag}");
889 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
890 group: tr("deprecated tagging");
891 fixAdd: "amenity=waste_basket";
892 fixAdd: "waste=dog_excrement";
893 fixAdd: "vending=excrement_bags";
894}
895*[amenity=artwork] {
896 throwWarning: tr("{0} is deprecated", "{0.tag}");
897 suggestAlternative: "tourism=artwork";
898 group: tr("deprecated tagging");
899 fixAdd: "tourism=artwork";
900 fixRemove: "amenity";
901}
902*[amenity=community_center] {
903 throwWarning: tr("{0} is deprecated", "{0.tag}");
904 suggestAlternative: "amenity=community_centre";
905 group: tr("deprecated tagging");
906 fixAdd: "amenity=community_centre";
907}
908*[man_made=cut_line] {
909 throwWarning: tr("{0} is deprecated", "{0.tag}");
910 suggestAlternative: "man_made=cutline";
911 group: tr("deprecated tagging");
912 fixAdd: "man_made=cutline";
913}
914*[amenity=park] {
915 throwWarning: tr("{0} is deprecated", "{0.tag}");
916 suggestAlternative: "leisure=park";
917 group: tr("deprecated tagging");
918 fixAdd: "leisure=park";
919 fixRemove: "amenity";
920}
921*[amenity=hotel] {
922 throwWarning: tr("{0} is deprecated", "{0.tag}");
923 suggestAlternative: "tourism=hotel";
924 group: tr("deprecated tagging");
925 fixAdd: "tourism=hotel";
926 fixRemove: "amenity";
927}
928*[shop=window],
929*[shop=windows] {
930 throwWarning: tr("{0} is deprecated", "{0.tag}");
931 suggestAlternative: "craft=window_construction";
932 group: tr("deprecated tagging");
933 fixAdd: "craft=window_construction";
934 fixRemove: "shop";
935}
936*[amenity=education] {
937 throwWarning: tr("{0} is deprecated", "{0.tag}");
938 suggestAlternative: "amenity=college";
939 suggestAlternative: "amenity=school";
940 suggestAlternative: "amenity=university";
941 group: tr("deprecated tagging");
942}
943*[shop=gallery] {
944 throwWarning: tr("{0} is deprecated", "{0.tag}");
945 suggestAlternative: "shop=art";
946 group: tr("deprecated tagging");
947 fixAdd: "shop=art";
948}
949*[shop=gambling],
950*[leisure=gambling] {
951 throwWarning: tr("{0} is deprecated", "{0.tag}");
952 suggestAlternative: "shop=bookmaker";
953 suggestAlternative: "shop=lottery";
954 suggestAlternative: "amenity=casino";
955 suggestAlternative: "leisure=amusement_arcade";
956 suggestAlternative: "amenity=gambling";
957 group: tr("deprecated tagging");
958}
959*[office=real_estate_agent] {
960 throwWarning: tr("{0} is deprecated", "{0.tag}");
961 suggestAlternative: "office=estate_agent ";
962 group: tr("deprecated tagging");
963 fixAdd: "office=estate_agent ";
964}
965*[shop=glass] {
966 throwWarning: tr("{0} is deprecated", "{0.tag}");
967 suggestAlternative: "shop=glaziery";
968 suggestAlternative: "craft=glaziery";
969 group: tr("deprecated tagging");
970}
971*[amenity=proposed],
972*[amenity=proposed],
973*[amenity=disused],
974*[shop=disused],
975*[historic=abandoned] {
976 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
977 group: tr("deprecated tagging");
978}
979
980/* #12431, #17379 */
981*[amenity=swimming_pool],
982*[amenity=sauna] {
983 throwWarning: tr("{0} is deprecated", "{0.tag}");
984 group: tr("deprecated tagging");
985 fixChangeKey: "amenity => leisure";
986}
987
988/* #12494 */
989*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
990 throwOther: tr("{0}", "{0.key}");
991 group: tr("questionable key (ending with a number)");
992 assertMatch: "way name_1=foo";
993 assertNoMatch: "way note_2=foo";
994 assertNoMatch: "way description_3=foo";
995 assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
996}
997
998/* #12500 */
999*[sport=skating] {
1000 throwWarning: tr("{0} is deprecated", "{0.tag}");
1001 suggestAlternative: "sport=ice_skating";
1002 suggestAlternative: "sport=roller_skating";
1003 group: tr("deprecated tagging");
1004}
1005
1006way[barrier=wall][type=noise_barrier][!wall],
1007way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
1008 throwWarning: tr("{0} is deprecated", "{1.tag}");
1009 suggestAlternative: "wall=noise_barrier";
1010 group: tr("deprecated tagging");
1011 fixChangeKey: "type => wall";
1012}
1013way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
1014 throwWarning: tr("{0} is deprecated", "{1.tag}");
1015 suggestAlternative: "wall=noise_barrier";
1016 group: tr("deprecated tagging");
1017}
1018
1019/* #8978, 12588 */
1020*[amenity=public_building] {
1021 throwWarning: tr("{0} is deprecated", "{0.tag}");
1022 suggestAlternative: "amenity=townhall";
1023 suggestAlternative: "amenity=community_centre";
1024 suggestAlternative: "amenity=hospital";
1025 suggestAlternative: "leisure=sports_centre";
1026 suggestAlternative: "office=government";
1027 suggestAlternative: "building=hospital";
1028 suggestAlternative: "building=public";
1029 suggestAlternative: "...";
1030 group: tr("deprecated tagging");
1031}
1032
1033/* #12708 */
1034*[vending=news_papers] {
1035 throwWarning: tr("{0} is deprecated", "{0.tag}");
1036 suggestAlternative: "vending=newspapers";
1037 group: tr("deprecated tagging");
1038 fixAdd: "vending=newspapers";
1039}
1040
1041/* #12771 */
1042*[service=drive_through] {
1043 throwWarning: tr("{0} is deprecated", "{0.tag}");
1044 suggestAlternative: "service=drive-through";
1045 group: tr("deprecated tagging");
1046 fixAdd: "service=drive-through";
1047}
1048
1049/* #12771 */
1050way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|yes)$/], /* drive_through and yes have special warnings */
1051way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1052way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1053 throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
1054}
1055
1056/* #13008 */
1057*[name:botanical] {
1058 throwWarning: tr("{0} is deprecated", "{0.key}");
1059 suggestAlternative: "species";
1060 group: tr("deprecated tagging");
1061}
1062
1063/* #11344, #13101, #15480 */
1064node[pole=air_to_ground],
1065node[pole=transition] {
1066 throwWarning: tr("{0} is deprecated", "{0.tag}");
1067 suggestAlternative: "location:transition=yes";
1068 group: tr("deprecated tagging");
1069 fixAdd: "location:transition=yes";
1070 fixRemove: "pole";
1071}
1072node[tower=air_to_ground],
1073node[tower=transition] {
1074 throwWarning: tr("{0} is deprecated", "{0.tag}");
1075 suggestAlternative: "location:transition=yes";
1076 group: tr("deprecated tagging");
1077 fixAdd: "location:transition=yes";
1078 fixRemove: "tower";
1079}
1080
1081/* #13138 */
1082area[landuse=pond] {
1083 throwWarning: tr("{0} is deprecated", "{0.tag}");
1084 suggestAlternative: "natural=water + water=pond";
1085 group: tr("deprecated tagging");
1086 fixAdd: "natural=water";
1087 fixAdd: "water=pond";
1088 fixRemove: "landuse";
1089}
1090
1091*[shop=souvenir],
1092*[shop=souvenirs],
1093*[shop=souveniers] {
1094 throwWarning: tr("{0} is deprecated", "{0.tag}");
1095 suggestAlternative: "shop=gift";
1096 group: tr("deprecated tagging");
1097 fixAdd: "shop=gift";
1098}
1099
1100*[vending=animal_food] {
1101 throwWarning: tr("{0} is deprecated", "{0.tag}");
1102 suggestAlternative: "vending=animal_feed";
1103 group: tr("deprecated tagging");
1104 fixAdd: "vending=animal_feed";
1105}
1106
1107/* #14376 */
1108node[vending=photos][amenity=vending_machine],
1109node[vending=photo][amenity=vending_machine] {
1110 throwWarning: tr("{0} is deprecated", "{0.tag}");
1111 suggestAlternative: "amenity=photo_booth";
1112 group: tr("deprecated tagging");
1113 fixRemove: "vending";
1114 fixAdd: "amenity=photo_booth";
1115
1116}
1117node[vending=photos][amenity!=vending_machine] {
1118 throwWarning: tr("{0} is deprecated", "{0.tag}");
1119 suggestAlternative: "amenity=photo_booth";
1120 group: tr("deprecated tagging");
1121}
1122
1123/* #13653 */
1124node[highway=emergency_access_point][phone][!emergency_telephone_code],
1125way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1126 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1127 suggestAlternative: "emergency_telephone_code";
1128 group: tr("deprecated tagging");
1129 fixChangeKey: "phone => emergency_telephone_code";
1130 assertMatch: "node highway=emergency_access_point phone=123";
1131 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1132 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1133 assertNoMatch: "node phone=123";
1134}
1135node[highway=emergency_access_point][phone=*emergency_telephone_code],
1136way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1137 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1138 suggestAlternative: "emergency_telephone_code";
1139 group: tr("deprecated tagging");
1140 fixRemove: "phone";
1141 assertNoMatch: "node highway=emergency_access_point phone=123";
1142 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1143 assertMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1144}
1145node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1146way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1147 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1148 suggestAlternative: "emergency_telephone_code";
1149 group: tr("deprecated tagging");
1150 assertNoMatch: "node highway=emergency_access_point phone=123";
1151 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1152 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1153}
1154
1155/* #13879 */
1156way[tracktype=1] {
1157 throwError: tr("{0}", "{0.tag}");
1158 suggestAlternative: "tracktype=grade1";
1159 group: tr("misspelled value");
1160 fixAdd: "tracktype=grade1";
1161}
1162way[tracktype=2] {
1163 throwError: tr("{0}", "{0.tag}");
1164 suggestAlternative: "tracktype=grade2";
1165 group: tr("misspelled value");
1166 fixAdd: "tracktype=grade2";
1167}
1168way[tracktype=3] {
1169 throwError: tr("{0}", "{0.tag}");
1170 suggestAlternative: "tracktype=grade3";
1171 group: tr("misspelled value");
1172 fixAdd: "tracktype=grade3";
1173}
1174way[tracktype=4] {
1175 throwError: tr("{0}", "{0.tag}");
1176 suggestAlternative: "tracktype=grade4";
1177 group: tr("misspelled value");
1178 fixAdd: "tracktype=grade4";
1179}
1180way[tracktype=5] {
1181 throwError: tr("{0}", "{0.tag}");
1182 suggestAlternative: "tracktype=grade5";
1183 group: tr("misspelled value");
1184 fixAdd: "tracktype=grade5";
1185}
1186way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1187 throwError: tr("wrong value: {0}", "{0.tag}");
1188 suggestAlternative: "tracktype=grade1";
1189 suggestAlternative: "tracktype=grade2";
1190 suggestAlternative: "tracktype=grade3";
1191 suggestAlternative: "tracktype=grade4";
1192 suggestAlternative: "tracktype=grade5";
1193}
1194
1195area[area][area!=yes][area!=no] {
1196 throwError: tr("wrong value: {0}", "{0.tag}");
1197 suggestAlternative: "area=yes";
1198 suggestAlternative: "area=no";
1199}
1200
1201/* #13953 */
1202*[amenity=hunting_stand][lock=yes],
1203*[amenity=hunting_stand][lock=no] {
1204 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1205 suggestAlternative: "lockable";
1206 group: tr("deprecated tagging");
1207 fixChangeKey: "lock => lockable";
1208}
1209
1210*[amenity=advertising][!advertising] {
1211 throwWarning: tr("{0} is deprecated", "{0.tag}");
1212 suggestAlternative: "advertising=*";
1213 group: tr("deprecated tagging");
1214}
1215*[amenity=advertising][advertising] {
1216 throwWarning: tr("{0} is deprecated", "{0.tag}");
1217 suggestAlternative: "advertising=*";
1218 group: tr("deprecated tagging");
1219 fixRemove: "amenity";
1220}
1221
1222way[direction=up][incline=up],
1223way[direction=down][incline=down],
1224way[direction=up][!incline],
1225way[direction=down][!incline] {
1226 throwWarning: tr("{0} is deprecated", "{0.tag}");
1227 suggestAlternative: "incline";
1228 group: tr("deprecated tagging");
1229 fixChangeKey: "direction => incline";
1230}
1231way[direction=up][incline][incline!=up],
1232way[direction=down][incline][incline!=down] {
1233 throwWarning: tr("{0} is deprecated", "{0.tag}");
1234 suggestAlternative: "incline";
1235 group: tr("deprecated tagging");
1236}
1237
1238way[building=y],
1239way[building=1] {
1240 throwError: tr("{0}", "{0.tag}");
1241 suggestAlternative: "building=yes";
1242 group: tr("misspelled value");
1243 fixAdd: "building=yes";
1244}
1245
1246/* #15675 */
1247node[power=transformer][location=pole][transformer] {
1248 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1249 group: tr("deprecated tagging");
1250 fixChangeKey: "location => power";
1251}
1252node[power=transformer][location=pole][!transformer] {
1253 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1254 group: tr("deprecated tagging");
1255 fixChangeKey: "location => power";
1256 fixAdd: "transformer=yes";
1257}
1258
1259node[tourism=picnic_table],
1260node[amenity=picnic_table],
1261node[leisure=picnic],
1262node[leisure=picnic_site] {
1263 throwWarning: tr("{0} is deprecated", "{0.tag}");
1264 suggestAlternative: "tourism=picnic_site";
1265 suggestAlternative: "leisure=picnic_table";
1266 group: tr("deprecated tagging");
1267}
1268
1269/* #15804 */
1270relation[water=salt],
1271way[water=salt],
1272way[water=salt_pool],
1273way[water=salt_panne],
1274way[water=salt_pond] {
1275 throwWarning: tr("{0} is deprecated", "{0.tag}");
1276 suggestAlternative: "salt=yes";
1277 suggestAlternative: "landuse=salt_pond";
1278 group: tr("deprecated tagging");
1279}
1280
1281/* #15805 */
1282way[water=tidal] {
1283 throwWarning: tr("{0} is deprecated", "{0.tag}");
1284 suggestAlternative: "tidal=yes";
1285 fixAdd: "tidal=yes";
1286 fixRemove: "water";
1287 group: tr("deprecated tagging");
1288}
1289
1290*[amenity=toilet] {
1291 throwError: tr("{0}", "{0.tag}");
1292 suggestAlternative: "amenity=toilets";
1293 group: tr("misspelled value");
1294 fixAdd: "amenity=toilets";
1295}
1296
1297way[power=busbar] {
1298 throwWarning: tr("{0} is deprecated", "{0.tag}");
1299 suggestAlternative: "power=line + line=busbar";
1300 group: tr("deprecated tagging");
1301 fixAdd: "power=line";
1302 fixAdd: "line=busbar";
1303}
1304
1305/* #16924 */
1306*[man_made=MDF],
1307*[man_made=telephone_exchange] {
1308 throwWarning: tr("{0} is deprecated", "{0.tag}");
1309 suggestAlternative: "telecom=exchange";
1310 fixAdd: "telecom=exchange";
1311 fixRemove: "man_made";
1312 group: tr("deprecated tagging");
1313}
1314*[building=central_office] {
1315 throwWarning: tr("{0} is deprecated", "{0.tag}");
1316 suggestAlternative: "telecom=exchange";
1317 fixAdd: "telecom=exchange";
1318 fixAdd: "building=yes";
1319 group: tr("deprecated tagging");
1320}
1321*[telecom=central_office] {
1322 throwWarning: tr("{0} is deprecated", "{0.tag}");
1323 suggestAlternative: "telecom=exchange";
1324 fixAdd: "telecom=exchange";
1325 group: tr("deprecated tagging");
1326}
1327
1328/* #16925 */
1329node[communication=outdoor_dslam],
1330node[man_made=outdoor_dslam],
1331node[street_cabinet=outdoor_dslam] {
1332 throwWarning: tr("{0} is deprecated", "{0.tag}");
1333 suggestAlternative: "telecom=service_device";
1334 fixAdd: "telecom=service_device";
1335 fixRemove: "{0.key}";
1336 group: tr("deprecated tagging");
1337}
1338node[telecom=dslam],
1339node[telecom=outdoor_dslam] {
1340 throwWarning: tr("{0} is deprecated", "{0.tag}");
1341 suggestAlternative: "telecom=service_device";
1342 fixAdd: "telecom=service_device";
1343 group: tr("deprecated tagging");
1344}
1345
1346/* #15774 */
1347node[amenity=fire_hydrant] {
1348 throwWarning: tr("{0} is deprecated", "{0.tag}");
1349 suggestAlternative: "emergency=fire_hydrant";
1350 fixChangeKey: "amenity => emergency";
1351 group: tr("deprecated tagging");
1352}
1353node[fire_hydrant:type=pond] {
1354 throwWarning: tr("{0} is deprecated", "{0.tag}");
1355 suggestAlternative: "water_source=pond";
1356 fixAdd: "water_source=pond";
1357 fixRemove: "{0.key}";
1358 group: tr("deprecated tagging");
1359}
1360node[fire_hydrant:flow_capacity] {
1361 throwWarning: tr("{0} is deprecated", "{0.key}");
1362 suggestAlternative: "flow_rate";
1363 group: tr("deprecated tagging");
1364}
1365node[emergency=fire_hydrant][in_service=no] {
1366 throwWarning: tr("{0} is deprecated", "{1.tag}");
1367 suggestAlternative: "disused:emergency=fire_hydrant";
1368 fixAdd: "disused:emergency=fire_hydrant";
1369 fixRemove: "{1.key}";
1370 fixRemove: "{0.key}";
1371 group: tr("deprecated tagging");
1372}
1373node[fire_hydrant:water_source] {
1374 throwWarning: tr("{0} is deprecated", "{0.key}");
1375 suggestAlternative: "water_source";
1376 fixChangeKey: "fire_hydrant:water_source => water_source";
1377 group: tr("deprecated tagging");
1378}
Note: See TracBrowser for help on using the repository browser.