*[access][highway=proposed], *[motor_vehicle?][!vehicle][!access][bicycle_road!=yes][highway =~ /^(motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|secondary_link|tertiary|tertiary_link|unclassified|residential|service|living_street)$/], *[bridge=no], *[building=no], *[elevation="0"], *[layer="0"] { /* see #9365 - Useless tag layer=0 */ throwWarning: tr("{0} is unnecessary", "{0.tag}"); group: tr("unnecessary tag"); fixRemove: "{0.key}"; assertMatch: "way layer=0"; assertMatch: "way bridge=no"; assertMatch: "way highway=proposed access=no"; assertMatch: "way highway=motorway motor_vehicle=yes"; assertNoMatch: "way highway=motorway access=no motor_vehicle=yes"; } area:closed[amenity ][area?][!highway], area:closed[building][area?], area:closed[landuse ][area?][!highway], area:closed[leisure ][area?][!highway][leisure!=track][leisure!=slipway], area:closed[natural ][area?], area:closed[shop ][area?] { throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.key}"); group: tr("unnecessary tag"); fixRemove: "{2.key}"; } /* #14256, #15664 */ area:closed[highway=rest_area][area?], area:closed[highway=services][area?], area:closed[aeroway=aerodrome][area?], area:closed[aeroway=helipad][area?] { throwWarning: tr("{0} is unnecessary for {1}", "{2.key}", "{1.tag}"); group: tr("unnecessary tag"); fixRemove: "{2.key}"; } /* #9257, #17482 */ way[foot =~ /^(yes|designated)$/][!access][highway =~ /^(footway|pedestrian)$/], way[bicycle =~ /^(yes|designated)$/][!vehicle][!access][highway=cycleway], *[building:ruian:type=2][building=farm_auxiliary], *[building:ruian:type=7][building=house], *[building:ruian:type=11][building=hotel], *[building:ruian:type=12][building=warehouse], *[building:ruian:type=13][building=barn], *[building:ruian:type=18][building=garage], *[building:ruian:type=21][building=greenhouse] { throwWarning: tr("{0} is unnecessary for {1}", "{0.tag}", "{1.tag}"); group: tr("unnecessary tag"); fixRemove: "{0.key}"; assertMatch: "way highway=pedestrian foot=designated"; assertNoMatch: "way highway=pedestrian access=no foot=designated"; } *[emergency=permissive] { /* see #9458 - emergency=permissive makes no sense */ throwWarning: tr("{0} makes no sense", "{0.tag"); fixAdd: "emergency=yes"; assertMatch: "way emergency=permissive"; assertNoMatch: "way emergency=designated"; } /* see ticket #7639 -- Warn when a node has the same tags as its parent way. */ way >:sameTags node:tagged { throwWarning: tr("Nodes duplicating parent way tags"); } /* #15477 */ *[payment:cash][payment:coins][payment:notes] { throwWarning: tr("{0} together with {1} and {2}. Remove {0}.", "{0.key}", "{1.key}", "{2.key}"); group: tr("unnecessary tag"); fixRemove: "payment:cash"; } /* see #10346, #15667 */ way[waterway][oneway?] { throwWarning: tr("{0} is unnecessary for {1}", "{1.key}", "{0.key}"); group: tr("unnecessary tag"); fixRemove: "{1.key}"; } way[waterway][oneway=-1] { throwWarning: tr("{0} is unnecessary for {1}. The flow direction is defined by the way direction.", "{1.key}", "{0.key}"); group: tr("unnecessary tag"); } /* #15774 */ node[emergency=fire_hydrant][fire_hydrant:count=1] { throwWarning: tr("{0} is unnecessary for {1}", "{1.tag}", "{0.tag}"); group: tr("unnecessary tag"); fixRemove: "{1.key}"; } /* #17100, #17471 */ *[name][name=~/^(?i)(parking|parkplatz)$/][amenity=parking], *[name][name=~/^(?i)(playground|spielplatz)$/][leisure=playground], *[name][name=~/^(?i)(shop)$/][shop][shop!=no], *[name][name=~/^(?i)(building)$/][building][building!=no], *[name][name=~/^(?i)(house|rumah)$/][building=house], *[name][name=~/^(?i)(kiosk)$/][shop=kiosk], *[name][name=~/^(?i)(jalan)$/][highway], *[name][name=~/^(?i)(silo)$/][man_made=silo], *[name][name=~/^(?i)(silo)$/][building=silo], *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=graveyard], *[name][name=~/^(?i)(cemetery|cmentarz)$/][amenity=cemetery], *[name="АЗС"][amenity=fuel] { throwWarning: tr("{0}", "{0.tag}"); group: tr("descriptive name"); fixRemove: "name"; assertMatch: "node name=parking amenity=parking"; assertMatch: "node name=Parking amenity=parking"; assertNoMatch: "node name=Parking_with_suffix amenity=parking"; assertNoMatch: "node name=Megaparking amenity=parking"; assertMatch: "relation name=parking amenity=parking type=multipolygon"; assertMatch: "relation name=Parking amenity=parking type=multipolygon"; assertNoMatch: "way name=parking"; assertMatch: "relation name=PLAYGROUND leisure=playground type=multipolygon"; assertMatch: "node name=PLaYGrOUNd leisure=playground"; assertMatch: "node name=shop shop=whatever"; assertNoMatch: "node name=shop shop=no"; assertNoMatch: "way name=shop leisure=playground"; assertMatch: "way name=building building=yes"; assertMatch: "way name=building building=house"; assertMatch: "way name=Rumah building=house"; assertNoMatch: "way name=Rumah building=yes"; assertMatch: "way name=house building=house"; assertNoMatch: "way name=house building=yes"; assertMatch: "way name=kiosk building=yes shop=kiosk"; assertNoMatch: "way name=kiosk building=yes"; assertMatch: "way name=silo man_made=silo"; assertMatch: "way name=Silo man_made=silo building=silo"; assertMatch: "way name=Silo building=silo"; assertMatch: "way name=cemetery amenity=graveyard"; assertMatch: "way name=Cmentarz amenity=graveyard"; assertNoMatch: "way name=kiosk amenity=graveyard"; } *[name][name=~/^(?i)(house|rumah)$/][building][building!=house][building!=no] { throwWarning: tr("{0}", "{0.tag}"); group: tr("descriptive name"); /* without fixRemove to avoid possible information loss */ assertNoMatch: "way name=building building=yes"; assertNoMatch: "way name=building building=house"; assertNoMatch: "way name=Rumah building=house"; assertMatch: "way name=Rumah building=yes"; assertNoMatch: "way name=house building=house"; assertMatch: "way name=house building=yes"; }