source: josm/trunk/resources/data/validator/deprecated.mapcss@ 19267

Last change on this file since 19267 was 19222, checked in by taylor.smock, 3 months ago

Add/ignore popular tags

Ignore:

  • admin_type:PH: Highly localized to the Philippines
  • residential:condominium: Deprecated -- wiki suggests residential=apartments + condo=*
  • sidewalk: This is replaced by sidewalk:both, but is still valid tagging.

Add:

  • managed (to wetland, wood, fell, and heath)
  • sidewalk:{both|left|right}: We already had validator rules for these, this just adds them to presets. Note that sidewalk and sidewalk:both are similar, but sidewalk=separate is unspecific as to the side of the sidewalk.
  • Property svn:eol-style set to native
File size: 81.0 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}
[17092]10
[6506]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}
[17092]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}
[17092]31
32/* from http://wiki.openstreetmap.org/wiki/Deprecated_features */
[11985]33way[class] {
[6689]34 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]35 suggestAlternative: "highway";
[11138]36 group: tr("deprecated tagging");
[6506]37}
38*[highway=stile] {
[9551]39 throwWarning: tr("{0} is deprecated", "{0.tag}");
40 suggestAlternative: "barrier=stile";
[11138]41 group: tr("deprecated tagging");
[6506]42 fixRemove: "highway";
43 fixAdd: "barrier=stile";
44}
45*[highway=incline] {
[9551]46 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]47 suggestAlternative: "incline";
[11138]48 group: tr("deprecated tagging");
[6506]49}
50*[highway=incline_steep] {
[9551]51 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]52 suggestAlternative: "incline";
[11138]53 group: tr("deprecated tagging");
[6506]54}
55*[highway=unsurfaced] {
[9551]56 throwWarning: tr("{0} is deprecated", "{0.tag}");
57 suggestAlternative: "highway=* + surface=unpaved";
[11138]58 group: tr("deprecated tagging");
[6506]59 fixAdd: "highway=road";
[8161]60 fixAdd: "surface=unpaved";
[6506]61}
62*[landuse=wood] {
[9551]63 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]64 suggestAlternative: "landuse=forest";
65 suggestAlternative: "natural=wood";
[11138]66 group: tr("deprecated tagging");
[6506]67}
68*[natural=marsh] {
[9551]69 throwWarning: tr("{0} is deprecated", "{0.tag}");
70 suggestAlternative: "natural=wetland + wetland=marsh";
[11138]71 group: tr("deprecated tagging");
[6506]72 fixAdd: "natural=wetland";
73 fixAdd: "wetland=marsh";
74}
[18844]75/* #23185 */
[18843]76*[landuse=reservoir][!reservoir_type],
77*[landuse=reservoir][reservoir_type=water_storage] {
78 group: tr("deprecated tagging");
79 throwWarning: tr("{0} is deprecated", "{0.tag}");
80 suggestAlternative: "natural=water + water=reservoir";
81 fixAdd: "natural=water";
82 fixAdd: "water=reservoir";
83 fixRemove: "reservoir_type";
84}
85*[landuse=reservoir][reservoir_type=tailings] {
86 group: tr("deprecated tagging");
87 throwWarning: tr("{0} is deprecated", "{0.tag}");
88 suggestAlternative: "man_made=tailings_pond";
89 fixAdd: "man_made=tailings_pond";
90 fixRemove: "reservoir_type";
91 fixRemove: "reservoir_type";
92}
93*[landuse=reservoir][reservoir_type=evaporator] {
94 group: tr("deprecated tagging");
95 throwWarning: tr("{0} is deprecated", "{0.tag}");
96 suggestAlternative: "basin=evaporation or landuse=salt_pond";
97}
98*[landuse=reservoir][reservoir_type=sewage] {
99 group: tr("deprecated tagging");
100 throwWarning: tr("{0} is deprecated", "{0.tag}");
101 suggestAlternative: "natural=water + water=wastewater or landuse=basin + basin=settling or man_made=basin + basin=settling";
102}
103
[6506]104*[highway=byway] {
[9551]105 throwWarning: tr("{0} is deprecated", "{0.tag}");
[11138]106 group: tr("deprecated tagging");
[6506]107}
108*[power_source] {
[6689]109 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]110 suggestAlternative: "generator:source";
[11138]111 group: tr("deprecated tagging");
[6506]112}
113*[power_rating] {
[6689]114 throwWarning: tr("{0} is deprecated", "{0.key}");
[6506]115 suggestAlternative: "generator:output";
[11138]116 group: tr("deprecated tagging");
[6506]117}
[17092]118
[7600]119*[shop=antique] {
[9551]120 throwWarning: tr("{0} is deprecated", "{0.tag}");
121 suggestAlternative: "shop=antiques";
[11138]122 group: tr("deprecated tagging");
[7600]123 fixAdd: "shop=antiques";
124}
125
126*[shop=bags] {
[9551]127 throwWarning: tr("{0} is deprecated", "{0.tag}");
128 suggestAlternative: "shop=bag";
[11138]129 group: tr("deprecated tagging");
[7600]130 fixAdd: "shop=bag";
131}
132
[14940]133/* #17527 */
[14935]134*[shop=fashion] {
135 throwWarning: tr("{0} is deprecated", "{0.tag}");
136 suggestAlternative: "shop=clothes";
137 group: tr("deprecated tagging");
138 fixAdd: "shop=clothes";
139}
140
[6506]141*[shop=organic] {
[9551]142 throwWarning: tr("{0} is deprecated", "{0.tag}");
[10329]143 suggestAlternative: "shop=* + organic=yes";
144 suggestAlternative: "shop=* + organic=only";
[11138]145 group: tr("deprecated tagging");
[6506]146}
[7600]147
148*[shop=pets] {
[9551]149 throwWarning: tr("{0} is deprecated", "{0.tag}");
150 suggestAlternative: "shop=pet";
[11138]151 group: tr("deprecated tagging");
[7600]152 fixAdd: "shop=pet";
153}
154
155*[shop=pharmacy] {
[9551]156 throwWarning: tr("{0} is deprecated", "{0.tag}");
157 suggestAlternative: "amenity=pharmacy";
[11138]158 group: tr("deprecated tagging");
[7600]159 fixChangeKey: "shop => amenity";
160}
161
[6506]162*[bicycle_parking=sheffield] {
[9551]163 throwWarning: tr("{0} is deprecated", "{0.tag}");
164 suggestAlternative: "bicycle_parking=stands";
[11138]165 group: tr("deprecated tagging");
[6506]166 fixAdd: "bicycle_parking=stands";
167}
[17092]168
[6506]169*[amenity=emergency_phone] {
[9551]170 throwWarning: tr("{0} is deprecated", "{0.tag}");
171 suggestAlternative: "emergency=phone";
[11138]172 group: tr("deprecated tagging");
[6506]173 fixRemove: "amenity";
174 fixAdd: "emergency=phone";
175}
[17092]176
177/* #8132 */
[6506]178*[sport=gaelic_football] {
[9551]179 throwWarning: tr("{0} is deprecated", "{0.tag}");
180 suggestAlternative: "sport=gaelic_games";
[11138]181 group: tr("deprecated tagging");
[6506]182 fixAdd: "sport=gaelic_games";
183}
[17092]184
185/* #8847, #8961 */
[6506]186*[power=station] {
[9551]187 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]188 suggestAlternative: "power=plant";
[6688]189 suggestAlternative: "power=substation";
[11138]190 group: tr("deprecated tagging");
[6506]191}
[6689]192
193*[power=sub_station] {
[9551]194 throwWarning: tr("{0} is deprecated", "{0.tag}");
195 suggestAlternative: "power=substation";
[11138]196 group: tr("deprecated tagging");
[6689]197 fixAdd: "power=substation";
198}
[15372]199
200*[location=rooftop] {
201 throwWarning: tr("{0} is deprecated", "{0.tag}");
202 suggestAlternative: "location=roof";
203 group: tr("deprecated tagging");
204 fixAdd: "location=roof";
205}
206
[15373]207*[generator:location] {
[15372]208 throwWarning: tr("{0} is deprecated", "{0.key}");
209 suggestAlternative: "location";
210 group: tr("deprecated tagging");
211 fixChangeKey: "generator:location => location";
212}
213
[6506]214*[generator:method=dam] {
[9551]215 throwWarning: tr("{0} is deprecated", "{0.tag}");
216 suggestAlternative: "generator:method=water-storage";
[11138]217 group: tr("deprecated tagging");
[6506]218 fixAdd: "generator:method=water-storage";
219}
[17092]220
[6506]221*[generator:method=pumped-storage] {
[9551]222 throwWarning: tr("{0} is deprecated", "{0.tag}");
223 suggestAlternative: "generator:method=water-pumped-storage";
[11138]224 group: tr("deprecated tagging");
[6506]225 fixAdd: "generator:method=water-pumped-storage";
226}
[17092]227
[6506]228*[generator:method=pumping] {
[9551]229 throwWarning: tr("{0} is deprecated", "{0.tag}");
230 suggestAlternative: "generator:method=water-pumped-storage";
[11138]231 group: tr("deprecated tagging");
[6506]232 fixAdd: "generator:method=water-pumped-storage";
233}
[17092]234
235/* #8962 */
[6506]236*[fence_type=chain] {
[9551]237 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]238 suggestAlternative: "barrier=chain";
[9552]239 suggestAlternative: "barrier=fence + fence_type=chain_link";
[11138]240 group: tr("deprecated tagging");
[6506]241}
242
[17092]243/* #9000 */
[6506]244*[building=entrance] {
[9551]245 throwWarning: tr("{0} is deprecated", "{0.tag}");
[6506]246 suggestAlternative: "entrance";
[11138]247 group: tr("deprecated tagging");
[6506]248}
[17092]249
250/* #9213 */
[6506]251*[board_type=board] {
[9551]252 throwWarning: tr("{0} is deprecated", "{0.tag}");
[11138]253 group: tr("deprecated tagging");
[6506]254 fixRemove: "board_type";
255}
[17092]256
257/* #8434 */
[6506]258*[man_made=measurement_station] {
[9551]259 throwWarning: tr("{0} is deprecated", "{0.tag}");
260 suggestAlternative: "man_made=monitoring_station";
[11138]261 group: tr("deprecated tagging");
[6506]262 fixAdd: "man_made=monitoring_station";
263}
[17092]264
[6506]265*[measurement=water_level] {
[9551]266 throwWarning: tr("{0} is deprecated", "{0.tag}");
267 suggestAlternative: "monitoring:water_level=yes";
[11138]268 group: tr("deprecated tagging");
[6506]269 fixRemove: "measurement";
270 fixAdd: "monitoring:water_level=yes";
271}
[17092]272
[6506]273*[measurement=weather] {
[9551]274 throwWarning: tr("{0} is deprecated", "{0.tag}");
275 suggestAlternative: "monitoring:weather=yes";
[11138]276 group: tr("deprecated tagging");
[6506]277 fixRemove: "measurement";
278 fixAdd: "monitoring:weather=yes";
279}
[17092]280
[6506]281*[measurement=seismic] {
[9551]282 throwWarning: tr("{0} is deprecated", "{0.tag}");
283 suggestAlternative: "monitoring:seismic_activity=yes";
[11138]284 group: tr("deprecated tagging");
[6506]285 fixRemove: "measurement";
286 fixAdd: "monitoring:seismic_activity=yes";
287}
288
289*[monitoring:river_level] {
[6689]290 throwWarning: tr("{0} is deprecated", "{0.key}");
[9551]291 suggestAlternative: "monitoring:water_level";
[11138]292 group: tr("deprecated tagging");
[6506]293 fixChangeKey: "monitoring:river_level => monitoring:water_level";
294}
[6605]295
[7449]296*[stay] {
297 throwWarning: tr("{0} is deprecated", "{0.key}");
[9551]298 suggestAlternative: "maxstay";
[11138]299 group: tr("deprecated tagging");
[7449]300 fixChangeKey: "stay => maxstay";
301}
302
[17092]303/* #9554 */
[6658]304*[emergency=aed] {
[9551]305 throwWarning: tr("{0} is deprecated", "{0.tag}");
306 suggestAlternative: "emergency=defibrillator";
[11138]307 group: tr("deprecated tagging");
[6658]308 fixAdd: "emergency=defibrillator";
309}
310
[6605]311/* from http://wiki.openstreetmap.org/wiki/Conditional_restrictions#Deprecated_tags */
[6645]312*[day_on][!restriction],
313*[day_off][!restriction],
314*[date_on][!restriction],
315*[date_off][!restriction],
316*[hour_on][!restriction],
317*[hour_off][!restriction] {
[6605]318 throwWarning: tr("{0} is deprecated", "{0.key}");
319 suggestAlternative: "*:conditional";
[11138]320 group: tr("deprecated tagging");
[6605]321 assertMatch: "node day_on=0-12";
322}
[7105]323
[17092]324/* #10000 */
[7105]325*[access=designated] {
326 throwWarning: tr("''{0}'' is meaningless, use more specific tags, e.g. ''{1}''", "access=designated", "bicycle=designated");
327 assertMatch: "way access=designated";
328}
[7106]329*[access=official] {
330 throwWarning: tr("''{0}'' does not specify the official mode of transportation, use ''{1}'' for example", "access=official", "bicycle=official");
331 assertMatch: "way access=official";
332}
[7197]333
[17092]334/* #10085 */
[7197]335*[fixme=yes], *[FIXME=yes] {
336 throwWarning: tr("{0}={1} is unspecific. Instead of ''{1}'' please give more information about what exactly should be fixed.", "{0.key}", "{0.value}");
337 assertMatch: "way fixme=yes";
338}
339
[9088]340*[name][name=~/^(?i)fixme$/] {
341 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}");
342 fixRemove: "name";
343 assertMatch: "node name=fixme";
344 assertMatch: "node name=Fixme";
345 assertMatch: "node name=FIXME";
346 assertNoMatch: "node name=valid name";
347}
348
[10004]349*[note][note=~/^(?i)fixme$/] {
350 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}");
351}
352
[18544]353/* #10107, #10108, #10929, #13391, #22336 - http://wiki.openstreetmap.org/wiki/Proposed_features/leaftype#Features.2FPages_affected */
[7222]354*[type=broad_leaved],
355*[type=broad_leafed] {
[9551]356 throwWarning: tr("{0} is deprecated", "{0.tag}");
357 suggestAlternative: "leaf_type=broadleaved";
[11138]358 group: tr("deprecated tagging");
[7222]359 fixRemove: "{0.key}";
360 fixAdd: "leaf_type=broadleaved";
[9557]361}
[7924]362*[wood=coniferous],
363*[type=coniferous],
364*[type=conifer] {
[9551]365 throwWarning: tr("{0} is deprecated", "{0.tag}");
366 suggestAlternative: "leaf_type=needleleaved";
[11138]367 group: tr("deprecated tagging");
[7924]368 fixRemove: "{0.key}";
[7222]369 fixAdd: "leaf_type=needleleaved";
370}
371*[wood=mixed] {
[9551]372 throwWarning: tr("{0} is deprecated", "{0.tag}");
373 suggestAlternative: "leaf_type=mixed";
[11138]374 group: tr("deprecated tagging");
[7222]375 fixRemove: "wood";
376 fixAdd: "leaf_type=mixed";
377}
378*[wood=evergreen],
379*[type=evergreen] {
[9551]380 throwWarning: tr("{0} is deprecated", "{0.tag}");
381 suggestAlternative: "leaf_cycle=evergreen";
[11138]382 group: tr("deprecated tagging");
[7222]383 fixRemove: "{0.key}";
384 fixAdd: "leaf_cycle=evergreen";
385}
[18544]386*[wood=deciduous],
[7222]387*[type=deciduous],
388*[type=deciduos] {
[9551]389 throwWarning: tr("{0} is deprecated", "{0.tag}");
390 suggestAlternative: "leaf_cycle=deciduous";
[11138]391 group: tr("deprecated tagging");
[18544]392 fixRemove: "{0.key}";
[7222]393 fixAdd: "leaf_cycle=deciduous";
394}
[10798]395node[type=palm],
396way[type=palm] {
397 throwWarning: tr("{0} is deprecated", "{0.tag}");
398 suggestAlternative: "leaf_type";
399 suggestAlternative: "trees";
400 suggestAlternative: "species";
[11138]401 group: tr("deprecated tagging");
[10798]402}
403
[7391]404*[natural=land] {
[9551]405 throwWarning: tr("{0} is deprecated. Please use instead a multipolygon.", "{0.tag}");
[11138]406 group: tr("deprecated tagging");
[7391]407 assertMatch: "way natural=land";
408}
[7490]409
[17092]410/* #10447 - https://wiki.openstreetmap.org/wiki/Proposed_features/Bridge_types#Deprecated_bridge_key_values */
[7490]411*[bridge=causeway] {
[9551]412 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7490]413 suggestAlternative: "ford=yes";
414 suggestAlternative: "bridge=low_water_crossing";
415 suggestAlternative: "embankment=yes";
[11138]416 group: tr("deprecated tagging");
[7490]417}
418*[bridge=swing] {
[9551]419 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7490]420 suggestAlternative: "bridge:movable=swing";
421 suggestAlternative: "bridge:structure=simple-suspension";
[11138]422 group: tr("deprecated tagging");
[7490]423}
424*[bridge=suspension] {
[9551]425 throwWarning: tr("{0} is deprecated", "{0.tag}");
426 suggestAlternative: "bridge=yes + bridge:structure=suspension";
[11138]427 group: tr("deprecated tagging");
[7490]428 fixAdd: "bridge=yes";
429 fixAdd: "bridge:structure=suspension";
430}
[15262]431*[bridge=pontoon] {
432 throwWarning: tr("{0} is deprecated", "{0.tag}");
433 suggestAlternative: "bridge=yes + bridge:structure=floating";
434 group: tr("deprecated tagging");
435 fixAdd: "bridge=yes";
436 fixAdd: "bridge:structure=floating";
437}
[7599]438
[17092]439/* #10530 - Incorrect tag proposed in internal preset for years */
[7623]440*[fee=interval],
441*[lit=interval],
442*[supervised=interval] {
[7647]443 throwWarning: tr("{0} is deprecated. Please specify interval by using opening_hours syntax", "{0.tag}");
[11138]444 group: tr("deprecated tagging");
[7620]445}
446
[17092]447/* #10582 - JOSM supported this tag as "don't upload this" feature, before the introduction of upload flag at layer level */
[7599]448*[/josm\/ignore/] {
449 throwError: tr("{0} is deprecated. Please delete this object and use a private layer instead", "{0.key}");
[11138]450 group: tr("deprecated tagging");
[7599]451 fixDeleteObject: this;
452}
[7630]453
[17092]454/* #8281 */
[7630]455*[sport=diving] {
[7647]456 throwWarning: tr("{0} is deprecated", "{0.tag}");
[7630]457 suggestAlternative: "sport=scuba_diving";
458 suggestAlternative: "sport=cliff_diving";
[11138]459 group: tr("deprecated tagging");
[7635]460}
461
[17092]462/* #8281 */
[7635]463*[parking=park_and_ride] {
[7647]464 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]465 suggestAlternative: "amenity=parking + park_ride=yes";
[11138]466 group: tr("deprecated tagging");
[7635]467 fixRemove: "parking";
468 fixAdd: "amenity=parking";
469 fixAdd: "park_ride=yes";
[7647]470}
471
[18558]472/* #19287, #18334, #17950, #10661, #10837, #11737, #12771, #21009, #22379 */
473*[parking=yes],
[16500]474*[playground=yes],
[15530]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],
[17926]485*[landuse=yes],
[9435]486*[shop="*"],
[14805]487*[shop=yes][amenity!=fuel],
[9681]488*[craft=yes],
[10229]489*[service=yes],
[7818]490*[place=yes] {
[7647]491 throwWarning: tr("{0}={1} is unspecific. Please replace ''{1}'' by a specific value.", "{0.key}", "{0.value}");
[7697]492}
493
[17092]494/* #10693 - http://wiki.openstreetmap.org/wiki/Proposed_features/drop_recommendation_for_place_name , #10837 */
[7697]495*[place_name][!name] {
496 throwWarning: tr("{0} should be replaced with {1}", "{0.key}", "{1.key}");
497 fixChangeKey: "place_name => name";
498}
[7818]499*[place][place_name = *name] {
500 throwWarning: tr("{0} = {1}; remove {0}", "{1.key}", "{1.value}");
501 fixRemove: "{1.key}";
502}
[7707]503
504way[sidewalk=yes] {
[17216]505 throwWarning: tr("{0} is unspecific", "{0.tag}");
506 suggestAlternative: "sidewalk=left";
507 suggestAlternative: "sidewalk=right";
508 suggestAlternative: "sidewalk=both";
509 suggestAlternative: "sidewalk=separate";
[7737]510}
511
[9551]512*[waterway=water_point] {
513 throwWarning: tr("{0} is deprecated", "{0.tag}");
514 suggestAlternative: "amenity=water_point";
[11138]515 group: tr("deprecated tagging");
[9551]516 fixChangeKey: "waterway => amenity";
517}
[7737]518*[waterway=waste_disposal] {
519 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]520 suggestAlternative: "amenity=waste_disposal";
[11138]521 group: tr("deprecated tagging");
[7737]522 fixChangeKey: "waterway => amenity";
523}
524*[waterway=mooring] {
525 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9551]526 suggestAlternative: "mooring=yes";
[11138]527 group: tr("deprecated tagging");
[7737]528 fixRemove: "waterway";
529 fixAdd: "mooring=yes";
[7818]530}
531
[18188]532/* #10837, #21268 */
[7969]533*[building][levels],
[18188]534*[building:part][levels] {
[7818]535 throwWarning: tr("{0} is deprecated", "{1.key}");
536 suggestAlternative: "building:levels";
[11138]537 group: tr("deprecated tagging");
[7818]538 fixChangeKey: "levels => building:levels";
[18188]539 set levels_building;
[7973]540}
[18188]541*[levels]!.levels_building {
542 throwWarning: tr("Unusual key {0}, maybe {1} or {2} is meant", "{0.key}", "level", "building:levels");
543}
[7973]544
[18642]545/* #22481 */
546*[building:level][!building:levels] {
[18647]547 throwWarning: tr("{0} is deprecated", "{0.key}");
[18642]548 suggestAlternative: "building:levels";
549 group: tr("deprecated tagging");
550 fixChangeKey: "building:level => building:levels";
551}
552*[building:level][building:levels] {
[18647]553 throwWarning: tr("{0} is deprecated", "{0.key}");
[18642]554 suggestAlternative: "building:levels";
555 group: tr("deprecated tagging");
556}
557
[17092]558/* #10691 */
[7973]559*[protected_class] {
560 throwWarning: tr("{0} is deprecated", "{0.key}");
561 suggestAlternative: "protect_class";
[11138]562 group: tr("deprecated tagging");
[7973]563 fixChangeKey: "protected_class => protect_class";
[8008]564}
565
[17092]566/* #11070 */
[15648]567*[kerb=unknown],
[8008]568*[lock=unknown],
569*[hide=unknown],
570*[shelter=unknown],
571*[access=unknown],
572*[capacity:parent=unknown],
573*[capacity:women=unknown],
574*[capacity:disabled=unknown],
575*[crossing=unknown],
576*[foot=unknown] {
[8023]577 throwWarning: tr("Unspecific tag {0}", "{0.tag}");
[8121]578}
579
[17092]580/* #11183 */
[11159]581*[sport=skiing] {
[8121]582 throwWarning: tr("Definition of {0} is unclear", "{0.tag}");
[11159]583 suggestAlternative: tr("{0} + {1} + {2}", "piste:type=*", "piste:difficulty=*", "piste:grooming=*");
584 group: tr("deprecated tagging");
[8135]585}
586
[17092]587/* #11223 */
[8135]588*[waterway=wadi] {
589 throwWarning: tr("{0} is deprecated", "{0.tag}");
590 suggestAlternative: "{0.key}=* + intermittent=yes";
591 suggestAlternative: "natural=valley";
[11138]592 group: tr("deprecated tagging");
[8137]593}
594
[17209]595/* #10346 */
596way[oneway=1] {
[8137]597 throwWarning: tr("{0} is deprecated", "{0.tag}");
598 suggestAlternative: "oneway=yes";
[11138]599 group: tr("deprecated tagging");
[8137]600 fixAdd: "oneway=yes";
[8165]601}
602
[17209]603/* #11329 */
604way[oneway=-1] {
[8183]605 throwWarning: tr("{0} is not recommended. Use the Reverse Ways function from the Tools menu.", "{0.tag}");
606}
607
[8165]608*[drinkable] {
609 throwWarning: tr("{0} is deprecated", "{0.key}");
610 suggestAlternative: "drinking_water";
[11138]611 group: tr("deprecated tagging");
[8184]612}
613
[17092]614/* #10329, #15877 */
[13788]615 /* simple key change */
[8184]616*[color][!colour] {
617 throwWarning: tr("{0} is deprecated", "{0.key}");
618 suggestAlternative: "colour";
[11138]619 group: tr("deprecated tagging");
[8184]620 fixChangeKey: "color => colour";
[13788]621 assertMatch: "way color=red";
622 assertNoMatch: "way color=red colour=red";
[8184]623}
[13788]624area[building:color][!building:colour] {
625 throwWarning: tr("{0} is deprecated", "{0.key}");
626 suggestAlternative: "building:colour";
[11138]627 group: tr("deprecated tagging");
[13788]628 fixChangeKey: "building:color => building:colour";
629 assertMatch: "way building:color=red";
630 assertNoMatch: "way building:color=red building:colour=red";
631}
632area[roof:color][!roof:colour] {
633 throwWarning: tr("{0} is deprecated", "{0.key}");
634 suggestAlternative: "roof:colour";
635 group: tr("deprecated tagging");
636 fixChangeKey: "roof:color => roof:colour";
637 assertMatch: "way roof:color=red";
638 assertNoMatch: "way roof:color=red roof:colour=red";
639}
640 /* both tags with same value, remove color */
641*[color][colour][color=*colour] {
642 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
643 suggestAlternative: "colour";
644 group: tr("deprecated tagging");
[8184]645 set samecolor;
646 fixRemove: "color";
[11049]647 assertMatch: "way color=red colour=red";
648 assertNoMatch: "way color=red colour=green";
[8184]649}
[13788]650area[building:color][building:colour]["building:color"=*"building:colour"] {
651 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
652 suggestAlternative: "building:colour";
653 group: tr("deprecated tagging");
654 set samebuildingcolor;
655 fixRemove: "building:color";
656 assertMatch: "way building:color=red building:colour=red";
657 assertNoMatch: "way building:color=red building:colour=green";
658}
659area[roof:color][roof:colour]["roof:color"=*"roof:colour"] {
660 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
661 suggestAlternative: "roof:colour";
662 group: tr("deprecated tagging");
663 set sameroofcolor;
664 fixRemove: "roof:color";
665 assertMatch: "way roof:color=red roof:colour=red";
666 assertNoMatch: "way roof:color=red roof:colour=green";
667}
668 /* both tags with different values, no autofix */
[8184]669*[color][colour]!.samecolor {
[13788]670 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
671 suggestAlternative: "colour";
[11138]672 group: tr("deprecated tagging");
[11049]673 assertNoMatch: "way color=red colour=red";
674 assertMatch: "way color=red colour=green";
[8185]675}
[13788]676*[building:color][building:colour]!.samebuildingcolor {
677 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
678 suggestAlternative: "building:colour";
679 group: tr("deprecated tagging");
680 assertNoMatch: "way building:color=red building:colour=red";
681 assertMatch: "way building:color=red building:colour=green";
682}
683*[roof:color][roof:colour]!.sameroofcolor {
684 throwWarning: tr("{0} together with {1} and conflicting values", "{0.key}", "{1.key}");
685 suggestAlternative: "roof:colour";
686 group: tr("deprecated tagging");
687 assertNoMatch: "way roof:color=red roof:colour=red";
688 assertMatch: "way roof:color=red roof:colour=green";
689}
[15496]690/* further more universal checks, no autofix */
691/* gpxd:color has another warning in unnecessary.mapcss */
692*[/:color/][!building:color][!roof:color][!gpxd:color] {
[8204]693 throwWarning: tr("{0} is deprecated", "{0.key}");
694 suggestAlternative: ":colour";
[11138]695 group: tr("deprecated tagging");
[11049]696 assertNoMatch: "way color=red";
[13788]697 assertNoMatch: "way roof:color=grey";
698 assertMatch: "way cycleway:surface:color=grey";
[8204]699}
[13788]700*[/color:/] {
[8204]701 throwWarning: tr("{0} is deprecated", "{0.key}");
702 suggestAlternative: "colour:";
[11138]703 group: tr("deprecated tagging");
[13788]704 assertNoMatch: "way color=red";
705 assertMatch: "way color:back=grey";
[8204]706}
[8185]707
[17092]708/* #11234 */
[8544]709*[/=|\+|\/|&|<|>|;|'|"|%|#|@|\\|,|\.|\{|\}|\?|\*|\^|\$/] {
[11133]710 throwWarning: tr("{0}", "{0.key}");
711 group: tr("key with uncommon character");
[8192]712}
713
[17092]714/* #11330, #18642 */
[8192]715*[/^.$/],
[17466]716node[/^..$/][!kp][!pk],
[15828]717way[/^..$/][route=ferry][!to],
718way[/^..$/][route!=ferry],
[8204]719relation[/^..$/][!to] {
[8192]720 throwWarning: tr("uncommon short key");
[11049]721 assertNoMatch: "relation to=Berlin";
722 assertMatch: "relation fo=bar";
723 assertMatch: "way to=bar";
[15828]724 assertNoMatch: "way to=Zuidschermer;Akersloot route=ferry";
[11049]725 assertMatch: "node fo=bar";
726 assertMatch: "node f=b";
[17466]727 assertNoMatch: "node kp=5"; /* already has a deprecated warning */
728 assertNoMatch: "node pk=7"; /* already has a deprecated warning */
[8204]729}
730
[17092]731/* #11439 */
[8383]732*[sport=hockey] {
[11138]733 throwWarning: tr("{0} is deprecated", "{0.tag}");
[8383]734 suggestAlternative: "sport=field_hockey";
735 suggestAlternative: "sport=ice_hockey";
[11138]736 group: tr("deprecated tagging");
[8428]737}
738
[17092]739/* #11471 */
[8428]740*[sport=billard],
741*[sport=billards],
742*[sport=billiard] {
743 throwWarning: tr("{0} is deprecated", "{0.tag}");
744 suggestAlternative: "sport=billiards";
[11138]745 group: tr("deprecated tagging");
[8428]746 fixAdd: "sport=billiards";
[8546]747}
748
[18557]749/* #11499, #16928, #22367 */
[8546]750*[payment:electronic_purses=yes] {
[18557]751 throwOther: 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]752}
753*[payment:cryptocurrencies=yes] {
[18557]754 throwOther: 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]755}
756
[17092]757/* #16253 */
[13786]758*[payment:ep_quick],
759*[payment:ep_cash],
760*[payment:ep_proton],
761*[payment:ep_chipknip] {
762 throwWarning: tr("{0} is deprecated", "{0.key}");
763 group: tr("deprecated tagging");
764 fixRemove: "{0.key}";
765}
766
[17466]767/* #8717, #20326 */
768*[kp][railway!=milestone] {
[8725]769 throwWarning: tr("{0} is deprecated", "{0.key}");
770 suggestAlternative: "distance";
[11138]771 group: tr("deprecated tagging");
[8725]772 fixChangeKey: "kp => distance";
773}
[17466]774*[pk][railway!=milestone] {
[8725]775 throwWarning: tr("{0} is deprecated", "{0.key}");
776 suggestAlternative: "distance";
[11138]777 group: tr("deprecated tagging");
[8725]778 fixChangeKey: "pk => distance";
[8730]779}
[17466]780*[kp][railway=milestone] {
781 throwWarning: tr("{0} is deprecated", "{0.key}");
782 suggestAlternative: "railway:position";
783 group: tr("deprecated tagging");
784 fixChangeKey: "kp => railway:position";
785}
786*[pk][railway=milestone] {
787 throwWarning: tr("{0} is deprecated", "{0.key}");
788 suggestAlternative: "railway:position";
789 group: tr("deprecated tagging");
790 fixChangeKey: "pk => railway:position";
791}
792*[distance][railway=milestone] {
793 throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
794 suggestAlternative: "railway:position";
795 group: tr("deprecated tagging");
796 fixChangeKey: "distance => railway:position";
797}
[8730]798
799*[postcode] {
800 throwWarning: tr("{0} is deprecated", "{0.key}");
801 suggestAlternative: "addr:postcode";
[11138]802 group: tr("deprecated tagging");
[8730]803 suggestAlternative: "postal_code";
[9031]804}
805
806*[water=intermittent] {
807 throwWarning: tr("{0} is deprecated", "{0.tag}");
808 suggestAlternative: "intermittent=yes";
[11138]809 group: tr("deprecated tagging");
[9031]810 fixRemove: "water";
811 fixAdd: "intermittent=yes";
[9037]812}
813
[11409]814/* #10907, #14141 */
815/* 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 */
816way[type][type!=waterway][man_made=pipeline],
817node[type][pipeline=marker] {
[9037]818 throwWarning: tr("{0} is deprecated", "{0.key}");
819 suggestAlternative: "substance";
[11138]820 group: tr("deprecated tagging");
[9037]821 fixChangeKey: "type => substance";
822}
[9040]823
824*[landuse=farm] {
825 throwWarning: tr("{0} is deprecated", "{0.tag}");
826 suggestAlternative: "landuse=farmland";
[9045]827 suggestAlternative: "landuse=farmyard";
[11138]828 group: tr("deprecated tagging");
[9040]829}
[9093]830
831/* #12135 comment:11 */
832*[seamark=buoy]["seamark:type"=~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
833 throwWarning: tr("{0} is deprecated", "{0.tag}");
834 suggestAlternative: "{1.tag}";
[11138]835 group: tr("deprecated tagging");
[9093]836 fixRemove: "seamark";
837}
838*[seamark=buoy]["seamark:type"!~/^(buoy_cardinal|buoy_installation|buoy_isolated_danger|buoy_lateral|buoy_safe_water|buoy_special_purpose|mooring)$/] {
839 throwWarning: tr("{0} is deprecated", "{0.tag}");
840 suggestAlternative: "{1.tag}";
[11138]841 group: tr("deprecated tagging");
[9156]842}
[17092]843/* #12135 */
[9160]844*[landuse=conservation] {
845 throwWarning: tr("{0} is deprecated", "{0.tag}");
846 suggestAlternative: "boundary=protected_area";
[11138]847 group: tr("deprecated tagging");
[9160]848 fixAdd: "boundary=protected_area";
849 fixRemove: "landuse";
850}
[9156]851
852/* #12205 */
853*[amenity=kiosk] {
854 throwWarning: tr("{0} is deprecated", "{0.tag}");
855 suggestAlternative: "shop=kiosk";
[11138]856 group: tr("deprecated tagging");
[9156]857 fixChangeKey: "amenity => shop";
858}
859*[amenity=shop] {
860 throwWarning: tr("{0} is deprecated", "{0.tag}");
861 suggestAlternative: "shop=*";
[11138]862 group: tr("deprecated tagging");
[9156]863}
864*[shop=fishmonger] {
865 throwWarning: tr("{0} is deprecated", "{0.tag}");
866 suggestAlternative: "shop=seafood";
[11138]867 group: tr("deprecated tagging");
[9156]868 fixAdd: "shop=seafood";
869}
870*[shop=fish] {
871 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9435]872 suggestAlternative: "shop=seafood";
873 suggestAlternative: "shop=pet";
874 suggestAlternative: "shop=fishing";
[11138]875 group: tr("deprecated tagging");
[9156]876}
877*[shop=betting] {
878 throwWarning: tr("{0} is deprecated", "{0.tag}");
[9163]879 suggestAlternative: "shop=bookmaker";
880 suggestAlternative: "shop=lottery";
881 suggestAlternative: "amenity=casino";
882 suggestAlternative: "leisure=amusement_arcade";
883 suggestAlternative: "leisure=adult_gaming_centre";
884 suggestAlternative: "amenity=gambling";
[11138]885 group: tr("deprecated tagging");
[9156]886}
887*[shop=perfume] {
888 throwWarning: tr("{0} is deprecated", "{0.tag}");
889 suggestAlternative: "shop=perfumery";
[11138]890 group: tr("deprecated tagging");
[9156]891 fixAdd: "shop=perfumery";
892}
893*[amenity=exercise_point] {
894 throwWarning: tr("{0} is deprecated", "{0.tag}");
895 suggestAlternative: "leisure=fitness_station";
[11138]896 group: tr("deprecated tagging");
[9156]897 fixAdd: "leisure=fitness_station";
898 fixRemove: "amenity";
899}
900*[shop=auto_parts] {
901 throwWarning: tr("{0} is deprecated", "{0.tag}");
902 suggestAlternative: "shop=car_parts";
[11138]903 group: tr("deprecated tagging");
[9156]904 fixAdd: "shop=car_parts";
905}
906*[amenity=car_repair] {
907 throwWarning: tr("{0} is deprecated", "{0.tag}");
908 suggestAlternative: "shop=car_repair";
[11138]909 group: tr("deprecated tagging");
[9156]910 fixChangeKey: "amenity => shop";
911}
[9363]912
913/* #12311 */
914*[amenity=studio][type=audio],
915*[amenity=studio][type=radio],
916*[amenity=studio][type=television],
917*[amenity=studio][type=video] {
918 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
919 suggestAlternative: "studio";
[11138]920 group: tr("deprecated tagging");
[9363]921 fixChangeKey: "type => studio";
[9434]922}
923
[12930]924/* #11507, #12297, #15409 */
[9434]925*[power=cable_distribution_cabinet] {
926 throwWarning: tr("{0} is deprecated", "{0.tag}");
[12930]927 suggestAlternative: "man_made=street_cabinet + street_cabinet=*";
[11138]928 group: tr("deprecated tagging");
[9434]929 fixAdd: "man_made=street_cabinet";
930 fixRemove: "power";
[9435]931}
932
[13982]933/* #16430 */
934*[power][location=kiosk] {
935 throwWarning: tr("{0} is deprecated", "{1.tag}");
936 group: tr("deprecated tagging");
937 fixAdd: "man_made=street_cabinet";
938 fixAdd: "street_cabinet=power";
939 fixRemove: "location";
940}
941
[9435]942/* #12276 */
943*[man_made=well] {
944 throwWarning: tr("{0} is deprecated", "{0.tag}");
945 suggestAlternative: "man_made=water_well";
946 suggestAlternative: "man_made=petroleum_well";
[11138]947 group: tr("deprecated tagging");
[9435]948}
949*[amenity=dog_bin],
950*[amenity=dog_waste_bin] {
951 throwWarning: tr("{0} is deprecated", "{0.tag}");
952 suggestAlternative: "amenity=waste_basket + waste=dog_excrement + vending=excrement_bags";
[11138]953 group: tr("deprecated tagging");
[9435]954 fixAdd: "amenity=waste_basket";
955 fixAdd: "waste=dog_excrement";
956 fixAdd: "vending=excrement_bags";
957}
958*[amenity=artwork] {
959 throwWarning: tr("{0} is deprecated", "{0.tag}");
960 suggestAlternative: "tourism=artwork";
[11138]961 group: tr("deprecated tagging");
[9435]962 fixAdd: "tourism=artwork";
963 fixRemove: "amenity";
964}
965*[amenity=community_center] {
966 throwWarning: tr("{0} is deprecated", "{0.tag}");
967 suggestAlternative: "amenity=community_centre";
[11138]968 group: tr("deprecated tagging");
[9435]969 fixAdd: "amenity=community_centre";
970}
971*[man_made=cut_line] {
972 throwWarning: tr("{0} is deprecated", "{0.tag}");
973 suggestAlternative: "man_made=cutline";
[11138]974 group: tr("deprecated tagging");
[9435]975 fixAdd: "man_made=cutline";
976}
977*[amenity=park] {
978 throwWarning: tr("{0} is deprecated", "{0.tag}");
979 suggestAlternative: "leisure=park";
[11138]980 group: tr("deprecated tagging");
[9435]981 fixAdd: "leisure=park";
982 fixRemove: "amenity";
983}
984*[amenity=hotel] {
985 throwWarning: tr("{0} is deprecated", "{0.tag}");
986 suggestAlternative: "tourism=hotel";
[11138]987 group: tr("deprecated tagging");
[9435]988 fixAdd: "tourism=hotel";
989 fixRemove: "amenity";
990}
991*[shop=window],
992*[shop=windows] {
993 throwWarning: tr("{0} is deprecated", "{0.tag}");
994 suggestAlternative: "craft=window_construction";
[11138]995 group: tr("deprecated tagging");
[9435]996 fixAdd: "craft=window_construction";
997 fixRemove: "shop";
998}
999*[amenity=education] {
1000 throwWarning: tr("{0} is deprecated", "{0.tag}");
1001 suggestAlternative: "amenity=college";
1002 suggestAlternative: "amenity=school";
1003 suggestAlternative: "amenity=university";
[17950]1004 suggestAlternative: "landuse=education";
[11138]1005 group: tr("deprecated tagging");
[9435]1006}
1007*[shop=gallery] {
1008 throwWarning: tr("{0} is deprecated", "{0.tag}");
1009 suggestAlternative: "shop=art";
[11138]1010 group: tr("deprecated tagging");
[9435]1011 fixAdd: "shop=art";
1012}
1013*[shop=gambling],
1014*[leisure=gambling] {
1015 throwWarning: tr("{0} is deprecated", "{0.tag}");
1016 suggestAlternative: "shop=bookmaker";
1017 suggestAlternative: "shop=lottery";
1018 suggestAlternative: "amenity=casino";
1019 suggestAlternative: "leisure=amusement_arcade";
1020 suggestAlternative: "amenity=gambling";
[11138]1021 group: tr("deprecated tagging");
[9435]1022}
[15262]1023*[office=real_estate],
[9435]1024*[office=real_estate_agent] {
1025 throwWarning: tr("{0} is deprecated", "{0.tag}");
[15262]1026 suggestAlternative: "office=estate_agent";
[11138]1027 group: tr("deprecated tagging");
[15262]1028 fixAdd: "office=estate_agent";
[9435]1029}
1030*[shop=glass] {
1031 throwWarning: tr("{0} is deprecated", "{0.tag}");
1032 suggestAlternative: "shop=glaziery";
1033 suggestAlternative: "craft=glaziery";
[11138]1034 group: tr("deprecated tagging");
[9435]1035}
1036*[amenity=proposed],
1037*[amenity=disused],
1038*[shop=disused],
[15262]1039*[highway=abandoned],
[9435]1040*[historic=abandoned] {
1041 throwWarning: tr("{0} is deprecated. Use the {1}: key prefix instead.", "{0.tag}", "{0.value}");
[11138]1042 group: tr("deprecated tagging");
[9593]1043}
1044
[14815]1045/* #12431 */
1046*[amenity=swimming_pool] {
1047 throwWarning: tr("{0} is deprecated", "{0.tag}");
1048 suggestAlternative: "leisure=swimming_pool";
1049 group: tr("deprecated tagging");
1050 fixChangeKey: "amenity => leisure";
1051}
1052
1053/* #17379 */
[14804]1054*[amenity=sauna] {
[9593]1055 throwWarning: tr("{0} is deprecated", "{0.tag}");
[14815]1056 suggestAlternative: "leisure=sauna";
[11138]1057 group: tr("deprecated tagging");
[9593]1058 fixChangeKey: "amenity => leisure";
[9747]1059}
1060
[14957]1061/* #12494, #17554 */
[9836]1062*[/^[^t][^i][^g].+_[0-9]$/][!/^note_[0-9]$/][!/^description_[0-9]$/] {
[14957]1063 throwWarning: tr("{0}", "{0.key}");
[11146]1064 group: tr("questionable key (ending with a number)");
[11138]1065 assertMatch: "way name_1=foo";
1066 assertNoMatch: "way note_2=foo";
1067 assertNoMatch: "way description_3=foo";
1068 assertNoMatch: "way tiger:name_base_1=bar"; /*should not warn for key tiger:name_base_1 */
1069}
[9835]1070
1071/* #12500 */
1072*[sport=skating] {
1073 throwWarning: tr("{0} is deprecated", "{0.tag}");
1074 suggestAlternative: "sport=ice_skating";
1075 suggestAlternative: "sport=roller_skating";
[11138]1076 group: tr("deprecated tagging");
[10027]1077}
1078
1079way[barrier=wall][type=noise_barrier][!wall],
1080way[barrier=wall][type=noise_barrier][wall=noise_barrier] {
1081 throwWarning: tr("{0} is deprecated", "{1.tag}");
1082 suggestAlternative: "wall=noise_barrier";
[11138]1083 group: tr("deprecated tagging");
[10027]1084 fixChangeKey: "type => wall";
1085}
1086way[barrier=wall][type=noise_barrier][wall][wall!=noise_barrier] {
1087 throwWarning: tr("{0} is deprecated", "{1.tag}");
1088 suggestAlternative: "wall=noise_barrier";
[11138]1089 group: tr("deprecated tagging");
[10095]1090}
1091
1092/* #8978, 12588 */
1093*[amenity=public_building] {
1094 throwWarning: tr("{0} is deprecated", "{0.tag}");
1095 suggestAlternative: "amenity=townhall";
1096 suggestAlternative: "amenity=community_centre";
1097 suggestAlternative: "amenity=hospital";
1098 suggestAlternative: "leisure=sports_centre";
1099 suggestAlternative: "office=government";
1100 suggestAlternative: "building=hospital";
1101 suggestAlternative: "building=public";
1102 suggestAlternative: "...";
[11138]1103 group: tr("deprecated tagging");
[10100]1104}
1105
[15648]1106/* #18517 */
[15634]1107*[office=administrative] {
1108 throwWarning: tr("{0} is deprecated", "{0.tag}");
[15648]1109 suggestAlternative: "office=government";
[15634]1110 group: tr("deprecated tagging");
[15648]1111 fixAdd: "office=government";
[15634]1112}
1113
[10100]1114/* #12708 */
1115*[vending=news_papers] {
1116 throwWarning: tr("{0} is deprecated", "{0.tag}");
1117 suggestAlternative: "vending=newspapers";
[11138]1118 group: tr("deprecated tagging");
[10100]1119 fixAdd: "vending=newspapers";
[10229]1120}
1121
1122/* #12771 */
1123*[service=drive_through] {
1124 throwWarning: tr("{0} is deprecated", "{0.tag}");
1125 suggestAlternative: "service=drive-through";
[11138]1126 group: tr("deprecated tagging");
[10229]1127 fixAdd: "service=drive-through";
[10230]1128}
1129
[15954]1130/* #12771, #9895 */
1131*[noexit][noexit!=yes][noexit!=no], /* noexit=no has an own warning */
[15548]1132way[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]1133way[railway=rail][service][service !~ /^(crossover|siding|spur|yard)$/],
1134way[waterway=canal][service][service !~ /^(irrigation|transportation|water_power)$/] {
1135 throwWarning: tr("The key {0} has an uncommon value.", "{1.key}");
[10451]1136}
1137
1138/* #13008 */
1139*[name:botanical] {
1140 throwWarning: tr("{0} is deprecated", "{0.key}");
1141 suggestAlternative: "species";
[11138]1142 group: tr("deprecated tagging");
[10511]1143}
1144
[13049]1145/* #11344, #13101, #15480 */
1146node[pole=air_to_ground],
[10511]1147node[pole=transition] {
1148 throwWarning: tr("{0} is deprecated", "{0.tag}");
1149 suggestAlternative: "location:transition=yes";
[11138]1150 group: tr("deprecated tagging");
[10511]1151 fixAdd: "location:transition=yes";
1152 fixRemove: "pole";
1153}
[13049]1154node[tower=air_to_ground],
[10511]1155node[tower=transition] {
1156 throwWarning: tr("{0} is deprecated", "{0.tag}");
1157 suggestAlternative: "location:transition=yes";
[11138]1158 group: tr("deprecated tagging");
[10511]1159 fixAdd: "location:transition=yes";
1160 fixRemove: "tower";
[10538]1161}
1162
1163/* #13138 */
1164area[landuse=pond] {
1165 throwWarning: tr("{0} is deprecated", "{0.tag}");
1166 suggestAlternative: "natural=water + water=pond";
[11138]1167 group: tr("deprecated tagging");
[10538]1168 fixAdd: "natural=water";
1169 fixAdd: "water=pond";
1170 fixRemove: "landuse";
[10911]1171}
1172
1173*[shop=souvenir],
1174*[shop=souvenirs],
1175*[shop=souveniers] {
1176 throwWarning: tr("{0} is deprecated", "{0.tag}");
1177 suggestAlternative: "shop=gift";
[11138]1178 group: tr("deprecated tagging");
[10911]1179 fixAdd: "shop=gift";
1180}
1181
1182*[vending=animal_food] {
1183 throwWarning: tr("{0} is deprecated", "{0.tag}");
1184 suggestAlternative: "vending=animal_feed";
[11138]1185 group: tr("deprecated tagging");
[10911]1186 fixAdd: "vending=animal_feed";
[11025]1187}
1188
[11583]1189/* #14376 */
1190node[vending=photos][amenity=vending_machine],
1191node[vending=photo][amenity=vending_machine] {
1192 throwWarning: tr("{0} is deprecated", "{0.tag}");
1193 suggestAlternative: "amenity=photo_booth";
1194 group: tr("deprecated tagging");
1195 fixRemove: "vending";
1196 fixAdd: "amenity=photo_booth";
1197
1198}
1199node[vending=photos][amenity!=vending_machine] {
1200 throwWarning: tr("{0} is deprecated", "{0.tag}");
1201 suggestAlternative: "amenity=photo_booth";
1202 group: tr("deprecated tagging");
1203}
1204
[11025]1205/* #13653 */
1206node[highway=emergency_access_point][phone][!emergency_telephone_code],
1207way[highway=emergency_access_point][phone][!emergency_telephone_code] {
1208 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1209 suggestAlternative: "emergency_telephone_code";
[11138]1210 group: tr("deprecated tagging");
[11025]1211 fixChangeKey: "phone => emergency_telephone_code";
1212 assertMatch: "node highway=emergency_access_point phone=123";
1213 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=456";
1214 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=456";
1215 assertNoMatch: "node phone=123";
1216}
1217node[highway=emergency_access_point][phone=*emergency_telephone_code],
1218way[highway=emergency_access_point][phone=*emergency_telephone_code] {
1219 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1220 suggestAlternative: "emergency_telephone_code";
[11138]1221 group: tr("deprecated tagging");
[11025]1222 fixRemove: "phone";
1223 assertNoMatch: "node highway=emergency_access_point phone=123";
1224 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1225 assertMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
1226}
1227node[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code],
1228way[highway=emergency_access_point][phone][emergency_telephone_code][phone!=*emergency_telephone_code] {
1229 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1230 suggestAlternative: "emergency_telephone_code";
[11138]1231 group: tr("deprecated tagging");
[11025]1232 assertNoMatch: "node highway=emergency_access_point phone=123";
1233 assertNoMatch: "node highway=emergency_access_point emergency_telephone_code=123";
1234 assertNoMatch: "node highway=emergency_access_point phone=123 emergency_telephone_code=123";
[11232]1235}
1236
1237/* #13879 */
1238way[tracktype=1] {
1239 throwError: tr("{0}", "{0.tag}");
1240 suggestAlternative: "tracktype=grade1";
1241 group: tr("misspelled value");
1242 fixAdd: "tracktype=grade1";
1243}
1244way[tracktype=2] {
1245 throwError: tr("{0}", "{0.tag}");
1246 suggestAlternative: "tracktype=grade2";
1247 group: tr("misspelled value");
1248 fixAdd: "tracktype=grade2";
1249}
1250way[tracktype=3] {
1251 throwError: tr("{0}", "{0.tag}");
1252 suggestAlternative: "tracktype=grade3";
1253 group: tr("misspelled value");
1254 fixAdd: "tracktype=grade3";
1255}
1256way[tracktype=4] {
1257 throwError: tr("{0}", "{0.tag}");
1258 suggestAlternative: "tracktype=grade4";
1259 group: tr("misspelled value");
1260 fixAdd: "tracktype=grade4";
1261}
1262way[tracktype=5] {
1263 throwError: tr("{0}", "{0.tag}");
1264 suggestAlternative: "tracktype=grade5";
1265 group: tr("misspelled value");
1266 fixAdd: "tracktype=grade5";
1267}
1268way[tracktype][tracktype!~/^(1|2|3|4|5|grade1|grade2|grade3|grade4|grade5)$/] {
1269 throwError: tr("wrong value: {0}", "{0.tag}");
1270 suggestAlternative: "tracktype=grade1";
1271 suggestAlternative: "tracktype=grade2";
1272 suggestAlternative: "tracktype=grade3";
1273 suggestAlternative: "tracktype=grade4";
1274 suggestAlternative: "tracktype=grade5";
[11263]1275}
1276
[11477]1277area[area][area!=yes][area!=no] {
[11476]1278 throwError: tr("wrong value: {0}", "{0.tag}");
1279 suggestAlternative: "area=yes";
1280 suggestAlternative: "area=no";
1281}
1282
[11263]1283/* #13953 */
1284*[amenity=hunting_stand][lock=yes],
1285*[amenity=hunting_stand][lock=no] {
1286 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
1287 suggestAlternative: "lockable";
1288 group: tr("deprecated tagging");
1289 fixChangeKey: "lock => lockable";
[11337]1290}
1291
1292*[amenity=advertising][!advertising] {
1293 throwWarning: tr("{0} is deprecated", "{0.tag}");
1294 suggestAlternative: "advertising=*";
1295 group: tr("deprecated tagging");
1296}
1297*[amenity=advertising][advertising] {
1298 throwWarning: tr("{0} is deprecated", "{0.tag}");
1299 suggestAlternative: "advertising=*";
1300 group: tr("deprecated tagging");
1301 fixRemove: "amenity";
1302}
1303
1304way[direction=up][incline=up],
1305way[direction=down][incline=down],
1306way[direction=up][!incline],
1307way[direction=down][!incline] {
1308 throwWarning: tr("{0} is deprecated", "{0.tag}");
1309 suggestAlternative: "incline";
1310 group: tr("deprecated tagging");
1311 fixChangeKey: "direction => incline";
1312}
1313way[direction=up][incline][incline!=up],
1314way[direction=down][incline][incline!=down] {
1315 throwWarning: tr("{0} is deprecated", "{0.tag}");
1316 suggestAlternative: "incline";
1317 group: tr("deprecated tagging");
[13218]1318}
1319
[15310]1320*[building=true],
1321*[building="*"],
1322*[building=Y],
1323*[building=y],
1324*[building=1] {
[13218]1325 throwError: tr("{0}", "{0.tag}");
1326 suggestAlternative: "building=yes";
1327 group: tr("misspelled value");
1328 fixAdd: "building=yes";
[13290]1329}
1330
[15758]1331/* #17786, #18612 */
[15309]1332*[building=abandoned],
1333*[building=address],
1334*[building=bing],
1335*[building=collapsed],
1336*[building=damaged],
1337*[building=demolished],
1338*[building=disused],
1339*[building=fixme],
1340*[building=occupied],
[15758]1341*[building=razed] {
1342 throwWarning: tr("{0} is not a building type.", "{0.tag}");
1343 group: tr("deprecated tagging");
1344}
[15309]1345*[building=other],
1346*[building=unclassified],
1347*[building=undefined],
1348*[building=unknown],
1349*[building=unidentified] {
1350 throwWarning: tr("{0} is not a building type.", "{0.tag}");
1351 group: tr("deprecated tagging");
[15758]1352 fixAdd: "building=yes";
[15309]1353}
1354
[13290]1355/* #15675 */
1356node[power=transformer][location=pole][transformer] {
1357 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1358 group: tr("deprecated tagging");
1359 fixChangeKey: "location => power";
1360}
1361node[power=transformer][location=pole][!transformer] {
1362 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
1363 group: tr("deprecated tagging");
1364 fixChangeKey: "location => power";
1365 fixAdd: "transformer=yes";
1366}
[13320]1367
1368node[tourism=picnic_table],
1369node[amenity=picnic_table],
1370node[leisure=picnic],
1371node[leisure=picnic_site] {
1372 throwWarning: tr("{0} is deprecated", "{0.tag}");
1373 suggestAlternative: "tourism=picnic_site";
1374 suggestAlternative: "leisure=picnic_table";
1375 group: tr("deprecated tagging");
[13339]1376}
1377
1378/* #15804 */
1379relation[water=salt],
1380way[water=salt],
1381way[water=salt_pool],
1382way[water=salt_panne],
1383way[water=salt_pond] {
1384 throwWarning: tr("{0} is deprecated", "{0.tag}");
1385 suggestAlternative: "salt=yes";
1386 suggestAlternative: "landuse=salt_pond";
1387 group: tr("deprecated tagging");
1388}
1389
1390/* #15805 */
1391way[water=tidal] {
1392 throwWarning: tr("{0} is deprecated", "{0.tag}");
1393 suggestAlternative: "tidal=yes";
1394 fixAdd: "tidal=yes";
1395 fixRemove: "water";
1396 group: tr("deprecated tagging");
[13424]1397}
1398
1399*[amenity=toilet] {
1400 throwError: tr("{0}", "{0.tag}");
1401 suggestAlternative: "amenity=toilets";
1402 group: tr("misspelled value");
1403 fixAdd: "amenity=toilets";
[13576]1404}
1405
1406way[power=busbar] {
1407 throwWarning: tr("{0} is deprecated", "{0.tag}");
1408 suggestAlternative: "power=line + line=busbar";
1409 group: tr("deprecated tagging");
1410 fixAdd: "power=line";
1411 fixAdd: "line=busbar";
[14393]1412}
1413
1414/* #16924 */
1415*[man_made=MDF],
1416*[man_made=telephone_exchange] {
1417 throwWarning: tr("{0} is deprecated", "{0.tag}");
1418 suggestAlternative: "telecom=exchange";
1419 fixAdd: "telecom=exchange";
1420 fixRemove: "man_made";
1421 group: tr("deprecated tagging");
1422}
1423*[building=central_office] {
1424 throwWarning: tr("{0} is deprecated", "{0.tag}");
1425 suggestAlternative: "telecom=exchange";
1426 fixAdd: "telecom=exchange";
1427 fixAdd: "building=yes";
1428 group: tr("deprecated tagging");
1429}
1430*[telecom=central_office] {
1431 throwWarning: tr("{0} is deprecated", "{0.tag}");
1432 suggestAlternative: "telecom=exchange";
1433 fixAdd: "telecom=exchange";
1434 group: tr("deprecated tagging");
1435}
1436
1437/* #16925 */
1438node[communication=outdoor_dslam],
1439node[man_made=outdoor_dslam],
1440node[street_cabinet=outdoor_dslam] {
1441 throwWarning: tr("{0} is deprecated", "{0.tag}");
1442 suggestAlternative: "telecom=service_device";
1443 fixAdd: "telecom=service_device";
1444 fixRemove: "{0.key}";
1445 group: tr("deprecated tagging");
1446}
1447node[telecom=dslam],
1448node[telecom=outdoor_dslam] {
1449 throwWarning: tr("{0} is deprecated", "{0.tag}");
1450 suggestAlternative: "telecom=service_device";
1451 fixAdd: "telecom=service_device";
1452 group: tr("deprecated tagging");
1453}
[14593]1454
1455/* #15774 */
1456node[amenity=fire_hydrant] {
1457 throwWarning: tr("{0} is deprecated", "{0.tag}");
1458 suggestAlternative: "emergency=fire_hydrant";
1459 fixChangeKey: "amenity => emergency";
1460 group: tr("deprecated tagging");
1461}
1462node[fire_hydrant:type=pond] {
1463 throwWarning: tr("{0} is deprecated", "{0.tag}");
1464 suggestAlternative: "water_source=pond";
1465 fixAdd: "water_source=pond";
1466 fixRemove: "{0.key}";
1467 group: tr("deprecated tagging");
1468}
1469node[fire_hydrant:flow_capacity] {
1470 throwWarning: tr("{0} is deprecated", "{0.key}");
1471 suggestAlternative: "flow_rate";
1472 group: tr("deprecated tagging");
1473}
1474node[emergency=fire_hydrant][in_service=no] {
1475 throwWarning: tr("{0} is deprecated", "{1.tag}");
1476 suggestAlternative: "disused:emergency=fire_hydrant";
1477 fixAdd: "disused:emergency=fire_hydrant";
1478 fixRemove: "{1.key}";
1479 fixRemove: "{0.key}";
1480 group: tr("deprecated tagging");
1481}
1482node[fire_hydrant:water_source] {
1483 throwWarning: tr("{0} is deprecated", "{0.key}");
1484 suggestAlternative: "water_source";
1485 fixChangeKey: "fire_hydrant:water_source => water_source";
1486 group: tr("deprecated tagging");
[14814]1487}
1488
1489/* #17383 */
[14815]1490*[natural=waterfall] {
[14814]1491 throwWarning: tr("{0} is deprecated", "{0.tag}");
1492 suggestAlternative: "waterway=waterfall";
1493 fixChangeKey: "natural => waterway";
1494 group: tr("deprecated tagging");
[14867]1495}
1496
1497/* #17249 */
1498*[religion=unitarian] {
1499 throwWarning: tr("{0} is deprecated", "{0.tag}");
1500 suggestAlternative: "religion=unitarian_universalist";
1501 fixAdd: "religion=unitarian_universalist";
1502 group: tr("deprecated tagging");
[14874]1503}
1504
1505*[shop=shopping_centre] {
1506 throwWarning: tr("{0} is deprecated", "{0.tag}");
1507 suggestAlternative: "shop=mall";
1508 fixAdd: "shop=mall";
1509 group: tr("deprecated tagging");
[14917]1510}
1511
1512/* #17504 */
1513*[is_in],
[17944]1514node[/^is_in:/],
1515way[/^is_in:/] {
[14917]1516 throwWarning: tr("{0} is deprecated", "{0.key}");
1517 group: tr("deprecated tagging");
1518 fixRemove: "{0.key}";
1519}
[15004]1520
1521/* #17593 */
1522*[sport=football] {
1523 throwWarning: tr("{0} is deprecated", "{0.tag}");
1524 suggestAlternative: "sport=soccer";
1525 suggestAlternative: "sport=american_football";
1526 suggestAlternative: "sport=australian_football";
1527 suggestAlternative: "sport=canadian_football";
1528 suggestAlternative: "sport=rugby_league";
1529 suggestAlternative: "sport=rugby_union";
1530 suggestAlternative: "sport=gaelic_games";
1531 group: tr("deprecated tagging");
1532}
[15086]1533
1534/* #17556 */
1535*[leisure=common] {
1536 throwWarning: tr("{0} is deprecated", "{0.tag}");
1537 suggestAlternative: "landuse=*";
1538 suggestAlternative: "leisure=*";
1539 suggestAlternative: "designation=common";
1540 group: tr("deprecated tagging");
[15166]1541}
1542
1543/* #17043 */
1544*[cuisine=vegan],
1545*[cuisine=vegetarian] {
1546 throwWarning: tr("{0} is deprecated", "{0.tag}");
1547 suggestAlternative: concat("diet:", "{0.value}", "=yes");
1548 suggestAlternative: concat("diet:", "{0.value}", "=only");
1549 group: tr("deprecated tagging");
1550}
1551
1552/* #17798 */
1553*[kitchen_hours] {
1554 throwWarning: tr("{0} is deprecated", "{0.key}");
1555 suggestAlternative: "opening_hours:kitchen";
1556 fixChangeKey: "kitchen_hours => opening_hours:kitchen";
1557 group: tr("deprecated tagging");
[15199]1558}
1559
1560/* #17681 */
1561*[shop=money_transfer] {
1562 throwWarning: tr("{0} is deprecated", "{0.tag}");
1563 suggestAlternative: "amenity=money_transfer";
1564 fixChangeKey: "shop => amenity";
1565 group: tr("deprecated tagging");
[15200]1566}
1567
1568*[contact:google_plus] {
1569 throwWarning: tr("{0} is deprecated", "{0.key}");
1570 fixRemove: "contact:google_plus";
1571 group: tr("deprecated tagging");
[15262]1572}
1573
1574/* #17370 */
1575*[amenity=garages],
1576*[amenity=garage] {
1577 throwWarning: tr("{0} is deprecated", "{0.tag}");
1578 suggestAlternative: concat("building=", "{0.value}");
1579 suggestAlternative: "landuse=garages";
1580 suggestAlternative: "amenity=parking + parking=garage_boxes";
1581 group: tr("deprecated tagging");
1582}
1583*[shop=winery],
1584*[amenity=winery] {
1585 throwWarning: tr("{0} is deprecated", "{0.tag}");
1586 suggestAlternative: "craft=winery";
1587 suggestAlternative: "shop=wine";
1588 group: tr("deprecated tagging");
1589}
1590*[amenity=youth_centre] {
1591 throwWarning: tr("{0} is deprecated", "{0.tag}");
1592 suggestAlternative: "amenity=community_centre + community_centre=youth_centre";
1593 fixAdd: "amenity=community_centre";
1594 fixAdd: "community_centre=youth_centre";
1595 group: tr("deprecated tagging");
1596}
1597*[building:type][building=yes],
1598*[building:type][!building] {
1599 throwWarning: tr("{0} is deprecated", "{0.key}");
1600 suggestAlternative: "building";
1601 group: tr("deprecated tagging");
1602 fixChangeKey: "building:type => building";
1603 assertMatch: "way building:type=church";
1604 assertMatch: "way building:type=church building=yes";
1605 assertNoMatch: "way building:type=church building=supermarket";
1606}
1607*[building:type][building][building!=yes] {
1608 throwWarning: tr("{0} is deprecated", "{0.key}");
1609 suggestAlternative: "building";
1610 group: tr("deprecated tagging");
1611 assertNoMatch: "way building:type=church";
1612 assertNoMatch: "way building:type=church building=yes";
1613 assertMatch: "way building:type=church building=supermarket";
1614}
1615*[escalator] {
1616 throwWarning: tr("{0} is deprecated", "{0.key}");
1617 suggestAlternative: "highway=steps + conveying=*";
1618 group: tr("deprecated tagging");
1619}
1620*[historic_name][!old_name] {
1621 throwWarning: tr("{0} is deprecated", "{0.key}");
1622 suggestAlternative: "old_name";
1623 group: tr("deprecated tagging");
1624 fixChangeKey: "historic_name => old_name";
1625}
1626*[historic_name][old_name] {
1627 throwWarning: tr("{0} is deprecated", "{0.key}");
1628 suggestAlternative: "old_name";
1629 group: tr("deprecated tagging");
1630}
1631*[landuse=field] {
1632 throwWarning: tr("{0} is deprecated", "{0.tag}");
1633 suggestAlternative: "landuse=farmland";
1634 group: tr("deprecated tagging");
1635 fixAdd: "landuse=farmland";
1636}
1637*[leisure=beach] {
1638 throwWarning: tr("{0} is deprecated", "{0.tag}");
1639 suggestAlternative: "natural=beach";
1640 suggestAlternative: "leisure=beach_resort";
1641 group: tr("deprecated tagging");
1642}
1643*[leisure=club] {
1644 throwWarning: tr("{0} is deprecated", "{0.tag}");
1645 suggestAlternative: "club=*";
1646 group: tr("deprecated tagging");
1647}
1648*[leisure=video_arcade] {
1649 throwWarning: tr("{0} is deprecated", "{0.tag}");
1650 suggestAlternative: "leisure=amusement_arcade";
1651 suggestAlternative: "leisure=adult_gaming_centre";
1652 group: tr("deprecated tagging");
1653}
1654*[man_made=jetty] {
1655 throwWarning: tr("{0} is deprecated", "{0.tag}");
1656 suggestAlternative: "man_made=pier";
1657 group: tr("deprecated tagging");
1658 fixAdd: "man_made=pier";
1659}
1660*[man_made=village_pump] {
1661 throwWarning: tr("{0} is deprecated", "{0.tag}");
1662 suggestAlternative: "man_made=water_well";
1663 group: tr("deprecated tagging");
1664 fixAdd: "man_made=water_well";
1665}
1666*[man_made=water_tank] {
1667 throwWarning: tr("{0} is deprecated", "{0.tag}");
1668 suggestAlternative: "man_made=storage_tank + content=water";
1669 group: tr("deprecated tagging");
1670 fixAdd: "man_made=storage_tank";
1671 fixAdd: "content=water";
1672}
1673*[natural=moor] {
1674 throwWarning: tr("{0} is deprecated", "{0.tag}");
1675 suggestAlternative: "natural=heath";
1676 suggestAlternative: "natural=scrub";
1677 suggestAlternative: "natural=grassland";
1678 suggestAlternative: "natural=wetland";
1679 suggestAlternative: "natural=fell";
1680 suggestAlternative: "natural=tundra";
1681 suggestAlternative: "landuse=meadow + meadow=agricultural";
1682 group: tr("deprecated tagging");
1683}
1684*[noexit=no][!fixme] {
1685 throwWarning: tr("{0} is deprecated", "{0.tag}");
1686 suggestAlternative: "fixme=continue";
1687 group: tr("deprecated tagging");
1688 fixAdd: "fixme=continue";
1689 fixRemove: "noexit";
1690}
1691*[noexit=no][fixme] {
1692 throwWarning: tr("{0} is deprecated", "{0.tag}");
1693 suggestAlternative: "fixme=continue";
1694 group: tr("deprecated tagging");
1695}
1696*[shop=dive] {
1697 throwWarning: tr("{0} is deprecated", "{0.tag}");
1698 suggestAlternative: "shop=scuba_diving";
1699 group: tr("deprecated tagging");
1700 fixAdd: "shop=scuba_diving";
1701}
1702*[shop=furnace] {
1703 throwWarning: tr("{0} is deprecated", "{0.tag}");
1704 suggestAlternative: "shop=fireplace";
1705 suggestAlternative: "craft=plumber";
1706 group: tr("deprecated tagging");
1707}
1708*[sport=paragliding] {
1709 throwWarning: tr("{0} is deprecated", "{0.tag}");
1710 suggestAlternative: "sport=free_flying";
1711 group: tr("deprecated tagging");
1712 fixAdd: "sport=free_flying";
1713}
1714*[tourism=bed_and_breakfast] {
1715 throwWarning: tr("{0} is deprecated", "{0.tag}");
1716 suggestAlternative: "tourism=guest_house + guest_house=bed_and_breakfast";
1717 group: tr("deprecated tagging");
1718 fixAdd: "tourism=guest_house";
1719 fixAdd: "guest_house=bed_and_breakfast";
[15263]1720}
1721
1722/* #17880 */
1723*[diaper=yes],
1724*[diaper=no] {
1725 throwWarning: tr("{0} is deprecated", "{0.tag}");
1726 suggestAlternative: concat("changing_table=", "{0.value}");
1727 group: tr("deprecated tagging");
1728 fixChangeKey: "diaper => changing_table";
1729 set diaper_checked;
1730}
1731*[diaper][diaper =~ /^[1-9][0-9]*$/] {
1732 throwWarning: tr("{0} is deprecated", "{0.tag}");
1733 suggestAlternative: concat("changing_table=yes + changing_table:count=", "{0.value}");
1734 group: tr("deprecated tagging");
1735 fixChangeKey: "diaper => changing_table:count";
1736 fixAdd: "changing_table=yes";
1737 set diaper_checked;
1738}
1739*[diaper=room] {
1740 throwWarning: tr("{0} is deprecated", "{0.tag}");
1741 suggestAlternative: "changing_table=room";
1742 suggestAlternative: "changing_table=dedicated_room";
1743 group: tr("deprecated tagging");
1744 set diaper_checked;
1745}
1746*[diaper]!.diaper_checked {
1747 throwWarning: tr("{0} is deprecated", "{0.key}");
1748 suggestAlternative: "changing_table";
1749 group: tr("deprecated tagging");
1750}
1751*[diaper:male=yes] {
1752 throwWarning: tr("{0} is deprecated", "{0.tag}");
1753 suggestAlternative: "changing_table:location=male_toilet";
1754 group: tr("deprecated tagging");
1755 fixAdd: "changing_table:location=male_toilet";
1756 fixRemove: "diaper:male";
1757 set diaper___checked;
1758}
1759*[diaper:female=yes] {
1760 throwWarning: tr("{0} is deprecated", "{0.tag}");
1761 suggestAlternative: "changing_table:location=female_toilet";
1762 group: tr("deprecated tagging");
1763 fixAdd: "changing_table:location=female_toilet";
1764 fixRemove: "diaper:female";
1765 set diaper___checked;
1766}
1767*[diaper:unisex=yes] {
1768 throwWarning: tr("{0} is deprecated", "{0.tag}");
1769 suggestAlternative: "changing_table:location=unisex_toilet";
1770 group: tr("deprecated tagging");
1771 fixAdd: "changing_table:location=unisex_toilet";
1772 fixRemove: "diaper:unisex";
1773 set diaper___checked;
1774}
1775*[diaper:wheelchair=yes],
1776*[diaper:wheelchair=no] {
1777 throwWarning: tr("{0} is deprecated", "{0.tag}");
1778 suggestAlternative: concat("changing_table:wheelchair=", "{0.value}");
1779 group: tr("deprecated tagging");
1780 fixChangeKey: "diaper:wheelchair => changing_table:wheelchair";
1781 set diaper___checked;
1782}
1783*[diaper:fee=yes],
1784*[diaper:fee=no] {
1785 throwWarning: tr("{0} is deprecated", "{0.tag}");
1786 suggestAlternative: concat("changing_table:fee=", "{0.value}");
1787 group: tr("deprecated tagging");
1788 fixChangeKey: "diaper:fee => changing_table:fee";
1789 set diaper___checked;
1790}
1791*[/^diaper:/]!.diaper___checked {
1792 throwWarning: tr("{0} is deprecated", "diaper:*");
1793 suggestAlternative: "changing_table:*";
1794 group: tr("deprecated tagging");
1795}
1796*[changing_table][changing_table!~/^(yes|no|limited)$/] {
1797 throwWarning: tr("wrong value: {0}", "{0.tag}");
1798 suggestAlternative: "changing_table=yes";
1799 suggestAlternative: "changing_table=no";
1800 suggestAlternative: "changing_table=limited";
[15264]1801}
1802
1803/* #17990 */
1804*[roof:shape=half_hipped] {
1805 throwWarning: tr("{0} is deprecated", "{0.tag}");
1806 suggestAlternative: "roof:shape=half-hipped";
1807 group: tr("deprecated tagging");
1808 fixAdd: "roof:shape=half-hipped";
[15266]1809}
1810
1811/* #18003 */
1812*[bridge_name] {
1813 throwWarning: tr("{0} is deprecated", "{0.key}");
1814 suggestAlternative: "bridge:name";
1815 group: tr("deprecated tagging");
1816 fixChangeKey: "bridge_name => bridge:name";
[15270]1817}
1818
1819/* #18007 */
1820*[access=public] {
1821 throwWarning: tr("{0} is deprecated", "{0.tag}");
1822 suggestAlternative: "access=yes";
1823 group: tr("deprecated tagging");
1824 fixAdd: "access=yes";
[15273]1825}
1826
1827/* #17330 */
1828*[crossing=island] {
1829 throwWarning: tr("{0} is deprecated", "{0.tag}");
1830 suggestAlternative: "crossing:island=yes";
1831 group: tr("deprecated tagging");
1832 fixRemove: "crossing";
1833 fixAdd: "crossing:island=yes";
[15360]1834}
1835
1836/* #18152 */
1837*[recycling:metal] {
1838 throwWarning: tr("{0} is deprecated", "{0.key}");
1839 suggestAlternative: "recycling:scrap_metal";
1840 group: tr("deprecated tagging");
1841 fixChangeKey: "recycling:metal => recycling:scrap_metal";
1842}
[15435]1843
1844/* #18154 */
1845*[shop=dog_grooming] {
1846 throwWarning: tr("{0} is deprecated", "{0.tag}");
1847 suggestAlternative: "shop=pet_grooming";
1848 fixAdd: "shop=pet_grooming";
1849 group: tr("deprecated tagging");
[15454]1850}
1851
[17263]1852/* #17984, #19383 */
[15454]1853*[tower:type=anchor],
1854*[tower:type=suspension] {
1855 throwWarning: tr("{0} is deprecated", "{0.tag}");
1856 suggestAlternative: concat("line_attachment=", "{0.value}");
1857 fixChangeKey: "tower:type => line_attachment";
[17263]1858 set power_tower_type_warning;
[15454]1859 group: tr("deprecated tagging");
[15464]1860}
[17263]1861*[tower:type=branch][branch:type=split],
1862*[tower:type=branch][branch:type=loop] {
1863 throwWarning: tr("{0} is deprecated", "{0.tag}");
1864 suggestAlternative: "line_management=split";
1865 fixAdd: "line_management=split";
1866 fixRemove: "tower:type";
1867 fixRemove: "branch:type";
1868 set power_tower_type_warning;
1869 group: tr("deprecated tagging");
1870}
1871*[tower:type=branch][!branch:type],
1872*[tower:type=branch][branch:type=tap] {
1873 throwWarning: tr("{0} is deprecated", "{0.tag}");
1874 suggestAlternative: "line_management=branch";
1875 fixAdd: "line_management=branch";
1876 fixRemove: "tower:type";
1877 fixRemove: "branch:type";
1878 set power_tower_type_warning;
1879 group: tr("deprecated tagging");
1880}
1881*[tower:type=branch][branch:type=cross] {
1882 throwWarning: tr("{0} is deprecated", "{0.tag}");
1883 suggestAlternative: "line_management=cross";
1884 fixAdd: "line_management=cross";
1885 fixRemove: "tower:type";
1886 fixRemove: "branch:type";
1887 set power_tower_type_warning;
1888 group: tr("deprecated tagging");
1889}
1890*[tower:type=termination] {
1891 throwWarning: tr("{0} is deprecated", "{0.tag}");
1892 suggestAlternative: "line_management=termination";
1893 fixAdd: "line_management=termination";
1894 fixRemove: "tower:type";
1895 set power_tower_type_warning;
1896 group: tr("deprecated tagging");
1897}
[17284]1898*[tower:type=transition] {
1899 throwWarning: tr("{0} is deprecated", "{0.tag}");
1900 suggestAlternative: "location:transition=yes";
1901 fixAdd: "location:transition=yes";
1902 fixRemove: "tower:type";
1903 set power_tower_type_warning;
1904 group: tr("deprecated tagging");
1905}
[17263]1906*[tower:type=transposing] {
1907 throwWarning: tr("{0} is deprecated", "{0.tag}");
1908 suggestAlternative: "line_management=transpose";
1909 fixAdd: "line_management=transpose";
1910 fixRemove: "tower:type";
1911 set power_tower_type_warning;
1912 group: tr("deprecated tagging");
1913}
1914*[tower:type=crossing] {
1915 throwWarning: tr("{0} is deprecated", "{0.tag}");
1916 suggestAlternative: "height=* + design=*";
1917 set power_tower_type_warning;
1918 group: tr("deprecated tagging");
1919}
1920*[tower:type][power][power=~/^(tower|pole|insulator|portal|terminal)$/]!.power_tower_type_warning {
1921 throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
1922 suggestAlternative: "design";
1923 suggestAlternative: "structure";
[18834]1924 suggestAlternative: "line_arrangement";
1925 suggestAlternative: "line_attachment";
[17263]1926 suggestAlternative: "line_management";
1927 set generic_power_tower_type_warning;
1928 group: tr("deprecated tagging");
1929}
[15464]1930node[pole:type=anchor],
1931node[pole:type=suspension] {
1932 throwWarning: tr("{0} is deprecated", "{0.tag}");
1933 suggestAlternative: concat("line_attachment=", "{0.value}");
1934 fixChangeKey: "pole:type => line_attachment";
[17263]1935 set power_pole_type_warning;
[15464]1936 group: tr("deprecated tagging");
1937}
[17263]1938node[pole:type=branch][branch:type=split],
1939node[pole:type=branch][branch:type=loop] {
1940 throwWarning: tr("{0} is deprecated", "{0.tag}");
1941 suggestAlternative: "line_management=split";
1942 fixAdd: "line_management=split";
1943 fixRemove: "pole:type";
1944 fixRemove: "branch:type";
1945 set power_pole_type_warning;
1946 group: tr("deprecated tagging");
1947}
1948node[pole:type=branch][!branch:type],
1949node[pole:type=branch][branch:type=tap] {
1950 throwWarning: tr("{0} is deprecated", "{0.tag}");
1951 suggestAlternative: "line_management=branch";
1952 fixAdd: "line_management=branch";
1953 fixRemove: "pole:type";
1954 fixRemove: "branch:type";
1955 set power_pole_type_warning;
1956 group: tr("deprecated tagging");
1957}
1958node[pole:type=branch][branch:type=cross] {
1959 throwWarning: tr("{0} is deprecated", "{0.tag}");
1960 suggestAlternative: "line_management=cross";
1961 fixAdd: "line_management=cross";
1962 fixRemove: "pole:type";
1963 fixRemove: "branch:type";
1964 set power_pole_type_warning;
1965 group: tr("deprecated tagging");
1966}
1967node[pole:type=termination] {
1968 throwWarning: tr("{0} is deprecated", "{0.tag}");
1969 suggestAlternative: "line_management=termination";
1970 fixAdd: "line_management=termination";
1971 fixRemove: "pole:type";
1972 set power_pole_type_warning;
1973 group: tr("deprecated tagging");
1974}
[17284]1975node[pole:type=transition] {
1976 throwWarning: tr("{0} is deprecated", "{0.tag}");
1977 suggestAlternative: "location:transition=yes";
1978 fixAdd: "location:transition=yes";
1979 fixRemove: "pole:type";
1980 set power_pole_type_warning;
1981 group: tr("deprecated tagging");
1982}
[17263]1983*[pole:type][power][power=~/^(tower|pole|insulator|portal|terminal)$/]!.power_pole_type_warning!.generic_power_tower_type_warning {
1984 throwWarning: tr("{0} is deprecated for {1}", "{0.key}", "{1.tag}");
[18834]1985 suggestAlternative: "line_arrangement";
1986 suggestAlternative: "line_attachment";
[17263]1987 suggestAlternative: "line_management";
1988 group: tr("deprecated tagging");
1989}
[15526]1990
1991/* #18267 */
[15528]1992node[man_made=pipeline_marker],
[15526]1993node[pipeline=marker],
1994node[power=marker],
1995node[cable=marker] {
1996 throwWarning: tr("{0} is deprecated", "{0.tag}");
1997 suggestAlternative: "marker=* + utility=*";
1998 group: tr("deprecated tagging");
[15533]1999}
2000
2001/* #17643 */
2002way[barrier=embankment] {
2003 throwWarning: tr("{0} is deprecated", "{0.tag}");
2004 suggestAlternative: "man_made=embankment";
2005 suggestAlternative: "embankment=yes";
2006 group: tr("deprecated tagging");
[15636]2007}
2008
2009/* #18469 */
2010way[landuse=churchyard] {
2011 throwWarning: tr("{0} is deprecated", "{0.tag}");
2012 suggestAlternative: "landuse=religious";
2013 suggestAlternative: "amenity=graveyard";
2014 group: tr("deprecated tagging");
2015}
[15648]2016
2017*[sloped_curb=yes][!kerb],
2018*[sloped_curb=both][!kerb] {
2019 throwWarning: tr("{0} is deprecated", "{0.tag}");
2020 suggestAlternative: "kerb=lowered";
2021 group: tr("deprecated tagging");
2022 fixRemove: "sloped_curb";
2023 fixAdd: "kerb=lowered";
2024}
2025*[sloped_curb=no][!kerb] {
2026 throwWarning: tr("{0} is deprecated", "{0.tag}");
2027 suggestAlternative: "kerb=yes";
2028 group: tr("deprecated tagging");
2029 fixRemove: "sloped_curb";
2030 fixAdd: "kerb=yes";
2031}
2032*[sloped_curb][sloped_curb !~ /^(yes|both|no)$/][!kerb],
2033*[sloped_curb][kerb] {
2034 throwWarning: tr("{0} is deprecated", "{0.key}");
2035 suggestAlternative: "kerb=*";
2036 group: tr("deprecated tagging");
2037}
[15715]2038
2039/* #18571 */
2040*[unnamed=yes] {
2041 throwWarning: tr("{0} is deprecated", "{0.tag}");
2042 suggestAlternative: "noname=yes";
2043 fixChangeKey: "unnamed => noname";
2044 group: tr("deprecated tagging");
[15722]2045}
2046
2047node[segregated][segregated!=yes][segregated!=no],
2048way[segregated ][segregated!=yes][segregated!=no] {
2049 throwWarning: tr("unusual value of {0}", "{0.key}");
[15758]2050}
2051
2052/* #18603 */
2053way[bicycle:oneway] {
2054 throwWarning: tr("{0} is deprecated", "{0.key}");
2055 suggestAlternative: "oneway:bicycle";
2056 fixChangeKey: "bicycle:oneway => oneway:bicycle";
2057 group: tr("deprecated tagging");
2058}
2059
2060/* #18605 */
2061*[building:height] {
2062 throwWarning: tr("{0} is deprecated", "{0.key}");
2063 suggestAlternative: "height";
2064 fixChangeKey: "building:height => height";
2065 group: tr("deprecated tagging");
2066}
2067*[building:min_height] {
2068 throwWarning: tr("{0} is deprecated", "{0.key}");
2069 suggestAlternative: "min_height";
2070 fixChangeKey: "building:min_height => min_height";
2071 group: tr("deprecated tagging");
[15831]2072}
2073
2074/* #11232 */
2075way[highway][construction=yes][highway!=construction] {
2076 throwWarning: tr("{0} is deprecated", "{1.tag}");
2077 suggestAlternative: "construction=minor";
2078 suggestAlternative: concat("highway=construction + construction=", "{0.value}");
2079 group: tr("deprecated tagging");
[15867]2080}
2081
[18644]2082/* #18659, #20539 */
2083*[car] {
[15867]2084 throwWarning: tr("{0} is deprecated", "{0.key}");
2085 suggestAlternative: "motorcar";
2086 group: tr("deprecated tagging");
2087 fixChangeKey: "car => motorcar";
2088}
[15930]2089
2090/* #18767 */
2091*[navigationaid=approach_light],
2092*[navigationaid="ALS (Approach lighting system)"] {
2093 throwWarning: tr("{0} is deprecated", "{0.tag}");
2094 suggestAlternative: "navigationaid=als";
2095 group: tr("deprecated tagging");
2096 fixAdd: "navigationaid=als";
[15966]2097}
2098
2099/* #18819 */
2100node[exit_to] {
2101 throwWarning: tr("{0} is deprecated", "{0.key}");
2102 suggestAlternative: "destination";
2103 group: tr("deprecated tagging");
[16173]2104}
2105
2106/* #18951 */
[16185]2107*[water=riverbank][!natural] {
[16173]2108 throwWarning: tr("{0} is deprecated", "{0.tag}");
[16185]2109 suggestAlternative: "natural=water + water=river";
[16173]2110 group: tr("deprecated tagging");
2111 fixAdd: "water=river";
[16185]2112 fixAdd: "natural=water";
2113}
2114*[water=riverbank][natural] {
2115 throwWarning: tr("{0} is deprecated", "{0.tag}");
2116 suggestAlternative: "natural=water + water=river";
2117 group: tr("deprecated tagging");
[16316]2118}
2119
[18519]2120/* #21630 */
2121*[waterway=riverbank][!natural][!water],
2122*[waterway=riverbank][natural=water][!water],
2123*[waterway=riverbank][!natural][water=river],
2124*[waterway=riverbank][natural=water][water=river] {
2125 throwWarning: tr("{0} is deprecated", "{0.tag}");
2126 suggestAlternative: "natural=water + water=river";
2127 group: tr("deprecated tagging");
2128 fixAdd: "natural=water";
2129 fixAdd: "water=river";
2130 fixRemove: "waterway";
2131 assertMatch: "way waterway=riverbank";
2132 assertMatch: "way waterway=riverbank natural=water";
2133 assertMatch: "way waterway=riverbank water=river";
2134 assertMatch: "way waterway=riverbank natural=water water=river";
2135 assertNoMatch: "way waterway=riverbank natural=shingle";
2136 assertNoMatch: "way waterway=riverbank water=lake";
2137 assertNoMatch: "way waterway=riverbank natural=water water=lake";
2138 assertNoMatch: "way waterway=riverbank natural=shingle water=river";
2139}
2140*[waterway=riverbank][natural][natural!=water],
2141*[waterway=riverbank][water][water!=river] {
2142 throwWarning: tr("{0} is deprecated", "{0.tag}");
2143 suggestAlternative: "natural=water + water=river";
2144 group: tr("deprecated tagging");
2145 assertMatch: "way waterway=riverbank natural=shingle";
2146 assertMatch: "way waterway=riverbank water=lake";
2147 assertNoMatch: "way waterway=riverbank";
2148 assertNoMatch: "way waterway=riverbank natural=water";
2149 assertNoMatch: "way waterway=riverbank water=river";
2150 assertNoMatch: "way waterway=riverbank natural=water water=river";
2151}
2152
[16316]2153node[amenity=bench][capacity][!seats],
2154way[amenity=bench][capacity][!seats] {
2155 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
2156 suggestAlternative: "seats";
2157 group: tr("deprecated tagging");
2158 fixChangeKey: "capacity => seats";
2159}
2160node[amenity=bench][capacity][seats],
2161way[amenity=bench][capacity][seats] {
2162 throwWarning: tr("{0} is deprecated for {1}", "{1.key}", "{0.tag}");
2163 suggestAlternative: "seats";
2164 group: tr("deprecated tagging");
[16656]2165}
2166
2167/* #19396 */
2168way[stream=intermittent] {
2169 throwWarning: tr("{0} is deprecated", "{0.tag}");
2170 suggestAlternative: "intermittent=yes";
2171 suggestAlternative: "seasonal=yes";
2172 group: tr("deprecated tagging");
[16714]2173}
2174
2175*[shop=lamps] {
2176 throwWarning: tr("{0} is deprecated", "{0.tag}");
2177 suggestAlternative: "shop=lighting";
2178 group: tr("deprecated tagging");
2179 fixAdd: "shop=lighting";
[16752]2180}
2181
[16762]2182/* #19180 */
[16752]2183*[access=customer] {
2184 throwWarning: tr("{0} is deprecated", "{0.tag}");
2185 suggestAlternative: "access=customers";
2186 group: tr("deprecated tagging");
2187 fixAdd: "access=customers";
2188}
2189*[addr:inclusion=estimated] {
2190 throwWarning: tr("{0} is deprecated", "{0.tag}");
2191 suggestAlternative: "addr:inclusion=estimate";
2192 group: tr("deprecated tagging");
2193 fixAdd: "addr:inclusion=estimate";
2194}
2195*[building=apartment] {
2196 throwWarning: tr("{0} is deprecated", "{0.tag}");
2197 suggestAlternative: "building=apartments";
2198 group: tr("deprecated tagging");
2199 fixAdd: "building=apartments";
[16760]2200}
2201node[lamp_mount="bent mast"] {
2202 throwWarning: tr("{0} is deprecated", "{0.tag}");
2203 suggestAlternative: "lamp_mount=bent_mast";
2204 group: tr("deprecated tagging");
2205 fixAdd: "lamp_mount=bent_mast";
2206}
2207node[lamp_mount="straight mast"] {
2208 throwWarning: tr("{0} is deprecated", "{0.tag}");
2209 suggestAlternative: "lamp_mount=straight_mast";
2210 group: tr("deprecated tagging");
2211 fixAdd: "lamp_mount=straight_mast";
2212}
2213node[lamp_type=electrical] {
2214 throwWarning: tr("{0} is deprecated", "{0.tag}");
2215 suggestAlternative: "lamp_type=electric";
2216 group: tr("deprecated tagging");
2217 fixAdd: "lamp_type=electric";
[16787]2218}
2219*[generator:type=solar_photovoltaic_panels] {
2220 throwWarning: tr("{0} is deprecated", "{0.tag}");
2221 suggestAlternative: "generator:type=solar_photovoltaic_panel";
2222 group: tr("deprecated tagging");
2223 fixAdd: "generator:type=solar_photovoltaic_panel";
2224}
2225*[building=part] {
2226 throwWarning: tr("{0} is deprecated", "{0.tag}");
2227 suggestAlternative: "building:part=yes";
2228 group: tr("deprecated tagging");
2229 /* without autofix, it is not clear if a building or a building part is mapped */
2230}
2231
[17017]2232/* #19739 */
2233*[natural=sink_hole] {
2234 throwWarning: tr("{0} is deprecated", "{0.tag}");
2235 suggestAlternative: "natural=sinkhole";
2236 group: tr("deprecated tagging");
2237 fixAdd: "natural=sinkhole";
2238}
2239
[17020]2240/* #19782 */
2241*[climbing:grade:UIAA:min] {
2242 throwWarning: tr("{0} is deprecated", "{0.key}");
2243 suggestAlternative: "climbing:grade:uiaa:min";
2244 group: tr("deprecated tagging");
2245 fixChangeKey: "climbing:grade:UIAA:min => climbing:grade:uiaa:min";
2246}
2247*[climbing:grade:UIAA:max] {
2248 throwWarning: tr("{0} is deprecated", "{0.key}");
2249 suggestAlternative: "climbing:grade:uiaa:max";
2250 group: tr("deprecated tagging");
2251 fixChangeKey: "climbing:grade:UIAA:max => climbing:grade:uiaa:max";
2252}
2253*[climbing:grade:UIAA:mean] {
2254 throwWarning: tr("{0} is deprecated", "{0.key}");
2255 suggestAlternative: "climbing:grade:uiaa:mean";
2256 group: tr("deprecated tagging");
2257 fixChangeKey: "climbing:grade:UIAA:mean => climbing:grade:uiaa:mean";
2258}
2259*[climbing:grade:UIAA] {
2260 throwWarning: tr("{0} is deprecated", "{0.key}");
2261 suggestAlternative: "climbing:grade:uiaa";
2262 group: tr("deprecated tagging");
2263 fixChangeKey: "climbing:grade:UIAA => climbing:grade:uiaa";
2264}
2265
[17048]2266/* #19835 */
2267*[cuisine][cuisine =~ /^(?i)(bbq)$/] { /* single value cases with autofix */
2268 throwWarning: tr("{0} is deprecated", "{0.tag}");
2269 suggestAlternative: "cuisine=barbecue";
2270 group: tr("deprecated tagging");
2271 fixAdd: "cuisine=barbecue";
2272 set bbq_autofix;
2273 assertMatch: "way cuisine=bbq";
2274 assertMatch: "way cuisine=BBQ";
2275 assertNoMatch: "way cuisine=pizza;Bbq";
2276 assertNoMatch: "way cuisine=pizza;bbq";
2277 assertNoMatch: "way cuisine=bbq;pizza";
2278 assertNoMatch: "way cuisine=pasta;bbq;pizza";
2279 assertNoMatch: "way cuisine=korean_bbq";
2280 assertNoMatch: "way cuisine=korean_bbq;bbq";
2281}
2282*[cuisine =~ /(?i)(;bbq|bbq;)/][cuisine!~/(?i)(_bbq)/] { /* multi value cases without autofix */
2283 throwWarning: tr("{0} is deprecated", "cuisine=bbq");
2284 suggestAlternative: "cuisine=barbecue";
2285 group: tr("deprecated tagging");
2286 assertNoMatch: "way cuisine=bbq";
2287 assertNoMatch: "way cuisine=BBQ";
2288 assertMatch: "way cuisine=pizza;Bbq";
2289 assertMatch: "way cuisine=pizza;bbq";
2290 assertMatch: "way cuisine=bbq;pizza";
2291 assertMatch: "way cuisine=pasta;bbq;pizza";
2292 assertNoMatch: "way cuisine=korean_bbq";
2293 assertNoMatch: "way cuisine=korean_bbq;bbq"; /* corner case (mixed ; and _) not supported by these rules, probably not present in the osm database */
2294}
2295
[17469]2296/* #17498, #20392 */
[17122]2297way[cycleway=none],
2298way[cycleway:left=none],
[17469]2299way[cycleway:right=none],
2300way[shoulder=none] {
[17122]2301 throwWarning: tr("{0} is deprecated", "{0.tag}");
2302 suggestAlternative: concat("{0.key}", "=no");
2303 group: tr("deprecated tagging");
2304 fixAdd: concat("{0.key}", "=no");
2305}
2306
[17153]2307/* #17809 */
2308*[Fixme] {
2309 throwWarning: tr("{0} is deprecated", "{0.key}");
2310 suggestAlternative: "fixme";
2311 group: tr("deprecated tagging");
2312 fixChangeKey: "Fixme => fixme";
2313 assertMatch: "way Fixme=foo";
2314 assertNoMatch: "way fixme=foo";
2315 assertNoMatch: "way FIXME=foo";
2316}
2317
[17468]2318/* #20338 */
2319*[amenity=embassy] {
2320 throwWarning: tr("{0} is deprecated", "{0.tag}");
2321 suggestAlternative: "office=diplomatic + diplomatic=embassy";
2322 group: tr("deprecated tagging");
2323 fixAdd: "office=diplomatic";
2324 fixChangeKey: "amenity => diplomatic";
2325}
2326
[17940]2327/* #11019 */
2328*[service:bicycle:chaintool] {
2329 throwWarning: tr("{0} is deprecated", "{0.key}");
2330 suggestAlternative: "service:bicycle:chain_tool";
2331 group: tr("deprecated tagging");
2332 fixChangeKey: "service:bicycle:chaintool => service:bicycle:chain_tool";
2333}
2334
[17942]2335/* #20434 */
2336*[building:roof:shape] {
2337 throwWarning: tr("{0} is deprecated", "{0.key}");
2338 suggestAlternative: "roof:shape";
2339 group: tr("deprecated tagging");
2340 fixChangeKey: "building:roof:shape => roof:shape";
2341}
2342
[18230]2343/* #20530 */
2344*[man_made=pumping_rig][!pump_mechanism][!mechanical_driver][!mechanical_coupling] {
2345 throwWarning: tr("{0} is deprecated", "{0.tag}");
2346 suggestAlternative: "man_made=petroleum_well";
2347 suggestAlternative: "man_made=water_well";
2348 fixAdd: "pump_mechanism=piston";
2349 fixAdd: "mechanical_driver=combustion_engine";
2350 fixAdd: "mechanical_coupling=nodding_donkey";
2351 group: tr("deprecated tagging");
2352 set pumping_ring_no_mech;
2353}
2354*[man_made=pumping_rig]!.pumping_ring_no_mech {
2355 throwWarning: tr("{0} is deprecated", "{0.tag}");
2356 suggestAlternative: "man_made=petroleum_well";
2357 suggestAlternative: "man_made=water_well";
2358 group: tr("deprecated tagging");
2359}
2360*[pump:type=beam_pump][!pump_mechanism][!mechanical_driver][!mechanical_coupling] {
2361 throwWarning: tr("{0} is deprecated", "{0.tag}");
2362 suggestAlternative: "pump_mechanism";
2363 fixRemove: "pump:type";
2364 fixAdd: "pump_mechanism=piston";
2365 fixAdd: "mechanical_driver=combustion_engine";
2366 fixAdd: "mechanical_coupling=nodding_donkey";
2367 group: tr("deprecated tagging");
2368 set beam_pump_no_mech
2369}
2370*[pump:type]!.beam_pump_no_mech {
2371 throwWarning: tr("{0} is deprecated", "{0.tag}");
2372 suggestAlternative: "pump_mechanism";
2373 group: tr("deprecated tagging");
2374}
2375*[substance=heat] {
2376 throwWarning: tr("{0} is deprecated", "{0.tag}");
2377 suggestAlternative: "substance=hot_water";
2378 suggestAlternative: "substance=steam";
2379 group: tr("deprecated tagging");
2380}
2381
[17950]2382/* #20959 */
2383*[landuse=school] {
2384 throwWarning: tr("{0} is deprecated", "{0.tag}");
2385 suggestAlternative: "amenity=college";
2386 suggestAlternative: "amenity=school";
2387 suggestAlternative: "amenity=university";
2388 suggestAlternative: "landuse=education";
2389 group: tr("deprecated tagging");
2390}
2391
[18719]2392/* #21782 */
2393*[amenity=vending_machine][vending=parcel_mail_in],
2394*[amenity=vending_machine][vending=parcel_pickup] {
2395 set .parcel_fixable;
2396 throwWarning: tr("{0} is deprecated", "{1.tag}");
2397 suggestAlternative: "amenity=parcel_locker + {1.value}=yes";
2398 fixAdd: "amenity=parcel_locker";
2399 fixAdd: "{1.value}=yes";
2400 fixRemove: "vending";
2401 group: tr("deprecated tagging");
2402 assertMatch: "node amenity=vending_machine vending=parcel_mail_in";
2403 assertMatch: "node amenity=vending_machine vending=parcel_pickup";
2404}
2405*[amenity=vending_machine][vending][vending~=parcel_mail_in][vending~=parcel_pickup][count(uniq_list(split(";", tag("vending")))) == 2] {
2406 set .parcel_fixable;
2407 throwWarning: tr("{0} is deprecated", "{1.tag}");
2408 suggestAlternative: "amenity=parcel_locker + parcel_pickup=yes + parcel_mail_in=yes";
2409 fixAdd: "amenity=parcel_locker";
2410 fixAdd: "parcel_pickup=yes";
2411 fixAdd: "parcel_mail_in=yes";
2412 fixRemove: "vending";
2413 group: tr("deprecated tagging");
2414 assertMatch: "node amenity=vending_machine vending=parcel_mail_in;parcel_pickup";
2415 assertMatch: "node amenity=vending_machine vending=parcel_pickup;parcel_mail_in";
2416}
2417*[amenity=vending_machine][vending~=parcel_mail_in]!.parcel_fixable,
2418*[amenity=vending_machine][vending~=parcel_pickup]!.parcel_fixable {
2419 throwWarning: tr("{0} is deprecated", "{1.tag}");
2420 suggestAlternative: "amenity=parcel_locker + {1.value}=yes";
2421 assertMatch: "node amenity=vending_machine vending=parcel_pickup;stamp";
2422 group: tr("deprecated tagging");
2423}
2424
[18405]2425/* #21954 decoturf was added to JOSM presets in r8123 and replaced with acrylic in r18404 */
2426*[surface=decoturf] {
2427 throwWarning: tr("{0} is deprecated", "{0.tag}");
2428 suggestAlternative: "surface=acrylic";
2429 fixAdd: "surface=acrylic";
2430 group: tr("deprecated tagging");
2431}
2432
[17956]2433/* #20637 */
2434*[role] {
[17959]2435 throwWarning: tr("{0} as a tag on an object. Roles are specified in the relation members list instead.", "{0.tag}", "{0.key}");
[17956]2436 assertMatch: "node role=stop";
2437}
2438
[18524]2439/* #22120 */
2440*[school=entrance] {
2441 throwWarning: tr("{0} is deprecated", "{0.tag}");
2442 suggestAlternative: "entrance=yes";
2443 suggestAlternative: "entrance=main";
2444 group: tr("deprecated tagging");
2445}
2446
[18535]2447/* #21836 */
2448*[voltage-high],
2449*[voltage-low] {
2450 throwWarning: tr("{0} is deprecated", "{0.key}");
2451 suggestAlternative: "voltage:primary";
2452 suggestAlternative: "voltage:secondary";
2453 group: tr("deprecated tagging");
2454}
2455
[18545]2456/* #22335 */
2457*[toilet][!toilets] {
2458 throwWarning: tr("{0} is deprecated", "{0.key}");
2459 suggestAlternative: "toilets";
2460 group: tr("deprecated tagging");
2461 fixChangeKey: "toilet => toilets";
2462}
2463*[toilet][toilets] {
2464 throwWarning: tr("{0} is deprecated", "{0.key}");
2465 suggestAlternative: "toilets";
2466 group: tr("deprecated tagging");
2467}
2468
[18552]2469/* Replaced by type=connectivity */
2470*[type="turnlanes:turns"] {
2471 throwWarning: tr("{0} is deprecated", "{0.tag}");
2472 suggestAlternative: "type=connectivity";
2473 group: tr("deprecated tagging");
2474}
2475
[18633]2476/* temporary URLs, can be extended to other websites and other keys e.g. "url" or "website", #22397 */
[18564]2477*[image][image=~/^https:\/\/westnordost.de\/p\//] {
2478 throwWarning: tr("{0} with a temporary URL which may be outdated very soon", "{0.key}");
2479 fixRemove: "{0.key}";
2480 assertMatch: "node image=https://westnordost.de/p/17484.jpg";
2481 assertNoMatch: "node image=https://web.archive.org/web/20220623215400/https://westnordost.de/p/97331.jpg";
2482 assertNoMatch: "node image=https://commons.wikimedia.org/wiki/File:2015-05-13_Basteibr%C3%BCcke-.jpg";
2483}
2484
[18633]2485/* Replaced by archaeological_site, see #22561 */
2486*[historic=archaeological_site][site_type] {
2487 throwWarning: tr("{0} should be replaced with {1}", "{1.key}", "archaeological_site");
2488 fixChangeKey: "site_type => archaeological_site";
2489 assertMatch: "node historic=archaeological_site site_type=fortification";
2490 assertNoMatch: "node historic=archaeological_site site_type2=fortification";
2491}
2492
[18736]2493/* Tag was renamed, see #22957 */
2494area[parking:orientation][!orientation] {
2495 throwWarning: tr("{0} is deprecated", "{0.tag}");
2496 group: tr("deprecated tagging");
2497 suggestAlternative: "{1.key}={0.value}";
2498 fixChangeKey: "{0.key} => {1.key}";
2499}
2500area[parking:orientation][orientation]["parking:orientation"=*orientation] {
2501 throwWarning: tr("{0} is deprecated", "{0.tag}");
2502 group: tr("deprecated tagging");
2503 fixRemove: "{0.key}";
2504}
2505area[parking:orientation][orientation]["parking:orientation"!=*orientation] {
2506 throwWarning: tr("{0} is deprecated", "{0.tag}");
2507 group: tr("deprecated tagging");
2508 suggestAlternative: "{1.key}={0.value}";
2509 suggestAlternative: "{1.key}={1.value}";
2510}
2511
[19025]2512/* Tags were consolidated, see #23177 */
2513*[gnis:id][!gnis:feature_id],
2514*[tiger:PLACENS][!gnis:feature_id],
2515*[NHD:GNIS_ID][!gnis:feature_id],
2516*[nhd:gnis_id][!gnis:feature_id],
2517*[ref:gnis][!gnis:feature_id] {
2518 throwWarning: tr("{0} is deprecated", "{0.key}");
2519 group: tr("deprecated tagging");
2520 suggestAlternative: "{1.key}={0.value}";
2521 fixChangeKey: "{0.key} => {1.key}";
2522}
2523*[gnis:id][gnis:feature_id],
2524*[tiger:PLACENS][gnis:feature_id],
2525*[NHD:GNIS_ID][gnis:feature_id],
2526*[nhd:gnis_id][gnis:feature_id],
2527*[ref:gnis][gnis:feature_id] {
2528 throwWarning: tr("{0} is deprecated", "{0.key}");
2529 group: tr("deprecated tagging");
2530 suggestAlternative: "{1.key}";
2531}
[19169]2532/* From the canvec import */
2533*[natural=landform][landform=esker] {
[19204]2534 throwWarning: tr("{0} should be replaced by {1}", "{1.tag}", "geological=esker");
[19169]2535 group: tr("deprecated tagging");
2536 suggestAlternative: "natural=ridge or geological=esker";
2537}
2538*[natural=landform][landform=moraine] {
[19204]2539 throwWarning: tr("{0} should be replaced by {1}", "{1.tag}", "geological=moraine");
[19169]2540 group: tr("deprecated tagging");
2541 suggestAlternative: "geological=moraine";
2542}
2543*[natural=landform][landform=beach] {
[19204]2544 throwWarning: tr("{0} should be replaced by {1}", "{1.tag}", "natural=beach");
[19169]2545 group: tr("deprecated tagging");
2546 suggestAlternative: "natural=beach";
2547}
2548*[natural=landform][landform=tundra_polygon] {
[19204]2549 throwWarning: tr("{0} should be replaced by {1}", "{1.tag}", "natural=tundra");
[19169]2550 group: tr("deprecated tagging");
2551 suggestAlternative: "natural=tundra or natural=fell";
2552}
[19025]2553
[19212]2554way[cycleway=opposite],
2555way[cycleway:left=opposite],
2556way[cycleway:right=opposite],
2557way[cycleway:both=opposite] {
2558 throwWarning: tr("{0} is deprecated", "{0.tag}");
2559 group: tr("deprecated tagging");
2560 fixAdd: "oneway:bicycle=no";
2561 fixRemove: "{0.key}";
2562 /* No automated addition of e.g. cycleway:both=no for cycleway=opposite as it may already be tagged with e.g. cycleway:left=lane */
2563}
2564way[cycleway:left][cycleway:left^=opposite_],
2565way[cycleway:right][cycleway:right^=opposite_] {
2566 throwWarning: tr("{0} is deprecated", "{0.tag}");
2567 group: tr("deprecated tagging");
2568 /* No fix: unambiguous definition */
2569}
2570way[cycleway][cycleway^=opposite_]:righthandtraffic {
2571 throwWarning: tr("{0} is deprecated", "{0.tag}");
2572 group: tr("deprecated tagging");
2573 suggestAlternative: "oneway:bicycle=no + cycleway:right=* + cycleway:left=* + cycleway:left:oneway=-1";
2574}
2575way[cycleway][cycleway^=opposite_]!:righthandtraffic {
2576 throwWarning: tr("{0} is deprecated", "{0.tag}");
2577 group: tr("deprecated tagging");
2578 suggestAlternative: "oneway:bicycle=no + cycleway:right=* + cycleway:left=* + cycleway:right:oneway=-1";
2579}
[19222]2580*[residential=condominium] {
2581 throwWarning: tr("{0} is deprecated", "{0.tag}");
2582 group: tr("deprecated tagging");
2583 suggestAlternative: "residential=apartments + condo=*"
2584}
[19212]2585
[18405]2586/* When tags are deprecated they should be added to ignoretags.cfg too. */
Note: See TracBrowser for help on using the repository browser.