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

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

Fix #11232 - Warn about highway=* + construction=yes

  • Property svn:eol-style set to native
File size: 59.1 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/* #17527 */
123*[shop=fashion] {
124 throwWarning: tr("{0} is deprecated", "{0.tag}");
125 suggestAlternative: "shop=clothes";
126 group: tr("deprecated tagging");
127 fixAdd: "shop=clothes";
128}
129
130*[shop=organic] {
131 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
132 throwWarning: tr("{0} is deprecated", "{0.tag}");
133 suggestAlternative: "shop=* + organic=yes";
134 suggestAlternative: "shop=* + organic=only";
135 group: tr("deprecated tagging");
136}
137
138*[shop=pets] {
139 throwWarning: tr("{0} is deprecated", "{0.tag}");
140 suggestAlternative: "shop=pet";
141 group: tr("deprecated tagging");
142 fixAdd: "shop=pet";
143}
144
145*[shop=pharmacy] {
146 throwWarning: tr("{0} is deprecated", "{0.tag}");
147 suggestAlternative: "amenity=pharmacy";
148 group: tr("deprecated tagging");
149 fixChangeKey: "shop => amenity";
150}
151
152*[bicycle_parking=sheffield] {
153 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
154 throwWarning: tr("{0} is deprecated", "{0.tag}");
155 suggestAlternative: "bicycle_parking=stands";
156 group: tr("deprecated tagging");
157 fixAdd: "bicycle_parking=stands";
158}
159
160*[amenity=emergency_phone] {
161 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
162 throwWarning: tr("{0} is deprecated", "{0.tag}");
163 suggestAlternative: "emergency=phone";
164 group: tr("deprecated tagging");
165 fixRemove: "amenity";
166 fixAdd: "emergency=phone";
167}
168
169*[sport=gaelic_football] {
170 /* fix #8132 - http://wiki.openstreetmap.org/wiki/Tag:sport=gaelic_football */
171 throwWarning: tr("{0} is deprecated", "{0.tag}");
172 suggestAlternative: "sport=gaelic_games";
173 group: tr("deprecated tagging");
174 fixAdd: "sport=gaelic_games";
175}
176
177*[power=station] {
178 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
179 throwWarning: tr("{0} is deprecated", "{0.tag}");
180 suggestAlternative: "power=plant";
181 suggestAlternative: "power=substation";
182 group: tr("deprecated tagging");
183}
184
185*[power=sub_station] {
186 throwWarning: tr("{0} is deprecated", "{0.tag}");
187 suggestAlternative: "power=substation";
188 group: tr("deprecated tagging");
189 fixAdd: "power=substation";
190}
191
192*[location=rooftop] {
193 throwWarning: tr("{0} is deprecated", "{0.tag}");
194 suggestAlternative: "location=roof";
195 group: tr("deprecated tagging");
196 fixAdd: "location=roof";
197}
198
199*[generator:location] {
200 throwWarning: tr("{0} is deprecated", "{0.key}");
201 suggestAlternative: "location";
202 group: tr("deprecated tagging");
203 fixChangeKey: "generator:location => location";
204}
205
206*[generator:method=dam] {
207 throwWarning: tr("{0} is deprecated", "{0.tag}");
208 suggestAlternative: "generator:method=water-storage";
209 group: tr("deprecated tagging");
210 fixAdd: "generator:method=water-storage";
211}
212
213*[generator:method=pumped-storage] {
214 throwWarning: tr("{0} is deprecated", "{0.tag}");
215 suggestAlternative: "generator:method=water-pumped-storage";
216 group: tr("deprecated tagging");
217 fixAdd: "generator:method=water-pumped-storage";
218}
219
220*[generator:method=pumping] {
221 throwWarning: tr("{0} is deprecated", "{0.tag}");
222 suggestAlternative: "generator:method=water-pumped-storage";
223 group: tr("deprecated tagging");
224 fixAdd: "generator:method=water-pumped-storage";
225}
226
227*[fence_type=chain] {
228 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
229 throwWarning: tr("{0} is deprecated", "{0.tag}");
230 suggestAlternative: "barrier=chain";
231 suggestAlternative: "barrier=fence + fence_type=chain_link";
232 group: tr("deprecated tagging");
233}
234
235*[building=entrance] {
236 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
237 throwWarning: tr("{0} is deprecated", "{0.tag}");
238 suggestAlternative: "entrance";
239 group: tr("deprecated tagging");
240}
241
242*[board_type=board] {
243 /* see #9213 - Useless tag proposed in internal preset for years */
244 throwWarning: tr("{0} is deprecated", "{0.tag}");
245 group: tr("deprecated tagging");
246 fixRemove: "board_type";
247}
248
249*[man_made=measurement_station] {
250 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
251 throwWarning: tr("{0} is deprecated", "{0.tag}");
252 suggestAlternative: "man_made=monitoring_station";
253 group: tr("deprecated tagging");
254 fixAdd: "man_made=monitoring_station";
255}
256
257*[measurement=water_level] {
258 throwWarning: tr("{0} is deprecated", "{0.tag}");
259 suggestAlternative: "monitoring:water_level=yes";
260 group: tr("deprecated tagging");
261 fixRemove: "measurement";
262 fixAdd: "monitoring:water_level=yes";
263}
264
265*[measurement=weather] {
266 throwWarning: tr("{0} is deprecated", "{0.tag}");
267 suggestAlternative: "monitoring:weather=yes";
268 group: tr("deprecated tagging");
269 fixRemove: "measurement";
270 fixAdd: "monitoring:weather=yes";
271}
272
273*[measurement=seismic] {
274 throwWarning: tr("{0} is deprecated", "{0.tag}");
275 suggestAlternative: "monitoring:seismic_activity=yes";
276 group: tr("deprecated tagging");
277 fixRemove: "measurement";
278 fixAdd: "monitoring:seismic_activity=yes";
279}
280
281*[monitoring:river_level] {
282 throwWarning: tr("{0} is deprecated", "{0.key}");
283 suggestAlternative: "monitoring:water_level";
284 group: tr("deprecated tagging");
285 fixChangeKey: "monitoring:river_level => monitoring:water_level";
286}
287
288*[stay] {
289 throwWarning: tr("{0} is deprecated", "{0.key}");
290 suggestAlternative: "maxstay";
291 group: tr("deprecated tagging");
292 fixChangeKey: "stay => maxstay";
293}
294
295*[emergency=aed] {
296 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
297 throwWarning: tr("{0} is deprecated", "{0.tag}");
298 suggestAlternative: "emergency=defibrillator";
299 group: tr("deprecated tagging");
300 fixAdd: "emergency=defibrillator";
301}
302
303/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
304*[day_on][!restriction],
305*[day_off][!restriction],
306*[date_on][!restriction],
307*[date_off][!restriction],
308*[hour_on][!restriction],
309*[hour_off][!restriction] {
310 throwWarning: tr("{0} is deprecated", "{0.key}");
311 suggestAlternative: "*:conditional";
312 group: tr("deprecated tagging");
313 assertMatch: "node day_on=0-12";
314}
315
316/* see #10000, http://wiki.openstreetmap.org/wiki/Tag%3Aaccess%3Ddesignated */
317*[access=designated] {
318 throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
319 assertMatch: "way access=designated";
320}
321*[access=official] {
322 throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
323 assertMatch: "way access=official";
324}
325
326/* see #10085 - give warning for fixme=yes */
327*[fixme=yes], *[FIXME=yes] {
328 throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
329 assertMatch: "way fixme=yes";
330}
331
332*[name][name=~/^(?i)fixme$/] {
333 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}");
334 fixRemove: "name";
335 assertMatch: "node name=fixme";
336 assertMatch: "node name=Fixme";
337 assertMatch: "node name=FIXME";
338 assertNoMatch: "node name=valid name";
339}
340
341*[note][note=~/^(?i)fixme$/] {
342 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}");
343}
344
345/* see #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
346*[type=broad_leaved],
347*[type=broad_leafed] {
348 throwWarning: tr("{0} is deprecated", "{0.tag}");
349 suggestAlternative: "leaf_type=broadleaved";
350 group: tr("deprecated tagging");
351 fixRemove: "{0.key}";
352 fixAdd: "leaf_type=broadleaved";
353}
354
355*[wood=coniferous],
356*[type=coniferous],
357*[type=conifer] {
358 throwWarning: tr("{0} is deprecated", "{0.tag}");
359 suggestAlternative: "leaf_type=needleleaved";
360 group: tr("deprecated tagging");
361 fixRemove: "{0.key}";
362 fixAdd: "leaf_type=needleleaved";
363}
364
365*[wood=mixed] {
366 throwWarning: tr("{0} is deprecated", "{0.tag}");
367 suggestAlternative: "leaf_type=mixed";
368 group: tr("deprecated tagging");
369 fixRemove: "wood";
370 fixAdd: "leaf_type=mixed";
371}
372
373*[wood=evergreen],
374*[type=evergreen] {
375 throwWarning: tr("{0} is deprecated", "{0.tag}");
376 suggestAlternative: "leaf_cycle=evergreen";
377 group: tr("deprecated tagging");
378 fixRemove: "{0.key}";
379 fixAdd: "leaf_cycle=evergreen";
380}
381
382*[type=deciduous],
383*[type=deciduos] {
384 throwWarning: tr("{0} is deprecated", "{0.tag}");
385 suggestAlternative: "leaf_cycle=deciduous";
386 group: tr("deprecated tagging");
387 fixRemove: "type";
388 fixAdd: "leaf_cycle=deciduous";
389}
390
391*[wood=deciduous] {
392 throwWarning: tr("{0} is deprecated", "{0.tag}");
393 suggestAlternative: "leaf_type + leaf_cycle";
394 group: tr("deprecated tagging");
395}
396
397node[type=palm],
398way[type=palm] {
399 throwWarning: tr("{0} is deprecated", "{0.tag}");
400 suggestAlternative: "leaf_type";
401 suggestAlternative: "trees";
402 suggestAlternative: "species";
403 group: tr("deprecated tagging");
404}
405
406*[natural=land] {
407 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
408 group: tr("deprecated tagging");
409 assertMatch: "way natural=land";
410}
411
412/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
413*[bridge=causeway] {
414 throwWarning: tr("{0} is deprecated", "{0.tag}");
415 suggestAlternative: "ford=yes";
416 suggestAlternative: "bridge=low_water_crossing";
417 suggestAlternative: "embankment=yes";
418 group: tr("deprecated tagging");
419}
420*[bridge=swing] {
421 throwWarning: tr("{0} is deprecated", "{0.tag}");
422 suggestAlternative: "bridge:movable=swing";
423 suggestAlternative: "bridge:structure=simple-suspension";
424 group: tr("deprecated tagging");
425}
426*[bridge=suspension] {
427 throwWarning: tr("{0} is deprecated", "{0.tag}");
428 suggestAlternative: "bridge=yes + bridge:structure=suspension";
429 group: tr("deprecated tagging");
430 fixAdd: "bridge=yes";
431 fixAdd: "bridge:structure=suspension";
432}
433*[bridge=pontoon] {
434 throwWarning: tr("{0} is deprecated", "{0.tag}");
435 suggestAlternative: "bridge=yes + bridge:structure=floating";
436 group: tr("deprecated tagging");
437 fixAdd: "bridge=yes";
438 fixAdd: "bridge:structure=floating";
439}
440
441/* See #10530 - Incorrect tag proposed in internal preset for years */
442*[fee=interval],
443*[lit=interval],
444*[supervised=interval] {
445 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
446 group: tr("deprecated tagging");
447}
448
449/* See #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
450*[/josm\/ignore/] {
451 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
452 group: tr("deprecated tagging");
453 fixDeleteObject: this;
454}
455
456/* see #8281 */
457*[sport=diving] {
458 throwWarning: tr("{0} is deprecated", "{0.tag}");
459 suggestAlternative: "sport=scuba_diving";
460 suggestAlternative: "sport=cliff_diving";
461 group: tr("deprecated tagging");
462}
463
464/* see #8281 */
465*[parking=park_and_ride] {
466 throwWarning: tr("{0} is deprecated", "{0.tag}");
467 suggestAlternative: "amenity=parking + park_ride=yes";
468 group: tr("deprecated tagging");
469 fixRemove: "parking";
470 fixAdd: "amenity=parking";
471 fixAdd: "park_ride=yes";
472}
473
474/* see #18334, #17950, #10661, #10837, #11737, #12771 */
475*[manhole=plain],
476*[manhole=unknown],
477*[manhole=yes],
478*[police=yes],
479*[traffic_calming=yes],
480*[access=restricted],
481*[barrier=yes],
482*[aerialway=yes][!public_transport],
483*[amenity=yes],
484*[leisure=yes],
485*[shop="*"],
486*[shop=yes][amenity!=fuel],
487*[craft=yes],
488*[service=yes],
489*[place=yes] {
490 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
491}
492
493/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
494*[place_name][!name] {
495 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
496 fixChangeKey: "place_name => name";
497}
498*[place][place_name = *name] {
499 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
500 fixRemove: "{1.key}";
501}
502
503way[sidewalk=yes] {
504 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
505}
506
507*[waterway=water_point] {
508 throwWarning: tr("{0} is deprecated", "{0.tag}");
509 suggestAlternative: "amenity=water_point";
510 group: tr("deprecated tagging");
511 fixChangeKey: "waterway => amenity";
512}
513*[waterway=waste_disposal] {
514 throwWarning: tr("{0} is deprecated", "{0.tag}");
515 suggestAlternative: "amenity=waste_disposal";
516 group: tr("deprecated tagging");
517 fixChangeKey: "waterway => amenity";
518}
519*[waterway=mooring] {
520 throwWarning: tr("{0} is deprecated", "{0.tag}");
521 suggestAlternative: "mooring=yes";
522 group: tr("deprecated tagging");
523 fixRemove: "waterway";
524 fixAdd: "mooring=yes";
525}
526
527/* see #10837 */
528*[building][levels],
529*[building:part=yes][levels] {
530 throwWarning: tr("{0} is deprecated", "{1.key}");
531 suggestAlternative: "building:levels";
532 group: tr("deprecated tagging");
533 fixChangeKey: "levels => building:levels";
534}
535
536/* see #10691 */
537*[protected_class] {
538 throwWarning: tr("{0} is deprecated", "{0.key}");
539 suggestAlternative: "protect_class";
540 group: tr("deprecated tagging");
541 fixChangeKey: "protected_class => protect_class";
542}
543
544/* see #11070 */
545*[kerb=unknown],
546*[lock=unknown],
547*[hide=unknown],
548*[shelter=unknown],
549*[access=unknown],
550*[capacity:parent=unknown],
551*[capacity:women=unknown],
552*[capacity:disabled=unknown],
553*[crossing=unknown],
554*[foot=unknown] {
555 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
556}
557
558/* unclear definition, see #11183 */
559*[sport=skiing] {
560 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
561 suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
562 group: tr("deprecated tagging");
563}
564
565/* see #11223 */
566*[waterway=wadi] {
567 throwWarning: tr("{0} is deprecated", "{0.tag}");
568 suggestAlternative: "{0.key}=* + intermittent=yes";
569 suggestAlternative: "natural=valley";
570 group: tr("deprecated tagging");
571}
572
573/* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
574way[oneway=1][!waterway] {
575 throwWarning: tr("{0} is deprecated", "{0.tag}");
576 suggestAlternative: "oneway=yes";
577 group: tr("deprecated tagging");
578 fixAdd: "oneway=yes";
579}
580
581/* see #11329, #15667 */
582way[oneway=-1][!waterway] {
583 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
584}
585
586*[drinkable] {
587 throwWarning: tr("{0} is deprecated", "{0.key}");
588 suggestAlternative: "drinking_water";
589 group: tr("deprecated tagging");
590}
591
592/* see #10329, #15877 */
593 /* simple key change */
594*[color][!colour] {
595 throwWarning: tr("{0} is deprecated", "{0.key}");
596 suggestAlternative: "colour";
597 group: tr("deprecated tagging");
598 fixChangeKey: "color => colour";
599 assertMatch: "way color=red";
600 assertNoMatch: "way color=red colour=red";
601}
602area[building:color][!building:colour] {
603 throwWarning: tr("{0} is deprecated", "{0.key}");
604 suggestAlternative: "building:colour";
605 group: tr("deprecated tagging");
606 fixChangeKey: "building:color => building:colour";
607 assertMatch: "way building:color=red";
608 assertNoMatch: "way building:color=red building:colour=red";
609}
610area[roof:color][!roof:colour] {
611 throwWarning: tr("{0} is deprecated", "{0.key}");
612 suggestAlternative: "roof:colour";
613 group: tr("deprecated tagging");
614 fixChangeKey: "roof:color => roof:colour";
615 assertMatch: "way roof:color=red";
616 assertNoMatch: "way roof:color=red roof:colour=red";
617}
618 /* both tags with same value, remove color */
619*[color][colour][color=*colour] {
620 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
621 suggestAlternative: "colour";
622 group: tr("deprecated tagging");
623 set samecolor;
624 fixRemove: "color";
625 assertMatch: "way color=red colour=red";
626 assertNoMatch: "way color=red colour=green";
627}
628area[building:color][building:colour]["building:color"=*"building:colour"] {
629 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
630 suggestAlternative: "building:colour";
631 group: tr("deprecated tagging");
632 set samebuildingcolor;
633 fixRemove: "building:color";
634 assertMatch: "way building:color=red building:colour=red";
635 assertNoMatch: "way building:color=red building:colour=green";
636}
637area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
638 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
639 suggestAlternative: "roof:colour";
640 group: tr("deprecated tagging");
641 set sameroofcolor;
642 fixRemove: "roof:color";
643 assertMatch: "way roof:color=red roof:colour=red";
644 assertNoMatch: "way roof:color=red roof:colour=green";
645}
646 /* both tags with different values, no autofix */
647*[color][colour]!.samecolor {
648 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
649 suggestAlternative: "colour";
650 group: tr("deprecated tagging");
651 assertNoMatch: "way color=red colour=red";
652 assertMatch: "way color=red colour=green";
653}
654*[building:color][building:colour]!.samebuildingcolor {
655 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
656 suggestAlternative: "building:colour";
657 group: tr("deprecated tagging");
658 assertNoMatch: "way building:color=red building:colour=red";
659 assertMatch: "way building:color=red building:colour=green";
660}
661*[roof:color][roof:colour]!.sameroofcolor {
662 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
663 suggestAlternative: "roof:colour";
664 group: tr("deprecated tagging");
665 assertNoMatch: "way roof:color=red roof:colour=red";
666 assertMatch: "way roof:color=red roof:colour=green";
667}
668/* further more universal checks, no autofix */
669/* gpxd:color has another warning in unnecessary.mapcss */
670*[/:color/][!building:color][!roof:color][!gpxd:color] {
671 throwWarning: tr("{0} is deprecated", "{0.key}");
672 suggestAlternative: ":colour";
673 group: tr("deprecated tagging");
674 assertNoMatch: "way color=red";
675 assertNoMatch: "way roof:color=grey";
676 assertMatch: "way cycleway:surface:color=grey";
677}
678*[/color:/] {
679 throwWarning: tr("{0} is deprecated", "{0.key}");
680 suggestAlternative: "colour:";
681 group: tr("deprecated tagging");
682 assertNoMatch: "way color=red";
683 assertMatch: "way color:back=grey";
684}
685
686/* see #11234 */
687*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
688 throwWarning: tr("{0}", "{0.key}");
689 group: tr("key with uncommon character");
690}
691
692/* see #11330, #18642 */
693*[/^.$/],
694node[/^..$/],
695way[/^..$/][route=ferry][!to],
696way[/^..$/][route!=ferry],
697relation[/^..$/][!to] {
698 throwWarning: tr("uncommon short key");
699 assertNoMatch: "relation to=Berlin";
700 assertMatch: "relation fo=bar";
701 assertMatch: "way to=bar";
702 assertNoMatch: "way to=Zuidschermer;Akersloot route=ferry";
703 assertMatch: "node fo=bar";
704 assertMatch: "node f=b";
705}
706
707/* see #11439 */
708*[sport=hockey] {
709 throwWarning: tr("{0} is deprecated", "{0.tag}");
710 suggestAlternative: "sport=field_hockey";
711 suggestAlternative: "sport=ice_hockey";
712 group: tr("deprecated tagging");
713}
714
715/* see #11471 */
716*[sport=billard],
717*[sport=billards],
718*[sport=billiard] {
719 throwWarning: tr("{0} is deprecated", "{0.tag}");
720 suggestAlternative: "sport=billiards";
721 group: tr("deprecated tagging");
722 fixAdd: "sport=billiards";
723}
724
725/* see #11499, #16928 */
726*[payment:credit_cards=yes] {
727 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");
728}
729*[payment:debit_cards=yes] {
730 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");
731}
732*[payment:electronic_purses=yes] {
733 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");
734}
735*[payment:cryptocurrencies=yes] {
736 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");
737}
738
739/* defunct payment cards */
740*[payment:ep_quick],
741*[payment:ep_cash],
742*[payment:ep_proton],
743*[payment:ep_chipknip] {
744 throwWarning: tr("{0} is deprecated", "{0.key}");
745 group: tr("deprecated tagging");
746 fixRemove: "{0.key}";
747}
748
749/* see #8717 */
750*[kp][highway=milestone],
751*[kp][railway=milestone],
752*[kp][waterway=milestone] {
753 throwWarning: tr("{0} is deprecated", "{0.key}");
754 suggestAlternative: "distance";
755 group: tr("deprecated tagging");
756 fixChangeKey: "kp => distance";
757}
758*[pk][highway=milestone],
759*[pk][railway=milestone],
760*[pk][waterway=milestone] {
761 throwWarning: tr("{0} is deprecated", "{0.key}");
762 suggestAlternative: "distance";
763 group: tr("deprecated tagging");
764 fixChangeKey: "pk => distance";
765}
766
767*[postcode] {
768 throwWarning: tr("{0} is deprecated", "{0.key}");
769 suggestAlternative: "addr:postcode";
770 group: tr("deprecated tagging");
771 suggestAlternative: "postal_code";
772}
773
774*[water=intermittent] {
775 throwWarning: tr("{0} is deprecated", "{0.tag}");
776 suggestAlternative: "intermittent=yes";
777 group: tr("deprecated tagging");
778 fixRemove: "water";
779 fixAdd: "intermittent=yes";
780}
781
782/* #10907, #14141 */
783/* 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 */
784way[type][type!=waterway][man_made=pipeline],
785node[type][pipeline=marker] {
786 throwWarning: tr("{0} is deprecated", "{0.key}");
787 suggestAlternative: "substance";
788 group: tr("deprecated tagging");
789 fixChangeKey: "type => substance";
790}
791
792*[landuse=farm] {
793 throwWarning: tr("{0} is deprecated", "{0.tag}");
794 suggestAlternative: "landuse=farmland";
795 suggestAlternative: "landuse=farmyard";
796 group: tr("deprecated tagging");
797}
798
799/* #12135 comment:11 */
800*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
801 throwWarning: tr("{0} is deprecated", "{0.tag}");
802 suggestAlternative: "{1.tag}";
803 group: tr("deprecated tagging");
804 fixRemove: "seamark";
805}
806*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
807 throwWarning: tr("{0} is deprecated", "{0.tag}");
808 suggestAlternative: "{1.tag}";
809 group: tr("deprecated tagging");
810}
811/* #12135 - Tag removed rom rendering https://github.com/gravitystorm/openstreetmap-carto/pull/1830 */
812*[landuse=conservation] {
813 throwWarning: tr("{0} is deprecated", "{0.tag}");
814 suggestAlternative: "boundary=protected_area";
815 group: tr("deprecated tagging");
816 fixAdd: "boundary=protected_area";
817 fixRemove: "landuse";
818}
819
820/* #12205 */
821*[amenity=kiosk] {
822 throwWarning: tr("{0} is deprecated", "{0.tag}");
823 suggestAlternative: "shop=kiosk";
824 group: tr("deprecated tagging");
825 fixChangeKey: "amenity => shop";
826}
827*[amenity=shop] {
828 throwWarning: tr("{0} is deprecated", "{0.tag}");
829 suggestAlternative: "shop=*";
830 group: tr("deprecated tagging");
831}
832*[shop=fishmonger] {
833 throwWarning: tr("{0} is deprecated", "{0.tag}");
834 suggestAlternative: "shop=seafood";
835 group: tr("deprecated tagging");
836 fixAdd: "shop=seafood";
837}
838*[shop=fish] {
839 throwWarning: tr("{0} is deprecated", "{0.tag}");
840 suggestAlternative: "shop=seafood";
841 suggestAlternative: "shop=pet";
842 suggestAlternative: "shop=fishing";
843 group: tr("deprecated tagging");
844}
845*[shop=betting] {
846 throwWarning: tr("{0} is deprecated", "{0.tag}");
847 suggestAlternative: "shop=bookmaker";
848 suggestAlternative: "shop=lottery";
849 suggestAlternative: "amenity=casino";
850 suggestAlternative: "leisure=amusement_arcade";
851 suggestAlternative: "leisure=adult_gaming_centre";
852 suggestAlternative: "amenity=gambling";
853 group: tr("deprecated tagging");
854}
855*[shop=perfume] {
856 throwWarning: tr("{0} is deprecated", "{0.tag}");
857 suggestAlternative: "shop=perfumery";
858 group: tr("deprecated tagging");
859 fixAdd: "shop=perfumery";
860}
861*[amenity=exercise_point] {
862 throwWarning: tr("{0} is deprecated", "{0.tag}");
863 suggestAlternative: "leisure=fitness_station";
864 group: tr("deprecated tagging");
865 fixAdd: "leisure=fitness_station";
866 fixRemove: "amenity";
867}
868*[shop=auto_parts] {
869 throwWarning: tr("{0} is deprecated", "{0.tag}");
870 suggestAlternative: "shop=car_parts";
871 group: tr("deprecated tagging");
872 fixAdd: "shop=car_parts";
873}
874*[amenity=car_repair] {
875 throwWarning: tr("{0} is deprecated", "{0.tag}");
876 suggestAlternative: "shop=car_repair";
877 group: tr("deprecated tagging");
878 fixChangeKey: "amenity => shop";
879}
880
881/* #12311 */
882*[amenity=studio][type=audio],
883*[amenity=studio][type=radio],
884*[amenity=studio][type=television],
885*[amenity=studio][type=video] {
886 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
887 suggestAlternative: "studio";
888 group: tr("deprecated tagging");
889 fixChangeKey: "type => studio";
890}
891
892/* #11507, #12297, #15409 */
893*[power=cable_distribution_cabinet] {
894 throwWarning: tr("{0} is deprecated", "{0.tag}");
895 suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
896 group: tr("deprecated tagging");
897 fixAdd: "man_made=street_cabinet";
898 fixRemove: "power";
899}
900
901/* #16430 */
902*[power][location=kiosk] {
903 throwWarning: tr("{0} is deprecated", "{1.tag}");
904 group: tr("deprecated tagging");
905 fixAdd: "man_made=street_cabinet";
906 fixAdd: "street_cabinet=power";
907 fixRemove: "location";
908}
909
910/* #12276 */
911*[man_made=well] {
912 throwWarning: tr("{0} is deprecated", "{0.tag}");
913 suggestAlternative: "man_made=water_well";
914 suggestAlternative: "man_made=petroleum_well";
915 group: tr("deprecated tagging");
916}
917*[amenity=dog_bin],
918*[amenity=dog_waste_bin] {
919 throwWarning: tr("{0} is deprecated", "{0.tag}");
920 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
921 group: tr("deprecated tagging");
922 fixAdd: "amenity=waste_basket";
923 fixAdd: "waste=dog_excrement";
924 fixAdd: "vending=excrement_bags";
925}
926*[amenity=artwork] {
927 throwWarning: tr("{0} is deprecated", "{0.tag}");
928 suggestAlternative: "tourism=artwork";
929 group: tr("deprecated tagging");
930 fixAdd: "tourism=artwork";
931 fixRemove: "amenity";
932}
933*[amenity=community_center] {
934 throwWarning: tr("{0} is deprecated", "{0.tag}");
935 suggestAlternative: "amenity=community_centre";
936 group: tr("deprecated tagging");
937 fixAdd: "amenity=community_centre";
938}
939*[man_made=cut_line] {
940 throwWarning: tr("{0} is deprecated", "{0.tag}");
941 suggestAlternative: "man_made=cutline";
942 group: tr("deprecated tagging");
943 fixAdd: "man_made=cutline";
944}
945*[amenity=park] {
946 throwWarning: tr("{0} is deprecated", "{0.tag}");
947 suggestAlternative: "leisure=park";
948 group: tr("deprecated tagging");
949 fixAdd: "leisure=park";
950 fixRemove: "amenity";
951}
952*[amenity=hotel] {
953 throwWarning: tr("{0} is deprecated", "{0.tag}");
954 suggestAlternative: "tourism=hotel";
955 group: tr("deprecated tagging");
956 fixAdd: "tourism=hotel";
957 fixRemove: "amenity";
958}
959*[shop=window],
960*[shop=windows] {
961 throwWarning: tr("{0} is deprecated", "{0.tag}");
962 suggestAlternative: "craft=window_construction";
963 group: tr("deprecated tagging");
964 fixAdd: "craft=window_construction";
965 fixRemove: "shop";
966}
967*[amenity=education] {
968 throwWarning: tr("{0} is deprecated", "{0.tag}");
969 suggestAlternative: "amenity=college";
970 suggestAlternative: "amenity=school";
971 suggestAlternative: "amenity=university";
972 group: tr("deprecated tagging");
973}
974*[shop=gallery] {
975 throwWarning: tr("{0} is deprecated", "{0.tag}");
976 suggestAlternative: "shop=art";
977 group: tr("deprecated tagging");
978 fixAdd: "shop=art";
979}
980*[shop=gambling],
981*[leisure=gambling] {
982 throwWarning: tr("{0} is deprecated", "{0.tag}");
983 suggestAlternative: "shop=bookmaker";
984 suggestAlternative: "shop=lottery";
985 suggestAlternative: "amenity=casino";
986 suggestAlternative: "leisure=amusement_arcade";
987 suggestAlternative: "amenity=gambling";
988 group: tr("deprecated tagging");
989}
990*[office=real_estate],
991*[office=real_estate_agent] {
992 throwWarning: tr("{0} is deprecated", "{0.tag}");
993 suggestAlternative: "office=estate_agent";
994 group: tr("deprecated tagging");
995 fixAdd: "office=estate_agent";
996}
997*[shop=glass] {
998 throwWarning: tr("{0} is deprecated", "{0.tag}");
999 suggestAlternative: "shop=glaziery";
1000 suggestAlternative: "craft=glaziery";
1001 group: tr("deprecated tagging");
1002}
1003*[amenity=proposed],
1004*[amenity=proposed],
1005*[amenity=disused],
1006*[shop=disused],
1007*[highway=abandoned],
1008*[historic=abandoned] {
1009 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
1010 group: tr("deprecated tagging");
1011}
1012
1013/* #12431 */
1014*[amenity=swimming_pool] {
1015 throwWarning: tr("{0} is deprecated", "{0.tag}");
1016 suggestAlternative: "leisure=swimming_pool";
1017 group: tr("deprecated tagging");
1018 fixChangeKey: "amenity => leisure";
1019}
1020
1021/* #17379 */
1022*[amenity=sauna] {
1023 throwWarning: tr("{0} is deprecated", "{0.tag}");
1024 suggestAlternative: "leisure=sauna";
1025 group: tr("deprecated tagging");
1026 fixChangeKey: "amenity => leisure";
1027}
1028
1029/* #12494, #17554 */
1030*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
1031 throwWarning: tr("{0}", "{0.key}");
1032 group: tr("questionable key (ending with a number)");
1033 assertMatch: "way name_1=foo";
1034 assertNoMatch: "way note_2=foo";
1035 assertNoMatch: "way description_3=foo";
1036 assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
1037}
1038
1039/* #12500 */
1040*[sport=skating] {
1041 throwWarning: tr("{0} is deprecated", "{0.tag}");
1042 suggestAlternative: "sport=ice_skating";
1043 suggestAlternative: "sport=roller_skating";
1044 group: tr("deprecated tagging");
1045}
1046
1047way[barrier=wall][type=noise_barrier][!wall],
1048way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
1049 throwWarning: tr("{0} is deprecated", "{1.tag}");
1050 suggestAlternative: "wall=noise_barrier";
1051 group: tr("deprecated tagging");
1052 fixChangeKey: "type => wall";
1053}
1054way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
1055 throwWarning: tr("{0} is deprecated", "{1.tag}");
1056 suggestAlternative: "wall=noise_barrier";
1057 group: tr("deprecated tagging");
1058}
1059
1060/* #8978, 12588 */
1061*[amenity=public_building] {
1062 throwWarning: tr("{0} is deprecated", "{0.tag}");
1063 suggestAlternative: "amenity=townhall";
1064 suggestAlternative: "amenity=community_centre";
1065 suggestAlternative: "amenity=hospital";
1066 suggestAlternative: "leisure=sports_centre";
1067 suggestAlternative: "office=government";
1068 suggestAlternative: "building=hospital";
1069 suggestAlternative: "building=public";
1070 suggestAlternative: "...";
1071 group: tr("deprecated tagging");
1072}
1073
1074/* #18517 */
1075*[office=administrative] {
1076 throwWarning: tr("{0} is deprecated", "{0.tag}");
1077 suggestAlternative: "office=government";
1078 group: tr("deprecated tagging");
1079 fixAdd: "office=government";
1080}
1081
1082/* #12708 */
1083*[vending=news_papers] {
1084 throwWarning: tr("{0} is deprecated", "{0.tag}");
1085 suggestAlternative: "vending=newspapers";
1086 group: tr("deprecated tagging");
1087 fixAdd: "vending=newspapers";
1088}
1089
1090/* #12771 */
1091*[service=drive_through] {
1092 throwWarning: tr("{0} is deprecated", "{0.tag}");
1093 suggestAlternative: "service=drive-through";
1094 group: tr("deprecated tagging");
1095 fixAdd: "service=drive-through";
1096}
1097
1098/* #12771 */
1099way[highway=service][service][service !~ /^(alley|drive-through|drive_through|driveway|emergency_access|parking_aisle|rest_area|slipway|yes)$/], /* drive_through and yes have special warnings */
1100way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1101way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1102 throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
1103}
1104
1105/* #13008 */
1106*[name:botanical] {
1107 throwWarning: tr("{0} is deprecated", "{0.key}");
1108 suggestAlternative: "species";
1109 group: tr("deprecated tagging");
1110}
1111
1112/* #11344, #13101, #15480 */
1113node[pole=air_to_ground],
1114node[pole=transition] {
1115 throwWarning: tr("{0} is deprecated", "{0.tag}");
1116 suggestAlternative: "location:transition=yes";
1117 group: tr("deprecated tagging");
1118 fixAdd: "location:transition=yes";
1119 fixRemove: "pole";
1120}
1121node[tower=air_to_ground],
1122node[tower=transition] {
1123 throwWarning: tr("{0} is deprecated", "{0.tag}");
1124 suggestAlternative: "location:transition=yes";
1125 group: tr("deprecated tagging");
1126 fixAdd: "location:transition=yes";
1127 fixRemove: "tower";
1128}
1129
1130/* #13138 */
1131area[landuse=pond] {
1132 throwWarning: tr("{0} is deprecated", "{0.tag}");
1133 suggestAlternative: "natural=water + water=pond";
1134 group: tr("deprecated tagging");
1135 fixAdd: "natural=water";
1136 fixAdd: "water=pond";
1137 fixRemove: "landuse";
1138}
1139
1140*[shop=souvenir],
1141*[shop=souvenirs],
1142*[shop=souveniers] {
1143 throwWarning: tr("{0} is deprecated", "{0.tag}");
1144 suggestAlternative: "shop=gift";
1145 group: tr("deprecated tagging");
1146 fixAdd: "shop=gift";
1147}
1148
1149*[vending=animal_food] {
1150 throwWarning: tr("{0} is deprecated", "{0.tag}");
1151 suggestAlternative: "vending=animal_feed";
1152 group: tr("deprecated tagging");
1153 fixAdd: "vending=animal_feed";
1154}
1155
1156/* #14376 */
1157node[vending=photos][amenity=vending_machine],
1158node[vending=photo][amenity=vending_machine] {
1159 throwWarning: tr("{0} is deprecated", "{0.tag}");
1160 suggestAlternative: "amenity=photo_booth";
1161 group: tr("deprecated tagging");
1162 fixRemove: "vending";
1163 fixAdd: "amenity=photo_booth";
1164
1165}
1166node[vending=photos][amenity!=vending_machine] {
1167 throwWarning: tr("{0} is deprecated", "{0.tag}");
1168 suggestAlternative: "amenity=photo_booth";
1169 group: tr("deprecated tagging");
1170}
1171
1172/* #13653 */
1173node[highway=emergency_access_point][phone][!emergency_telephone_code],
1174way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1175 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1176 suggestAlternative: "emergency_telephone_code";
1177 group: tr("deprecated tagging");
1178 fixChangeKey: "phone => emergency_telephone_code";
1179 assertMatch: "node highway=emergency_access_point phone=123";
1180 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1181 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1182 assertNoMatch: "node phone=123";
1183}
1184node[highway=emergency_access_point][phone=*emergency_telephone_code],
1185way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1186 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1187 suggestAlternative: "emergency_telephone_code";
1188 group: tr("deprecated tagging");
1189 fixRemove: "phone";
1190 assertNoMatch: "node highway=emergency_access_point phone=123";
1191 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1192 assertMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1193}
1194node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1195way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1196 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1197 suggestAlternative: "emergency_telephone_code";
1198 group: tr("deprecated tagging");
1199 assertNoMatch: "node highway=emergency_access_point phone=123";
1200 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1201 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1202}
1203
1204/* #13879 */
1205way[tracktype=1] {
1206 throwError: tr("{0}", "{0.tag}");
1207 suggestAlternative: "tracktype=grade1";
1208 group: tr("misspelled value");
1209 fixAdd: "tracktype=grade1";
1210}
1211way[tracktype=2] {
1212 throwError: tr("{0}", "{0.tag}");
1213 suggestAlternative: "tracktype=grade2";
1214 group: tr("misspelled value");
1215 fixAdd: "tracktype=grade2";
1216}
1217way[tracktype=3] {
1218 throwError: tr("{0}", "{0.tag}");
1219 suggestAlternative: "tracktype=grade3";
1220 group: tr("misspelled value");
1221 fixAdd: "tracktype=grade3";
1222}
1223way[tracktype=4] {
1224 throwError: tr("{0}", "{0.tag}");
1225 suggestAlternative: "tracktype=grade4";
1226 group: tr("misspelled value");
1227 fixAdd: "tracktype=grade4";
1228}
1229way[tracktype=5] {
1230 throwError: tr("{0}", "{0.tag}");
1231 suggestAlternative: "tracktype=grade5";
1232 group: tr("misspelled value");
1233 fixAdd: "tracktype=grade5";
1234}
1235way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1236 throwError: tr("wrong value: {0}", "{0.tag}");
1237 suggestAlternative: "tracktype=grade1";
1238 suggestAlternative: "tracktype=grade2";
1239 suggestAlternative: "tracktype=grade3";
1240 suggestAlternative: "tracktype=grade4";
1241 suggestAlternative: "tracktype=grade5";
1242}
1243
1244area[area][area!=yes][area!=no] {
1245 throwError: tr("wrong value: {0}", "{0.tag}");
1246 suggestAlternative: "area=yes";
1247 suggestAlternative: "area=no";
1248}
1249
1250/* #13953 */
1251*[amenity=hunting_stand][lock=yes],
1252*[amenity=hunting_stand][lock=no] {
1253 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1254 suggestAlternative: "lockable";
1255 group: tr("deprecated tagging");
1256 fixChangeKey: "lock => lockable";
1257}
1258
1259*[amenity=advertising][!advertising] {
1260 throwWarning: tr("{0} is deprecated", "{0.tag}");
1261 suggestAlternative: "advertising=*";
1262 group: tr("deprecated tagging");
1263}
1264*[amenity=advertising][advertising] {
1265 throwWarning: tr("{0} is deprecated", "{0.tag}");
1266 suggestAlternative: "advertising=*";
1267 group: tr("deprecated tagging");
1268 fixRemove: "amenity";
1269}
1270
1271way[direction=up][incline=up],
1272way[direction=down][incline=down],
1273way[direction=up][!incline],
1274way[direction=down][!incline] {
1275 throwWarning: tr("{0} is deprecated", "{0.tag}");
1276 suggestAlternative: "incline";
1277 group: tr("deprecated tagging");
1278 fixChangeKey: "direction => incline";
1279}
1280way[direction=up][incline][incline!=up],
1281way[direction=down][incline][incline!=down] {
1282 throwWarning: tr("{0} is deprecated", "{0.tag}");
1283 suggestAlternative: "incline";
1284 group: tr("deprecated tagging");
1285}
1286
1287*[building=true],
1288*[building="*"],
1289*[building=Y],
1290*[building=y],
1291*[building=1] {
1292 throwError: tr("{0}", "{0.tag}");
1293 suggestAlternative: "building=yes";
1294 group: tr("misspelled value");
1295 fixAdd: "building=yes";
1296}
1297
1298/* #17786, #18612 */
1299*[building=abandoned],
1300*[building=address],
1301*[building=bing],
1302*[building=collapsed],
1303*[building=damaged],
1304*[building=demolished],
1305*[building=disused],
1306*[building=fixme],
1307*[building=occupied],
1308*[building=razed] {
1309 throwWarning: tr("{0} is not a building type.", "{0.tag}");
1310 group: tr("deprecated tagging");
1311}
1312*[building=other],
1313*[building=unclassified],
1314*[building=undefined],
1315*[building=unknown],
1316*[building=unidentified] {
1317 throwWarning: tr("{0} is not a building type.", "{0.tag}");
1318 group: tr("deprecated tagging");
1319 fixAdd: "building=yes";
1320}
1321
1322/* #15675 */
1323node[power=transformer][location=pole][transformer] {
1324 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1325 group: tr("deprecated tagging");
1326 fixChangeKey: "location => power";
1327}
1328node[power=transformer][location=pole][!transformer] {
1329 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1330 group: tr("deprecated tagging");
1331 fixChangeKey: "location => power";
1332 fixAdd: "transformer=yes";
1333}
1334
1335node[tourism=picnic_table],
1336node[amenity=picnic_table],
1337node[leisure=picnic],
1338node[leisure=picnic_site] {
1339 throwWarning: tr("{0} is deprecated", "{0.tag}");
1340 suggestAlternative: "tourism=picnic_site";
1341 suggestAlternative: "leisure=picnic_table";
1342 group: tr("deprecated tagging");
1343}
1344
1345/* #15804 */
1346relation[water=salt],
1347way[water=salt],
1348way[water=salt_pool],
1349way[water=salt_panne],
1350way[water=salt_pond] {
1351 throwWarning: tr("{0} is deprecated", "{0.tag}");
1352 suggestAlternative: "salt=yes";
1353 suggestAlternative: "landuse=salt_pond";
1354 group: tr("deprecated tagging");
1355}
1356
1357/* #15805 */
1358way[water=tidal] {
1359 throwWarning: tr("{0} is deprecated", "{0.tag}");
1360 suggestAlternative: "tidal=yes";
1361 fixAdd: "tidal=yes";
1362 fixRemove: "water";
1363 group: tr("deprecated tagging");
1364}
1365
1366*[amenity=toilet] {
1367 throwError: tr("{0}", "{0.tag}");
1368 suggestAlternative: "amenity=toilets";
1369 group: tr("misspelled value");
1370 fixAdd: "amenity=toilets";
1371}
1372
1373way[power=busbar] {
1374 throwWarning: tr("{0} is deprecated", "{0.tag}");
1375 suggestAlternative: "power=line + line=busbar";
1376 group: tr("deprecated tagging");
1377 fixAdd: "power=line";
1378 fixAdd: "line=busbar";
1379}
1380
1381/* #16924 */
1382*[man_made=MDF],
1383*[man_made=telephone_exchange] {
1384 throwWarning: tr("{0} is deprecated", "{0.tag}");
1385 suggestAlternative: "telecom=exchange";
1386 fixAdd: "telecom=exchange";
1387 fixRemove: "man_made";
1388 group: tr("deprecated tagging");
1389}
1390*[building=central_office] {
1391 throwWarning: tr("{0} is deprecated", "{0.tag}");
1392 suggestAlternative: "telecom=exchange";
1393 fixAdd: "telecom=exchange";
1394 fixAdd: "building=yes";
1395 group: tr("deprecated tagging");
1396}
1397*[telecom=central_office] {
1398 throwWarning: tr("{0} is deprecated", "{0.tag}");
1399 suggestAlternative: "telecom=exchange";
1400 fixAdd: "telecom=exchange";
1401 group: tr("deprecated tagging");
1402}
1403
1404/* #16925 */
1405node[communication=outdoor_dslam],
1406node[man_made=outdoor_dslam],
1407node[street_cabinet=outdoor_dslam] {
1408 throwWarning: tr("{0} is deprecated", "{0.tag}");
1409 suggestAlternative: "telecom=service_device";
1410 fixAdd: "telecom=service_device";
1411 fixRemove: "{0.key}";
1412 group: tr("deprecated tagging");
1413}
1414node[telecom=dslam],
1415node[telecom=outdoor_dslam] {
1416 throwWarning: tr("{0} is deprecated", "{0.tag}");
1417 suggestAlternative: "telecom=service_device";
1418 fixAdd: "telecom=service_device";
1419 group: tr("deprecated tagging");
1420}
1421
1422/* #15774 */
1423node[amenity=fire_hydrant] {
1424 throwWarning: tr("{0} is deprecated", "{0.tag}");
1425 suggestAlternative: "emergency=fire_hydrant";
1426 fixChangeKey: "amenity => emergency";
1427 group: tr("deprecated tagging");
1428}
1429node[fire_hydrant:type=pond] {
1430 throwWarning: tr("{0} is deprecated", "{0.tag}");
1431 suggestAlternative: "water_source=pond";
1432 fixAdd: "water_source=pond";
1433 fixRemove: "{0.key}";
1434 group: tr("deprecated tagging");
1435}
1436node[fire_hydrant:flow_capacity] {
1437 throwWarning: tr("{0} is deprecated", "{0.key}");
1438 suggestAlternative: "flow_rate";
1439 group: tr("deprecated tagging");
1440}
1441node[emergency=fire_hydrant][in_service=no] {
1442 throwWarning: tr("{0} is deprecated", "{1.tag}");
1443 suggestAlternative: "disused:emergency=fire_hydrant";
1444 fixAdd: "disused:emergency=fire_hydrant";
1445 fixRemove: "{1.key}";
1446 fixRemove: "{0.key}";
1447 group: tr("deprecated tagging");
1448}
1449node[fire_hydrant:water_source] {
1450 throwWarning: tr("{0} is deprecated", "{0.key}");
1451 suggestAlternative: "water_source";
1452 fixChangeKey: "fire_hydrant:water_source => water_source";
1453 group: tr("deprecated tagging");
1454}
1455
1456/* #17383 */
1457*[natural=waterfall] {
1458 throwWarning: tr("{0} is deprecated", "{0.tag}");
1459 suggestAlternative: "waterway=waterfall";
1460 fixChangeKey: "natural => waterway";
1461 group: tr("deprecated tagging");
1462}
1463
1464/* #17249 */
1465*[religion=unitarian] {
1466 throwWarning: tr("{0} is deprecated", "{0.tag}");
1467 suggestAlternative: "religion=unitarian_universalist";
1468 fixAdd: "religion=unitarian_universalist";
1469 group: tr("deprecated tagging");
1470}
1471
1472*[shop=shopping_centre] {
1473 throwWarning: tr("{0} is deprecated", "{0.tag}");
1474 suggestAlternative: "shop=mall";
1475 fixAdd: "shop=mall";
1476 group: tr("deprecated tagging");
1477}
1478
1479/* #17504 */
1480*[is_in],
1481node[/^is_in:.*$/],
1482way[/^is_in:.*$/] {
1483 throwWarning: tr("{0} is deprecated", "{0.key}");
1484 group: tr("deprecated tagging");
1485 fixRemove: "{0.key}";
1486}
1487
1488/* #17593 */
1489*[sport=football] {
1490 throwWarning: tr("{0} is deprecated", "{0.tag}");
1491 suggestAlternative: "sport=soccer";
1492 suggestAlternative: "sport=american_football";
1493 suggestAlternative: "sport=australian_football";
1494 suggestAlternative: "sport=canadian_football";
1495 suggestAlternative: "sport=rugby_league";
1496 suggestAlternative: "sport=rugby_union";
1497 suggestAlternative: "sport=gaelic_games";
1498 group: tr("deprecated tagging");
1499}
1500
1501/* #17556 */
1502*[leisure=common] {
1503 throwWarning: tr("{0} is deprecated", "{0.tag}");
1504 suggestAlternative: "landuse=*";
1505 suggestAlternative: "leisure=*";
1506 suggestAlternative: "designation=common";
1507 group: tr("deprecated tagging");
1508}
1509
1510/* #17043 */
1511*[cuisine=vegan],
1512*[cuisine=vegetarian] {
1513 throwWarning: tr("{0} is deprecated", "{0.tag}");
1514 suggestAlternative: concat("diet:", "{0.value}", "=yes");
1515 suggestAlternative: concat("diet:", "{0.value}", "=only");
1516 group: tr("deprecated tagging");
1517}
1518
1519/* #17798 */
1520*[kitchen_hours] {
1521 throwWarning: tr("{0} is deprecated", "{0.key}");
1522 suggestAlternative: "opening_hours:kitchen";
1523 fixChangeKey: "kitchen_hours => opening_hours:kitchen";
1524 group: tr("deprecated tagging");
1525}
1526
1527/* #17681 */
1528*[shop=money_transfer] {
1529 throwWarning: tr("{0} is deprecated", "{0.tag}");
1530 suggestAlternative: "amenity=money_transfer";
1531 fixChangeKey: "shop => amenity";
1532 group: tr("deprecated tagging");
1533}
1534
1535*[contact:google_plus] {
1536 throwWarning: tr("{0} is deprecated", "{0.key}");
1537 fixRemove: "contact:google_plus";
1538 group: tr("deprecated tagging");
1539}
1540
1541/* #17370 */
1542*[amenity=garages],
1543*[amenity=garage] {
1544 throwWarning: tr("{0} is deprecated", "{0.tag}");
1545 suggestAlternative: concat("building=", "{0.value}");
1546 suggestAlternative: "landuse=garages";
1547 suggestAlternative: "amenity=parking + parking=garage_boxes";
1548 group: tr("deprecated tagging");
1549}
1550*[shop=winery],
1551*[amenity=winery] {
1552 throwWarning: tr("{0} is deprecated", "{0.tag}");
1553 suggestAlternative: "craft=winery";
1554 suggestAlternative: "shop=wine";
1555 group: tr("deprecated tagging");
1556}
1557*[amenity=youth_centre] {
1558 throwWarning: tr("{0} is deprecated", "{0.tag}");
1559 suggestAlternative: "amenity=community_centre + community_centre=youth_centre";
1560 fixAdd: "amenity=community_centre";
1561 fixAdd: "community_centre=youth_centre";
1562 group: tr("deprecated tagging");
1563}
1564*[building:type][building=yes],
1565*[building:type][!building] {
1566 throwWarning: tr("{0} is deprecated", "{0.key}");
1567 suggestAlternative: "building";
1568 group: tr("deprecated tagging");
1569 fixChangeKey: "building:type => building";
1570 assertMatch: "way building:type=church";
1571 assertMatch: "way building:type=church building=yes";
1572 assertNoMatch: "way building:type=church building=supermarket";
1573}
1574*[building:type][building][building!=yes] {
1575 throwWarning: tr("{0} is deprecated", "{0.key}");
1576 suggestAlternative: "building";
1577 group: tr("deprecated tagging");
1578 assertNoMatch: "way building:type=church";
1579 assertNoMatch: "way building:type=church building=yes";
1580 assertMatch: "way building:type=church building=supermarket";
1581}
1582*[escalator] {
1583 throwWarning: tr("{0} is deprecated", "{0.key}");
1584 suggestAlternative: "highway=steps + conveying=*";
1585 group: tr("deprecated tagging");
1586}
1587*[fenced] {
1588 throwWarning: tr("{0} is deprecated", "{0.key}");
1589 suggestAlternative: "barrier=fence";
1590 group: tr("deprecated tagging");
1591}
1592*[historic_name][!old_name] {
1593 throwWarning: tr("{0} is deprecated", "{0.key}");
1594 suggestAlternative: "old_name";
1595 group: tr("deprecated tagging");
1596 fixChangeKey: "historic_name => old_name";
1597}
1598*[historic_name][old_name] {
1599 throwWarning: tr("{0} is deprecated", "{0.key}");
1600 suggestAlternative: "old_name";
1601 group: tr("deprecated tagging");
1602}
1603*[landuse=field] {
1604 throwWarning: tr("{0} is deprecated", "{0.tag}");
1605 suggestAlternative: "landuse=farmland";
1606 group: tr("deprecated tagging");
1607 fixAdd: "landuse=farmland";
1608}
1609*[leisure=beach] {
1610 throwWarning: tr("{0} is deprecated", "{0.tag}");
1611 suggestAlternative: "natural=beach";
1612 suggestAlternative: "leisure=beach_resort";
1613 group: tr("deprecated tagging");
1614}
1615*[leisure=club] {
1616 throwWarning: tr("{0} is deprecated", "{0.tag}");
1617 suggestAlternative: "club=*";
1618 group: tr("deprecated tagging");
1619}
1620*[leisure=video_arcade] {
1621 throwWarning: tr("{0} is deprecated", "{0.tag}");
1622 suggestAlternative: "leisure=amusement_arcade";
1623 suggestAlternative: "leisure=adult_gaming_centre";
1624 group: tr("deprecated tagging");
1625}
1626*[man_made=jetty] {
1627 throwWarning: tr("{0} is deprecated", "{0.tag}");
1628 suggestAlternative: "man_made=pier";
1629 group: tr("deprecated tagging");
1630 fixAdd: "man_made=pier";
1631}
1632*[man_made=village_pump] {
1633 throwWarning: tr("{0} is deprecated", "{0.tag}");
1634 suggestAlternative: "man_made=water_well";
1635 group: tr("deprecated tagging");
1636 fixAdd: "man_made=water_well";
1637}
1638*[man_made=water_tank] {
1639 throwWarning: tr("{0} is deprecated", "{0.tag}");
1640 suggestAlternative: "man_made=storage_tank + content=water";
1641 group: tr("deprecated tagging");
1642 fixAdd: "man_made=storage_tank";
1643 fixAdd: "content=water";
1644}
1645*[natural=moor] {
1646 throwWarning: tr("{0} is deprecated", "{0.tag}");
1647 suggestAlternative: "natural=heath";
1648 suggestAlternative: "natural=scrub";
1649 suggestAlternative: "natural=grassland";
1650 suggestAlternative: "natural=wetland";
1651 suggestAlternative: "natural=fell";
1652 suggestAlternative: "natural=tundra";
1653 suggestAlternative: "landuse=meadow + meadow=agricultural";
1654 group: tr("deprecated tagging");
1655}
1656*[noexit=no][!fixme] {
1657 throwWarning: tr("{0} is deprecated", "{0.tag}");
1658 suggestAlternative: "fixme=continue";
1659 group: tr("deprecated tagging");
1660 fixAdd: "fixme=continue";
1661 fixRemove: "noexit";
1662}
1663*[noexit=no][fixme] {
1664 throwWarning: tr("{0} is deprecated", "{0.tag}");
1665 suggestAlternative: "fixme=continue";
1666 group: tr("deprecated tagging");
1667}
1668*[shop=dive] {
1669 throwWarning: tr("{0} is deprecated", "{0.tag}");
1670 suggestAlternative: "shop=scuba_diving";
1671 group: tr("deprecated tagging");
1672 fixAdd: "shop=scuba_diving";
1673}
1674*[shop=furnace] {
1675 throwWarning: tr("{0} is deprecated", "{0.tag}");
1676 suggestAlternative: "shop=fireplace";
1677 suggestAlternative: "craft=plumber";
1678 group: tr("deprecated tagging");
1679}
1680*[sport=paragliding] {
1681 throwWarning: tr("{0} is deprecated", "{0.tag}");
1682 suggestAlternative: "sport=free_flying";
1683 group: tr("deprecated tagging");
1684 fixAdd: "sport=free_flying";
1685}
1686*[tourism=bed_and_breakfast] {
1687 throwWarning: tr("{0} is deprecated", "{0.tag}");
1688 suggestAlternative: "tourism=guest_house + guest_house=bed_and_breakfast";
1689 group: tr("deprecated tagging");
1690 fixAdd: "tourism=guest_house";
1691 fixAdd: "guest_house=bed_and_breakfast";
1692}
1693
1694/* #17880 */
1695*[diaper=yes],
1696*[diaper=no] {
1697 throwWarning: tr("{0} is deprecated", "{0.tag}");
1698 suggestAlternative: concat("changing_table=", "{0.value}");
1699 group: tr("deprecated tagging");
1700 fixChangeKey: "diaper => changing_table";
1701 set diaper_checked;
1702}
1703*[diaper][diaper =~ /^[1-9][0-9]*$/] {
1704 throwWarning: tr("{0} is deprecated", "{0.tag}");
1705 suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}");
1706 group: tr("deprecated tagging");
1707 fixChangeKey: "diaper => changing_table:count";
1708 fixAdd: "changing_table=yes";
1709 set diaper_checked;
1710}
1711*[diaper=room] {
1712 throwWarning: tr("{0} is deprecated", "{0.tag}");
1713 suggestAlternative: "changing_table=room";
1714 suggestAlternative: "changing_table=dedicated_room";
1715 group: tr("deprecated tagging");
1716 set diaper_checked;
1717}
1718*[diaper]!.diaper_checked {
1719 throwWarning: tr("{0} is deprecated", "{0.key}");
1720 suggestAlternative: "changing_table";
1721 group: tr("deprecated tagging");
1722}
1723*[diaper:male=yes] {
1724 throwWarning: tr("{0} is deprecated", "{0.tag}");
1725 suggestAlternative: "changing_table:location=male_toilet";
1726 group: tr("deprecated tagging");
1727 fixAdd: "changing_table:location=male_toilet";
1728 fixRemove: "diaper:male";
1729 set diaper___checked;
1730}
1731*[diaper:female=yes] {
1732 throwWarning: tr("{0} is deprecated", "{0.tag}");
1733 suggestAlternative: "changing_table:location=female_toilet";
1734 group: tr("deprecated tagging");
1735 fixAdd: "changing_table:location=female_toilet";
1736 fixRemove: "diaper:female";
1737 set diaper___checked;
1738}
1739*[diaper:unisex=yes] {
1740 throwWarning: tr("{0} is deprecated", "{0.tag}");
1741 suggestAlternative: "changing_table:location=unisex_toilet";
1742 group: tr("deprecated tagging");
1743 fixAdd: "changing_table:location=unisex_toilet";
1744 fixRemove: "diaper:unisex";
1745 set diaper___checked;
1746}
1747*[diaper:wheelchair=yes],
1748*[diaper:wheelchair=no] {
1749 throwWarning: tr("{0} is deprecated", "{0.tag}");
1750 suggestAlternative: concat("changing_table:wheelchair=", "{0.value}");
1751 group: tr("deprecated tagging");
1752 fixChangeKey: "diaper:wheelchair => changing_table:wheelchair";
1753 set diaper___checked;
1754}
1755*[diaper:fee=yes],
1756*[diaper:fee=no] {
1757 throwWarning: tr("{0} is deprecated", "{0.tag}");
1758 suggestAlternative: concat("changing_table:fee=", "{0.value}");
1759 group: tr("deprecated tagging");
1760 fixChangeKey: "diaper:fee => changing_table:fee";
1761 set diaper___checked;
1762}
1763*[/^diaper:/]!.diaper___checked {
1764 throwWarning: tr("{0} is deprecated", "diaper:*");
1765 suggestAlternative: "changing_table:*";
1766 group: tr("deprecated tagging");
1767}
1768*[changing_table][changing_table!~/^(yes|no|limited)$/] {
1769 throwWarning: tr("wrong value: {0}", "{0.tag}");
1770 suggestAlternative: "changing_table=yes";
1771 suggestAlternative: "changing_table=no";
1772 suggestAlternative: "changing_table=limited";
1773}
1774
1775/* #17990 */
1776*[roof:shape=half_hipped] {
1777 throwWarning: tr("{0} is deprecated", "{0.tag}");
1778 suggestAlternative: "roof:shape=half-hipped";
1779 group: tr("deprecated tagging");
1780 fixAdd: "roof:shape=half-hipped";
1781}
1782
1783/* #18003 */
1784*[bridge_name] {
1785 throwWarning: tr("{0} is deprecated", "{0.key}");
1786 suggestAlternative: "bridge:name";
1787 group: tr("deprecated tagging");
1788 fixChangeKey: "bridge_name => bridge:name";
1789}
1790
1791/* #18007 */
1792*[access=public] {
1793 throwWarning: tr("{0} is deprecated", "{0.tag}");
1794 suggestAlternative: "access=yes";
1795 group: tr("deprecated tagging");
1796 fixAdd: "access=yes";
1797}
1798
1799/* #17330 */
1800*[crossing=island] {
1801 throwWarning: tr("{0} is deprecated", "{0.tag}");
1802 suggestAlternative: "crossing:island=yes";
1803 group: tr("deprecated tagging");
1804 fixRemove: "crossing";
1805 fixAdd: "crossing:island=yes";
1806}
1807
1808/* #18152 */
1809*[recycling:metal] {
1810 throwWarning: tr("{0} is deprecated", "{0.key}");
1811 suggestAlternative: "recycling:scrap_metal";
1812 group: tr("deprecated tagging");
1813 fixChangeKey: "recycling:metal => recycling:scrap_metal";
1814}
1815
1816/* #18154 */
1817*[shop=dog_grooming] {
1818 throwWarning: tr("{0} is deprecated", "{0.tag}");
1819 suggestAlternative: "shop=pet_grooming";
1820 fixAdd: "shop=pet_grooming";
1821 group: tr("deprecated tagging");
1822}
1823
1824/* #17984 */
1825*[tower:type=anchor],
1826*[tower:type=suspension] {
1827 throwWarning: tr("{0} is deprecated", "{0.tag}");
1828 suggestAlternative: concat("line_attachment=", "{0.value}");
1829 fixChangeKey: "tower:type => line_attachment";
1830 group: tr("deprecated tagging");
1831}
1832node[pole:type=anchor],
1833node[pole:type=suspension] {
1834 throwWarning: tr("{0} is deprecated", "{0.tag}");
1835 suggestAlternative: concat("line_attachment=", "{0.value}");
1836 fixChangeKey: "pole:type => line_attachment";
1837 group: tr("deprecated tagging");
1838}
1839
1840/* #18267 */
1841node[man_made=pipeline_marker],
1842node[pipeline=marker],
1843node[power=marker],
1844node[cable=marker] {
1845 throwWarning: tr("{0} is deprecated", "{0.tag}");
1846 suggestAlternative: "marker=* + utility=*";
1847 group: tr("deprecated tagging");
1848}
1849
1850/* #17643 */
1851way[barrier=embankment] {
1852 throwWarning: tr("{0} is deprecated", "{0.tag}");
1853 suggestAlternative: "man_made=embankment";
1854 suggestAlternative: "embankment=yes";
1855 group: tr("deprecated tagging");
1856}
1857
1858/* #18469 */
1859way[landuse=churchyard] {
1860 throwWarning: tr("{0} is deprecated", "{0.tag}");
1861 suggestAlternative: "landuse=religious";
1862 suggestAlternative: "amenity=graveyard";
1863 group: tr("deprecated tagging");
1864}
1865
1866*[sloped_curb=yes][!kerb],
1867*[sloped_curb=both][!kerb] {
1868 throwWarning: tr("{0} is deprecated", "{0.tag}");
1869 suggestAlternative: "kerb=lowered";
1870 group: tr("deprecated tagging");
1871 fixRemove: "sloped_curb";
1872 fixAdd: "kerb=lowered";
1873}
1874*[sloped_curb=no][!kerb] {
1875 throwWarning: tr("{0} is deprecated", "{0.tag}");
1876 suggestAlternative: "kerb=yes";
1877 group: tr("deprecated tagging");
1878 fixRemove: "sloped_curb";
1879 fixAdd: "kerb=yes";
1880}
1881*[sloped_curb][sloped_curb !~ /^(yes|both|no)$/][!kerb],
1882*[sloped_curb][kerb] {
1883 throwWarning: tr("{0} is deprecated", "{0.key}");
1884 suggestAlternative: "kerb=*";
1885 group: tr("deprecated tagging");
1886}
1887
1888/* #18571 */
1889*[unnamed=yes] {
1890 throwWarning: tr("{0} is deprecated", "{0.tag}");
1891 suggestAlternative: "noname=yes";
1892 fixChangeKey: "unnamed => noname";
1893 group: tr("deprecated tagging");
1894}
1895
1896node[segregated][segregated!=yes][segregated!=no],
1897way[segregated ][segregated!=yes][segregated!=no] {
1898 throwWarning: tr("unusual value of {0}", "{0.key}");
1899}
1900
1901/* #18603 */
1902way[bicycle:oneway] {
1903 throwWarning: tr("{0} is deprecated", "{0.key}");
1904 suggestAlternative: "oneway:bicycle";
1905 fixChangeKey: "bicycle:oneway => oneway:bicycle";
1906 group: tr("deprecated tagging");
1907}
1908
1909/* #18605 */
1910*[building:height] {
1911 throwWarning: tr("{0} is deprecated", "{0.key}");
1912 suggestAlternative: "height";
1913 fixChangeKey: "building:height => height";
1914 group: tr("deprecated tagging");
1915}
1916*[building:min_height] {
1917 throwWarning: tr("{0} is deprecated", "{0.key}");
1918 suggestAlternative: "min_height";
1919 fixChangeKey: "building:min_height => min_height";
1920 group: tr("deprecated tagging");
1921}
1922
1923/* #11232 */
1924way[highway][construction=yes][highway!=construction] {
1925 throwWarning: tr("{0} is deprecated", "{1.tag}");
1926 suggestAlternative: "construction=minor";
1927 suggestAlternative: concat("highway=construction + construction=", "{0.value}");
1928 group: tr("deprecated tagging");
1929}
Note: See TracBrowser for help on using the repository browser.