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

Last change on this file since 15940 was 15930, checked in by Klumbumbus, 5 years ago

fix #18767 - Add navigationaid=als|papi|vasi combo to aeroway=navigationaid preset, add own icons for papi and vasi, icons self created, PD and CC0 licensed (inspired by https://en.wikipedia.org/wiki/File:Comparison_visual_landing_systems.svg), warn about navigationaid=approach_light and navigationaid="ALS (Approach lighting system)"

  • Property svn:eol-style set to native
File size: 59.6 KB
RevLine 
[6506]1*[barrier=wire_fence] {
[9551]2 throwWarning: tr("{0} is deprecated", "{0.tag}");
[11138]3 group: tr("deprecated tagging");
[10538]4 suggestAlternative: "barrier=fence + fence_type=chain_link";
[6506]5 fixAdd: "barrier=fence";
6 fixAdd: "fence_type=chain_link";
[6512]7 assertMatch: "way barrier=wire_fence";
8 assertNoMatch: "way barrier=fence";
[6506]9}
10
11*[barrier=wood_fence] {
[9551]12 throwWarning: tr("{0} is deprecated", "{0.tag}");
13 suggestAlternative: "barrier=fence + fence_type=wood";
[11138]14 group: tr("deprecated tagging");
[6506]15 fixAdd: "barrier=fence";
16 fixAdd: "fence_type=wood";
17}
18
[10916]19node[highway=ford] {
[9551]20 throwWarning: tr("{0} is deprecated", "{0.tag}");
21 suggestAlternative: "ford=yes";
[11138]22 group: tr("deprecated tagging");
[6506]23 fixRemove: "highway";
24 fixAdd: "ford=yes";
25}
[10916]26way[highway=ford] {
27 throwWarning: tr("{0} is deprecated", "{0.tag}");
28 suggestAlternative: "highway=* + ford=yes";
[11138]29 group: tr("deprecated tagging");
[10916]30}
[6506]31
[11985]32way[class] {
[6506]33 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[6689]34 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]35 suggestAlternative: "highway";
[11138]36 group: tr("deprecated tagging");
[6506]37}
38
39*[highway=stile] {
40 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]41 throwWarning: tr("{0} is deprecated", "{0.tag}");
42 suggestAlternative: "barrier=stile";
[11138]43 group: tr("deprecated tagging");
[6506]44 fixRemove: "highway";
45 fixAdd: "barrier=stile";
46}
47
48*[highway=incline] {
49 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]50 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]51 suggestAlternative: "incline";
[11138]52 group: tr("deprecated tagging");
[6506]53}
54
55*[highway=incline_steep] {
56 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]57 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]58 suggestAlternative: "incline";
[11138]59 group: tr("deprecated tagging");
[6506]60}
61
62*[highway=unsurfaced] {
63 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]64 throwWarning: tr("{0} is deprecated", "{0.tag}");
65 suggestAlternative: "highway=* + surface=unpaved";
[11138]66 group: tr("deprecated tagging");
[6506]67 fixAdd: "highway=road";
[8161]68 fixAdd: "surface=unpaved";
[6506]69}
70
71*[landuse=wood] {
72 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]73 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]74 suggestAlternative: "landuse=forest";
75 suggestAlternative: "natural=wood";
[11138]76 group: tr("deprecated tagging");
[6506]77}
78
79*[natural=marsh] {
80 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]81 throwWarning: tr("{0} is deprecated", "{0.tag}");
82 suggestAlternative: "natural=wetland + wetland=marsh";
[11138]83 group: tr("deprecated tagging");
[6506]84 fixAdd: "natural=wetland";
85 fixAdd: "wetland=marsh";
86}
87
88*[highway=byway] {
89 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[9551]90 throwWarning: tr("{0} is deprecated", "{0.tag}");
[11138]91 group: tr("deprecated tagging");
[6506]92}
93
94*[power_source] {
95 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[6689]96 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]97 suggestAlternative: "generator:source";
[11138]98 group: tr("deprecated tagging");
[6506]99}
100
101*[power_rating] {
102 /* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[6689]103 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]104 suggestAlternative: "generator:output";
[11138]105 group: tr("deprecated tagging");
[6506]106}
107
[7600]108*[shop=antique] {
[9551]109 throwWarning: tr("{0} is deprecated", "{0.tag}");
110 suggestAlternative: "shop=antiques";
[11138]111 group: tr("deprecated tagging");
[7600]112 fixAdd: "shop=antiques";
113}
114
115*[shop=bags] {
[9551]116 throwWarning: tr("{0} is deprecated", "{0.tag}");
117 suggestAlternative: "shop=bag";
[11138]118 group: tr("deprecated tagging");
[7600]119 fixAdd: "shop=bag";
120}
121
[14940]122/* #17527 */
[14935]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
[6506]130*[shop=organic] {
131 /* from http://wiki.openstreetmap.org/wiki/Tag:shop=organic */
[9551]132 throwWarning: tr("{0} is deprecated", "{0.tag}");
[10329]133 suggestAlternative: "shop=* + organic=yes";
134 suggestAlternative: "shop=* + organic=only";
[11138]135 group: tr("deprecated tagging");
[6506]136}
[7600]137
138*[shop=pets] {
[9551]139 throwWarning: tr("{0} is deprecated", "{0.tag}");
140 suggestAlternative: "shop=pet";
[11138]141 group: tr("deprecated tagging");
[7600]142 fixAdd: "shop=pet";
143}
144
145*[shop=pharmacy] {
[9551]146 throwWarning: tr("{0} is deprecated", "{0.tag}");
147 suggestAlternative: "amenity=pharmacy";
[11138]148 group: tr("deprecated tagging");
[7600]149 fixChangeKey: "shop => amenity";
150}
151
[6506]152*[bicycle_parking=sheffield] {
153 /* from http://wiki.openstreetmap.org/wiki/Key:bicycle_parking */
[9551]154 throwWarning: tr("{0} is deprecated", "{0.tag}");
155 suggestAlternative: "bicycle_parking=stands";
[11138]156 group: tr("deprecated tagging");
[6506]157 fixAdd: "bicycle_parking=stands";
158}
159
160*[amenity=emergency_phone] {
161 /* http://wiki.openstreetmap.org/wiki/Tag:emergency=phone */
[9551]162 throwWarning: tr("{0} is deprecated", "{0.tag}");
163 suggestAlternative: "emergency=phone";
[11138]164 group: tr("deprecated tagging");
[6506]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 */
[9551]171 throwWarning: tr("{0} is deprecated", "{0.tag}");
172 suggestAlternative: "sport=gaelic_games";
[11138]173 group: tr("deprecated tagging");
[6506]174 fixAdd: "sport=gaelic_games";
175}
176
177*[power=station] {
178 /* see #8847 / #8961 - http://wiki.openstreetmap.org/wiki/Tag:power=station */
[9551]179 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]180 suggestAlternative: "power=plant";
[6688]181 suggestAlternative: "power=substation";
[11138]182 group: tr("deprecated tagging");
[6506]183}
[6689]184
185*[power=sub_station] {
[9551]186 throwWarning: tr("{0} is deprecated", "{0.tag}");
187 suggestAlternative: "power=substation";
[11138]188 group: tr("deprecated tagging");
[6689]189 fixAdd: "power=substation";
190}
[15372]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
[15373]199*[generator:location] {
[15372]200 throwWarning: tr("{0} is deprecated", "{0.key}");
201 suggestAlternative: "location";
202 group: tr("deprecated tagging");
203 fixChangeKey: "generator:location => location";
204}
205
[6506]206*[generator:method=dam] {
[9551]207 throwWarning: tr("{0} is deprecated", "{0.tag}");
208 suggestAlternative: "generator:method=water-storage";
[11138]209 group: tr("deprecated tagging");
[6506]210 fixAdd: "generator:method=water-storage";
211}
212
213*[generator:method=pumped-storage] {
[9551]214 throwWarning: tr("{0} is deprecated", "{0.tag}");
215 suggestAlternative: "generator:method=water-pumped-storage";
[11138]216 group: tr("deprecated tagging");
[6506]217 fixAdd: "generator:method=water-pumped-storage";
218}
219
220*[generator:method=pumping] {
[9551]221 throwWarning: tr("{0} is deprecated", "{0.tag}");
222 suggestAlternative: "generator:method=water-pumped-storage";
[11138]223 group: tr("deprecated tagging");
[6506]224 fixAdd: "generator:method=water-pumped-storage";
225}
226
227*[fence_type=chain] {
228 /* see #8962 - http://wiki.openstreetmap.org/wiki/Key:fence_type */
[9551]229 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]230 suggestAlternative: "barrier=chain";
[9552]231 suggestAlternative: "barrier=fence + fence_type=chain_link";
[11138]232 group: tr("deprecated tagging");
[6506]233}
234
235*[building=entrance] {
236 /* see #9000 - http://wiki.openstreetmap.org/wiki/Key:entrance */
[9551]237 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]238 suggestAlternative: "entrance";
[11138]239 group: tr("deprecated tagging");
[6506]240}
241
242*[board_type=board] {
243 /* see #9213 - Useless tag proposed in internal preset for years */
[9551]244 throwWarning: tr("{0} is deprecated", "{0.tag}");
[11138]245 group: tr("deprecated tagging");
[6506]246 fixRemove: "board_type";
247}
248
249*[man_made=measurement_station] {
250 /* see #8434 - http://wiki.openstreetmap.org/wiki/Proposed_features/monitoring_station */
[9551]251 throwWarning: tr("{0} is deprecated", "{0.tag}");
252 suggestAlternative: "man_made=monitoring_station";
[11138]253 group: tr("deprecated tagging");
[6506]254 fixAdd: "man_made=monitoring_station";
255}
256
257*[measurement=water_level] {
[9551]258 throwWarning: tr("{0} is deprecated", "{0.tag}");
259 suggestAlternative: "monitoring:water_level=yes";
[11138]260 group: tr("deprecated tagging");
[6506]261 fixRemove: "measurement";
262 fixAdd: "monitoring:water_level=yes";
263}
264
265*[measurement=weather] {
[9551]266 throwWarning: tr("{0} is deprecated", "{0.tag}");
267 suggestAlternative: "monitoring:weather=yes";
[11138]268 group: tr("deprecated tagging");
[6506]269 fixRemove: "measurement";
270 fixAdd: "monitoring:weather=yes";
271}
272
273*[measurement=seismic] {
[9551]274 throwWarning: tr("{0} is deprecated", "{0.tag}");
275 suggestAlternative: "monitoring:seismic_activity=yes";
[11138]276 group: tr("deprecated tagging");
[6506]277 fixRemove: "measurement";
278 fixAdd: "monitoring:seismic_activity=yes";
279}
280
281*[monitoring:river_level] {
[6689]282 throwWarning: tr("{0} is deprecated", "{0.key}");
[9551]283 suggestAlternative: "monitoring:water_level";
[11138]284 group: tr("deprecated tagging");
[6506]285 fixChangeKey: "monitoring:river_level => monitoring:water_level";
286}
[6605]287
[7449]288*[stay] {
289 throwWarning: tr("{0} is deprecated", "{0.key}");
[9551]290 suggestAlternative: "maxstay";
[11138]291 group: tr("deprecated tagging");
[7449]292 fixChangeKey: "stay => maxstay";
293}
294
[6658]295*[emergency=aed] {
296 /* see #9554 - http://wiki.openstreetmap.org/wiki/Proposed_features/automated_external_defibrillator */
[9551]297 throwWarning: tr("{0} is deprecated", "{0.tag}");
298 suggestAlternative: "emergency=defibrillator";
[11138]299 group: tr("deprecated tagging");
[6658]300 fixAdd: "emergency=defibrillator";
301}
302
[6605]303/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
[6645]304*[day_on][!restriction],
305*[day_off][!restriction],
306*[date_on][!restriction],
307*[date_off][!restriction],
308*[hour_on][!restriction],
309*[hour_off][!restriction] {
[6605]310 throwWarning: tr("{0} is deprecated", "{0.key}");
311 suggestAlternative: "*:conditional";
[11138]312 group: tr("deprecated tagging");
[6605]313 assertMatch: "node day_on=0-12";
314}
[7105]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}
[7106]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}
[7197]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
[9088]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
[10004]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
[10860]345/* see #10107, #10108, #10929, #13391 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
[7222]346*[type=broad_leaved],
347*[type=broad_leafed] {
[9551]348 throwWarning: tr("{0} is deprecated", "{0.tag}");
349 suggestAlternative: "leaf_type=broadleaved";
[11138]350 group: tr("deprecated tagging");
[7222]351 fixRemove: "{0.key}";
352 fixAdd: "leaf_type=broadleaved";
[9557]353}
[7222]354
[7924]355*[wood=coniferous],
356*[type=coniferous],
357*[type=conifer] {
[9551]358 throwWarning: tr("{0} is deprecated", "{0.tag}");
359 suggestAlternative: "leaf_type=needleleaved";
[11138]360 group: tr("deprecated tagging");
[7924]361 fixRemove: "{0.key}";
[7222]362 fixAdd: "leaf_type=needleleaved";
363}
364
365*[wood=mixed] {
[9551]366 throwWarning: tr("{0} is deprecated", "{0.tag}");
367 suggestAlternative: "leaf_type=mixed";
[11138]368 group: tr("deprecated tagging");
[7222]369 fixRemove: "wood";
370 fixAdd: "leaf_type=mixed";
371}
372
373*[wood=evergreen],
374*[type=evergreen] {
[9551]375 throwWarning: tr("{0} is deprecated", "{0.tag}");
376 suggestAlternative: "leaf_cycle=evergreen";
[11138]377 group: tr("deprecated tagging");
[7222]378 fixRemove: "{0.key}";
379 fixAdd: "leaf_cycle=evergreen";
380}
381
382*[type=deciduous],
383*[type=deciduos] {
[9551]384 throwWarning: tr("{0} is deprecated", "{0.tag}");
385 suggestAlternative: "leaf_cycle=deciduous";
[11138]386 group: tr("deprecated tagging");
[7222]387 fixRemove: "type";
388 fixAdd: "leaf_cycle=deciduous";
389}
[7391]390
[10860]391*[wood=deciduous] {
392 throwWarning: tr("{0} is deprecated", "{0.tag}");
393 suggestAlternative: "leaf_type + leaf_cycle";
[11138]394 group: tr("deprecated tagging");
[10860]395}
396
[10798]397node[type=palm],
398way[type=palm] {
399 throwWarning: tr("{0} is deprecated", "{0.tag}");
400 suggestAlternative: "leaf_type";
401 suggestAlternative: "trees";
402 suggestAlternative: "species";
[11138]403 group: tr("deprecated tagging");
[10798]404}
405
[7391]406*[natural=land] {
[9551]407 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
[11138]408 group: tr("deprecated tagging");
[7391]409 assertMatch: "way natural=land";
410}
[7490]411
412/* see #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
413*[bridge=causeway] {
[9551]414 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7490]415 suggestAlternative: "ford=yes";
416 suggestAlternative: "bridge=low_water_crossing";
417 suggestAlternative: "embankment=yes";
[11138]418 group: tr("deprecated tagging");
[7490]419}
420*[bridge=swing] {
[9551]421 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7490]422 suggestAlternative: "bridge:movable=swing";
423 suggestAlternative: "bridge:structure=simple-suspension";
[11138]424 group: tr("deprecated tagging");
[7490]425}
426*[bridge=suspension] {
[9551]427 throwWarning: tr("{0} is deprecated", "{0.tag}");
428 suggestAlternative: "bridge=yes + bridge:structure=suspension";
[11138]429 group: tr("deprecated tagging");
[7490]430 fixAdd: "bridge=yes";
431 fixAdd: "bridge:structure=suspension";
432}
[15262]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}
[7599]440
[7620]441/* See #10530 - Incorrect tag proposed in internal preset for years */
[7623]442*[fee=interval],
443*[lit=interval],
444*[supervised=interval] {
[7647]445 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
[11138]446 group: tr("deprecated tagging");
[7620]447}
448
[7599]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}");
[11138]452 group: tr("deprecated tagging");
[7599]453 fixDeleteObject: this;
454}
[7630]455
456/* see #8281 */
457*[sport=diving] {
[7647]458 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7630]459 suggestAlternative: "sport=scuba_diving";
460 suggestAlternative: "sport=cliff_diving";
[11138]461 group: tr("deprecated tagging");
[7635]462}
463
464/* see #8281 */
465*[parking=park_and_ride] {
[7647]466 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]467 suggestAlternative: "amenity=parking + park_ride=yes";
[11138]468 group: tr("deprecated tagging");
[7635]469 fixRemove: "parking";
470 fixAdd: "amenity=parking";
471 fixAdd: "park_ride=yes";
[7647]472}
473
[15530]474/* see #18334, #17950, #10661, #10837, #11737, #12771 */
475*[manhole=plain],
476*[manhole=unknown],
[15532]477*[manhole=yes],
[15307]478*[police=yes],
[9506]479*[traffic_calming=yes],
[8699]480*[access=restricted],
[7818]481*[barrier=yes],
[8630]482*[aerialway=yes][!public_transport],
[7818]483*[amenity=yes],
[10272]484*[leisure=yes],
[9435]485*[shop="*"],
[14805]486*[shop=yes][amenity!=fuel],
[9681]487*[craft=yes],
[10229]488*[service=yes],
[7818]489*[place=yes] {
[7647]490 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
[7697]491}
492
[7818]493/* see #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
[7697]494*[place_name][!name] {
495 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
496 fixChangeKey: "place_name => name";
497}
[7818]498*[place][place_name = *name] {
499 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
500 fixRemove: "{1.key}";
501}
[7707]502
503way[sidewalk=yes] {
504 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by ''left'', ''right'' or ''both''.", "{0.key}", "{0.value}");
[7737]505}
506
[9551]507*[waterway=water_point] {
508 throwWarning: tr("{0} is deprecated", "{0.tag}");
509 suggestAlternative: "amenity=water_point";
[11138]510 group: tr("deprecated tagging");
[9551]511 fixChangeKey: "waterway => amenity";
512}
[7737]513*[waterway=waste_disposal] {
514 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]515 suggestAlternative: "amenity=waste_disposal";
[11138]516 group: tr("deprecated tagging");
[7737]517 fixChangeKey: "waterway => amenity";
518}
519*[waterway=mooring] {
520 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]521 suggestAlternative: "mooring=yes";
[11138]522 group: tr("deprecated tagging");
[7737]523 fixRemove: "waterway";
524 fixAdd: "mooring=yes";
[7818]525}
526
527/* see #10837 */
[7969]528*[building][levels],
529*[building:part=yes][levels] {
[7818]530 throwWarning: tr("{0} is deprecated", "{1.key}");
531 suggestAlternative: "building:levels";
[11138]532 group: tr("deprecated tagging");
[7818]533 fixChangeKey: "levels => building:levels";
[7973]534}
535
536/* see #10691 */
537*[protected_class] {
538 throwWarning: tr("{0} is deprecated", "{0.key}");
539 suggestAlternative: "protect_class";
[11138]540 group: tr("deprecated tagging");
[7973]541 fixChangeKey: "protected_class => protect_class";
[8008]542}
543
544/* see #11070 */
[15648]545*[kerb=unknown],
[8008]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] {
[8023]555 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
[8121]556}
557
558/* unclear definition, see #11183 */
[11159]559*[sport=skiing] {
[8121]560 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
[11159]561 suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
562 group: tr("deprecated tagging");
[8135]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";
[11138]570 group: tr("deprecated tagging");
[8137]571}
572
[13378]573/* see #10346, #15667 (waterway has its own rules in unnecessary.mapcss) */
574way[oneway=1][!waterway] {
[8137]575 throwWarning: tr("{0} is deprecated", "{0.tag}");
576 suggestAlternative: "oneway=yes";
[11138]577 group: tr("deprecated tagging");
[8137]578 fixAdd: "oneway=yes";
[8165]579}
580
[13378]581/* see #11329, #15667 */
582way[oneway=-1][!waterway] {
[8183]583 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
584}
585
[8165]586*[drinkable] {
587 throwWarning: tr("{0} is deprecated", "{0.key}");
588 suggestAlternative: "drinking_water";
[11138]589 group: tr("deprecated tagging");
[8184]590}
591
[13788]592/* see #10329, #15877 */
593 /* simple key change */
[8184]594*[color][!colour] {
595 throwWarning: tr("{0} is deprecated", "{0.key}");
596 suggestAlternative: "colour";
[11138]597 group: tr("deprecated tagging");
[8184]598 fixChangeKey: "color => colour";
[13788]599 assertMatch: "way color=red";
600 assertNoMatch: "way color=red colour=red";
[8184]601}
[13788]602area[building:color][!building:colour] {
603 throwWarning: tr("{0} is deprecated", "{0.key}");
604 suggestAlternative: "building:colour";
[11138]605 group: tr("deprecated tagging");
[13788]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");
[8184]623 set samecolor;
624 fixRemove: "color";
[11049]625 assertMatch: "way color=red colour=red";
626 assertNoMatch: "way color=red colour=green";
[8184]627}
[13788]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 */
[8184]647*[color][colour]!.samecolor {
[13788]648 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
649 suggestAlternative: "colour";
[11138]650 group: tr("deprecated tagging");
[11049]651 assertNoMatch: "way color=red colour=red";
652 assertMatch: "way color=red colour=green";
[8185]653}
[13788]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}
[15496]668/* further more universal checks, no autofix */
669/* gpxd:color has another warning in unnecessary.mapcss */
670*[/:color/][!building:color][!roof:color][!gpxd:color] {
[8204]671 throwWarning: tr("{0} is deprecated", "{0.key}");
672 suggestAlternative: ":colour";
[11138]673 group: tr("deprecated tagging");
[11049]674 assertNoMatch: "way color=red";
[13788]675 assertNoMatch: "way roof:color=grey";
676 assertMatch: "way cycleway:surface:color=grey";
[8204]677}
[13788]678*[/color:/] {
[8204]679 throwWarning: tr("{0} is deprecated", "{0.key}");
680 suggestAlternative: "colour:";
[11138]681 group: tr("deprecated tagging");
[13788]682 assertNoMatch: "way color=red";
683 assertMatch: "way color:back=grey";
[8204]684}
[8185]685
686/* see #11234 */
[8544]687*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
[11133]688 throwWarning: tr("{0}", "{0.key}");
689 group: tr("key with uncommon character");
[8192]690}
691
[15828]692/* see #11330, #18642 */
[8192]693*[/^.$/],
[8204]694node[/^..$/],
[15828]695way[/^..$/][route=ferry][!to],
696way[/^..$/][route!=ferry],
[8204]697relation[/^..$/][!to] {
[8192]698 throwWarning: tr("uncommon short key");
[11049]699 assertNoMatch: "relation to=Berlin";
700 assertMatch: "relation fo=bar";
701 assertMatch: "way to=bar";
[15828]702 assertNoMatch: "way to=Zuidschermer;Akersloot route=ferry";
[11049]703 assertMatch: "node fo=bar";
704 assertMatch: "node f=b";
[8204]705}
706
[8383]707/* see #11439 */
708*[sport=hockey] {
[11138]709 throwWarning: tr("{0} is deprecated", "{0.tag}");
[8383]710 suggestAlternative: "sport=field_hockey";
711 suggestAlternative: "sport=ice_hockey";
[11138]712 group: tr("deprecated tagging");
[8428]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";
[11138]721 group: tr("deprecated tagging");
[8428]722 fixAdd: "sport=billiards";
[8546]723}
724
[14392]725/* see #11499, #16928 */
[8546]726*[payment:credit_cards=yes] {
[14392]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");
[8546]728}
729*[payment:debit_cards=yes] {
[14392]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");
[8546]731}
732*[payment:electronic_purses=yes] {
[14392]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");
[8546]734}
735*[payment:cryptocurrencies=yes] {
[14392]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");
[8725]737}
738
[13786]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
[8725]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";
[11138]755 group: tr("deprecated tagging");
[8725]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";
[11138]763 group: tr("deprecated tagging");
[8725]764 fixChangeKey: "pk => distance";
[8730]765}
766
767*[postcode] {
768 throwWarning: tr("{0} is deprecated", "{0.key}");
769 suggestAlternative: "addr:postcode";
[11138]770 group: tr("deprecated tagging");
[8730]771 suggestAlternative: "postal_code";
[9031]772}
773
774*[water=intermittent] {
775 throwWarning: tr("{0} is deprecated", "{0.tag}");
776 suggestAlternative: "intermittent=yes";
[11138]777 group: tr("deprecated tagging");
[9031]778 fixRemove: "water";
779 fixAdd: "intermittent=yes";
[9037]780}
781
[11409]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] {
[9037]786 throwWarning: tr("{0} is deprecated", "{0.key}");
787 suggestAlternative: "substance";
[11138]788 group: tr("deprecated tagging");
[9037]789 fixChangeKey: "type => substance";
790}
[9040]791
792*[landuse=farm] {
793 throwWarning: tr("{0} is deprecated", "{0.tag}");
794 suggestAlternative: "landuse=farmland";
[9045]795 suggestAlternative: "landuse=farmyard";
[11138]796 group: tr("deprecated tagging");
[9040]797}
[9093]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}";
[11138]803 group: tr("deprecated tagging");
[9093]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}";
[11138]809 group: tr("deprecated tagging");
[9156]810}
[9160]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";
[11138]815 group: tr("deprecated tagging");
[9160]816 fixAdd: "boundary=protected_area";
817 fixRemove: "landuse";
818}
[9156]819
820/* #12205 */
821*[amenity=kiosk] {
822 throwWarning: tr("{0} is deprecated", "{0.tag}");
823 suggestAlternative: "shop=kiosk";
[11138]824 group: tr("deprecated tagging");
[9156]825 fixChangeKey: "amenity => shop";
826}
827*[amenity=shop] {
828 throwWarning: tr("{0} is deprecated", "{0.tag}");
829 suggestAlternative: "shop=*";
[11138]830 group: tr("deprecated tagging");
[9156]831}
832*[shop=fishmonger] {
833 throwWarning: tr("{0} is deprecated", "{0.tag}");
834 suggestAlternative: "shop=seafood";
[11138]835 group: tr("deprecated tagging");
[9156]836 fixAdd: "shop=seafood";
837}
838*[shop=fish] {
839 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9435]840 suggestAlternative: "shop=seafood";
841 suggestAlternative: "shop=pet";
842 suggestAlternative: "shop=fishing";
[11138]843 group: tr("deprecated tagging");
[9156]844}
845*[shop=betting] {
846 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9163]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";
[11138]853 group: tr("deprecated tagging");
[9156]854}
855*[shop=perfume] {
856 throwWarning: tr("{0} is deprecated", "{0.tag}");
857 suggestAlternative: "shop=perfumery";
[11138]858 group: tr("deprecated tagging");
[9156]859 fixAdd: "shop=perfumery";
860}
861*[amenity=exercise_point] {
862 throwWarning: tr("{0} is deprecated", "{0.tag}");
863 suggestAlternative: "leisure=fitness_station";
[11138]864 group: tr("deprecated tagging");
[9156]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";
[11138]871 group: tr("deprecated tagging");
[9156]872 fixAdd: "shop=car_parts";
873}
874*[amenity=car_repair] {
875 throwWarning: tr("{0} is deprecated", "{0.tag}");
876 suggestAlternative: "shop=car_repair";
[11138]877 group: tr("deprecated tagging");
[9156]878 fixChangeKey: "amenity => shop";
879}
[9363]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";
[11138]888 group: tr("deprecated tagging");
[9363]889 fixChangeKey: "type => studio";
[9434]890}
891
[12930]892/* #11507, #12297, #15409 */
[9434]893*[power=cable_distribution_cabinet] {
894 throwWarning: tr("{0} is deprecated", "{0.tag}");
[12930]895 suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
[11138]896 group: tr("deprecated tagging");
[9434]897 fixAdd: "man_made=street_cabinet";
898 fixRemove: "power";
[9435]899}
900
[13982]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
[9435]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";
[11138]915 group: tr("deprecated tagging");
[9435]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";
[11138]921 group: tr("deprecated tagging");
[9435]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";
[11138]929 group: tr("deprecated tagging");
[9435]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";
[11138]936 group: tr("deprecated tagging");
[9435]937 fixAdd: "amenity=community_centre";
938}
939*[man_made=cut_line] {
940 throwWarning: tr("{0} is deprecated", "{0.tag}");
941 suggestAlternative: "man_made=cutline";
[11138]942 group: tr("deprecated tagging");
[9435]943 fixAdd: "man_made=cutline";
944}
945*[amenity=park] {
946 throwWarning: tr("{0} is deprecated", "{0.tag}");
947 suggestAlternative: "leisure=park";
[11138]948 group: tr("deprecated tagging");
[9435]949 fixAdd: "leisure=park";
950 fixRemove: "amenity";
951}
952*[amenity=hotel] {
953 throwWarning: tr("{0} is deprecated", "{0.tag}");
954 suggestAlternative: "tourism=hotel";
[11138]955 group: tr("deprecated tagging");
[9435]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";
[11138]963 group: tr("deprecated tagging");
[9435]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";
[11138]972 group: tr("deprecated tagging");
[9435]973}
974*[shop=gallery] {
975 throwWarning: tr("{0} is deprecated", "{0.tag}");
976 suggestAlternative: "shop=art";
[11138]977 group: tr("deprecated tagging");
[9435]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";
[11138]988 group: tr("deprecated tagging");
[9435]989}
[15262]990*[office=real_estate],
[9435]991*[office=real_estate_agent] {
992 throwWarning: tr("{0} is deprecated", "{0.tag}");
[15262]993 suggestAlternative: "office=estate_agent";
[11138]994 group: tr("deprecated tagging");
[15262]995 fixAdd: "office=estate_agent";
[9435]996}
997*[shop=glass] {
998 throwWarning: tr("{0} is deprecated", "{0.tag}");
999 suggestAlternative: "shop=glaziery";
1000 suggestAlternative: "craft=glaziery";
[11138]1001 group: tr("deprecated tagging");
[9435]1002}
1003*[amenity=proposed],
1004*[amenity=proposed],
1005*[amenity=disused],
1006*[shop=disused],
[15262]1007*[highway=abandoned],
[9435]1008*[historic=abandoned] {
1009 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
[11138]1010 group: tr("deprecated tagging");
[9593]1011}
1012
[14815]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 */
[14804]1022*[amenity=sauna] {
[9593]1023 throwWarning: tr("{0} is deprecated", "{0.tag}");
[14815]1024 suggestAlternative: "leisure=sauna";
[11138]1025 group: tr("deprecated tagging");
[9593]1026 fixChangeKey: "amenity => leisure";
[9747]1027}
1028
[14957]1029/* #12494, #17554 */
[9836]1030*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
[14957]1031 throwWarning: tr("{0}", "{0.key}");
[11146]1032 group: tr("questionable key (ending with a number)");
[11138]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}
[9835]1038
1039/* #12500 */
1040*[sport=skating] {
1041 throwWarning: tr("{0} is deprecated", "{0.tag}");
1042 suggestAlternative: "sport=ice_skating";
1043 suggestAlternative: "sport=roller_skating";
[11138]1044 group: tr("deprecated tagging");
[10027]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";
[11138]1051 group: tr("deprecated tagging");
[10027]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";
[11138]1057 group: tr("deprecated tagging");
[10095]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: "...";
[11138]1071 group: tr("deprecated tagging");
[10100]1072}
1073
[15648]1074/* #18517 */
[15634]1075*[office=administrative] {
1076 throwWarning: tr("{0} is deprecated", "{0.tag}");
[15648]1077 suggestAlternative: "office=government";
[15634]1078 group: tr("deprecated tagging");
[15648]1079 fixAdd: "office=government";
[15634]1080}
1081
[10100]1082/* #12708 */
1083*[vending=news_papers] {
1084 throwWarning: tr("{0} is deprecated", "{0.tag}");
1085 suggestAlternative: "vending=newspapers";
[11138]1086 group: tr("deprecated tagging");
[10100]1087 fixAdd: "vending=newspapers";
[10229]1088}
1089
1090/* #12771 */
1091*[service=drive_through] {
1092 throwWarning: tr("{0} is deprecated", "{0.tag}");
1093 suggestAlternative: "service=drive-through";
[11138]1094 group: tr("deprecated tagging");
[10229]1095 fixAdd: "service=drive-through";
[10230]1096}
1097
1098/* #12771 */
[15548]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 */
[10230]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}");
[10451]1103}
1104
1105/* #13008 */
1106*[name:botanical] {
1107 throwWarning: tr("{0} is deprecated", "{0.key}");
1108 suggestAlternative: "species";
[11138]1109 group: tr("deprecated tagging");
[10511]1110}
1111
[13049]1112/* #11344, #13101, #15480 */
1113node[pole=air_to_ground],
[10511]1114node[pole=transition] {
1115 throwWarning: tr("{0} is deprecated", "{0.tag}");
1116 suggestAlternative: "location:transition=yes";
[11138]1117 group: tr("deprecated tagging");
[10511]1118 fixAdd: "location:transition=yes";
1119 fixRemove: "pole";
1120}
[13049]1121node[tower=air_to_ground],
[10511]1122node[tower=transition] {
1123 throwWarning: tr("{0} is deprecated", "{0.tag}");
1124 suggestAlternative: "location:transition=yes";
[11138]1125 group: tr("deprecated tagging");
[10511]1126 fixAdd: "location:transition=yes";
1127 fixRemove: "tower";
[10538]1128}
1129
1130/* #13138 */
1131area[landuse=pond] {
1132 throwWarning: tr("{0} is deprecated", "{0.tag}");
1133 suggestAlternative: "natural=water + water=pond";
[11138]1134 group: tr("deprecated tagging");
[10538]1135 fixAdd: "natural=water";
1136 fixAdd: "water=pond";
1137 fixRemove: "landuse";
[10911]1138}
1139
1140*[shop=souvenir],
1141*[shop=souvenirs],
1142*[shop=souveniers] {
1143 throwWarning: tr("{0} is deprecated", "{0.tag}");
1144 suggestAlternative: "shop=gift";
[11138]1145 group: tr("deprecated tagging");
[10911]1146 fixAdd: "shop=gift";
1147}
1148
1149*[vending=animal_food] {
1150 throwWarning: tr("{0} is deprecated", "{0.tag}");
1151 suggestAlternative: "vending=animal_feed";
[11138]1152 group: tr("deprecated tagging");
[10911]1153 fixAdd: "vending=animal_feed";
[11025]1154}
1155
[11583]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
[11025]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";
[11138]1177 group: tr("deprecated tagging");
[11025]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";
[11138]1188 group: tr("deprecated tagging");
[11025]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";
[11138]1198 group: tr("deprecated tagging");
[11025]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";
[11232]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";
[11263]1242}
1243
[11477]1244area[area][area!=yes][area!=no] {
[11476]1245 throwError: tr("wrong value: {0}", "{0.tag}");
1246 suggestAlternative: "area=yes";
1247 suggestAlternative: "area=no";
1248}
1249
[11263]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";
[11337]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");
[13218]1285}
1286
[15310]1287*[building=true],
1288*[building="*"],
1289*[building=Y],
1290*[building=y],
1291*[building=1] {
[13218]1292 throwError: tr("{0}", "{0.tag}");
1293 suggestAlternative: "building=yes";
1294 group: tr("misspelled value");
1295 fixAdd: "building=yes";
[13290]1296}
1297
[15758]1298/* #17786, #18612 */
[15309]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],
[15758]1308*[building=razed] {
1309 throwWarning: tr("{0} is not a building type.", "{0.tag}");
1310 group: tr("deprecated tagging");
1311}
[15309]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");
[15758]1319 fixAdd: "building=yes";
[15309]1320}
1321
[13290]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}
[13320]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");
[13339]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");
[13424]1364}
1365
1366*[amenity=toilet] {
1367 throwError: tr("{0}", "{0.tag}");
1368 suggestAlternative: "amenity=toilets";
1369 group: tr("misspelled value");
1370 fixAdd: "amenity=toilets";
[13576]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";
[14393]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}
[14593]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");
[14814]1454}
1455
1456/* #17383 */
[14815]1457*[natural=waterfall] {
[14814]1458 throwWarning: tr("{0} is deprecated", "{0.tag}");
1459 suggestAlternative: "waterway=waterfall";
1460 fixChangeKey: "natural => waterway";
1461 group: tr("deprecated tagging");
[14867]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");
[14874]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");
[14917]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}
[15004]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}
[15086]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");
[15166]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");
[15199]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");
[15200]1533}
1534
1535*[contact:google_plus] {
1536 throwWarning: tr("{0} is deprecated", "{0.key}");
1537 fixRemove: "contact:google_plus";
1538 group: tr("deprecated tagging");
[15262]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";
[15263]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";
[15264]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";
[15266]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";
[15270]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";
[15273]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";
[15360]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}
[15435]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");
[15454]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");
[15464]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}
[15526]1839
1840/* #18267 */
[15528]1841node[man_made=pipeline_marker],
[15526]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");
[15533]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");
[15636]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}
[15648]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}
[15715]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");
[15722]1894}
1895
1896node[segregated][segregated!=yes][segregated!=no],
1897way[segregated ][segregated!=yes][segregated!=no] {
1898 throwWarning: tr("unusual value of {0}", "{0.key}");
[15758]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");
[15831]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");
[15867]1929}
1930
1931/* #18659 */
1932*[car][amenity=charging_station] {
1933 throwWarning: tr("{0} is deprecated", "{0.key}");
1934 suggestAlternative: "motorcar";
1935 group: tr("deprecated tagging");
1936 fixChangeKey: "car => motorcar";
1937}
[15930]1938
1939/* #18767 */
1940*[navigationaid=approach_light],
1941*[navigationaid="ALS (Approach lighting system)"] {
1942 throwWarning: tr("{0} is deprecated", "{0.tag}");
1943 suggestAlternative: "navigationaid=als";
1944 group: tr("deprecated tagging");
1945 fixAdd: "navigationaid=als";
1946}
Note: See TracBrowser for help on using the repository browser.