source: josm/trunk/data/validator/combinations.mapcss@ 11328

Last change on this file since 11328 was 11305, checked in by Klumbumbus, 7 years ago

limit some * validator rules to node or way when the tag is only used on this object type; remove a few rules, which are uneeded, old tags or undocumented tags

  • Property svn:eol-style set to native
File size: 22.2 KB
Line 
1/* Rules partially derived from Taginfo statistics - see ticket #5017
2 * Taginfo query: select keypairs.key1, keypairs.key2, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key1='waterway' and keys.key=keypairs.key2 and (key1<>'highway' or keypairs.count_all>12000) and (key1<>'railway' or keypairs.count_all>3000) and (key1<>'waterway' or keypairs.count_all>800) and key2 not like '%:%' and from_fraction_all>0.97 and 1 union select keypairs.key2, keypairs.key1, keypairs.count_all, keys.count_all, cast(keypairs.count_all as real)/keys.count_all as from_fraction_all from keys, keypairs where key2='waterway' and keys.key=keypairs.key1 and (key2<>'highway' or keypairs.count_all>12000) and (key2<>'railway' or keypairs.count_all>3000) and (key2<>'waterway' or keypairs.count_all>800) and key1 not like '%:%' and from_fraction_all>0.97 and 1 order by keypairs.count_all desc limit 1000;
3 */
4
5/* {0.key} without {1.key} (warning level) */
6way[junction ][!highway][junction!=yes],
7way[lanes ][!highway],
8way[living_street ][!highway],
9way[maintenance ][!highway],
10way[median ][!highway],
11way[motorroad ][!highway],
12node[ntd_id ][!highway],
13way[sac_scale ][!highway],
14way[sidewalk ][!highway],
15way[step_count ][!highway],
16way[tracktype ][!highway],
17way[trail_visibility ][!highway],
18way[trolley_wire ][!highway],
19way[zip_left ][!highway],
20way[zip_right ][!highway],
21way[detail ][!railway][route!=railway],
22way[eddy_current_brake ][!railway][route!=railway],
23way[electrified ][!railway][route!=railway],
24way[etcs ][!railway][route!=railway],
25way[gauge ][!railway][route!=railway],
26way[grade_of_track ][!railway][route!=railway],
27way[kursbuchstrecke ][!railway][route!=railway],
28way[lzb ][!railway][route!=railway],
29way[old_railway_operator ][!railway][route!=railway],
30way[operating_procedure ][!railway][route!=railway],
31way[pzb ][!railway][route!=railway],
32way[structure_gauge ][!railway][route!=railway],
33way[tilting_technology ][!railway][route!=railway],
34way[track_class ][!railway][route!=railway],
35way[tracks ][!railway][route!=railway],
36way[traffic_mode ][!railway][route!=railway],
37way[usage ][!railway][route!=railway][man_made!=pipeline],
38way[workrules ][!railway][route!=railway],
39way[stream ][!waterway],
40way[length_unit ][!waterway],
41way[canal ][!waterway],
42way[have_riverbank ][!waterway],
43*[border_type ][!boundary],
44way[bridge:structure ][!bridge],
45*[piste:difficulty ][!piste:type],
46*[source:date ][!source],
47*[source:name ][!name],
48*[source:maxspeed:forward ][!maxspeed:forward],
49*[source:maxspeed:backward ][!maxspeed:backward],
50*[source:maxspeed:forward ][!source:maxspeed:backward],
51*[source:maxspeed:backward ][!source:maxspeed:forward],
52*[source:building ][!building],
53*[source:ref ][!ref],
54*[source:population ][!population],
55*[source:postal_code ][!postal_code],
56*[source:ele ][!ele],
57*[source:ref:INSEE ][!ref:INSEE],
58*[source:lit ][!lit],
59*[source:hgv ][!hgv],
60*[source:highway ][!highway],
61*[source:maxaxleload ][!maxaxleload],
62*[source:surface ][!surface],
63*[source:bridge ][!bridge],
64*[source:old_name ][!old_name],
65*[source:bicycle ][!bicycle],
66*[source:designation ][!designation],
67*[source:height ][!height],
68*[source:lanes ][!lanes],
69*[source:postcode ][!addr:postcode],
70*[source:housenumber ][!addr:housenumber],
71*[source:addr:postcode ][!addr:postcode],
72*[source:addr:housenumber ][!addr:housenumber],
73*[source:addr ][!/^addr:/],
74*[source:maxspeed ][!/^maxspeed:?/] {
75 throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
76 group: tr("missing tag");
77 assertMatch: "way lanes=42";
78 assertNoMatch: "way lanes=42 highway=unclassified";
79 assertMatch: "node source:addr:postcode=postman";
80 assertMatch: "node source:addr=postman";
81 assertNoMatch: "node source:addr=postman addr:housenumber=42";
82}
83
84/* {0.key} without {1.key} (info level) */
85way[lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1],
86way[lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1],
87*[leaf_type ][!leaf_cycle],
88*[leaf_cycle][!leaf_type] {
89 throwOther: tr("{0} without {1}", "{0.key}", "{1.key}");
90 group: tr("missing tag");
91}
92
93/* {0.key} without {1.tag} */
94*[transformer ][!power],
95way[fence_type ][barrier!=fence],
96*[recycling_type ][amenity!=recycling],
97*[information ][tourism!=information],
98node[board_type ][information!=board],
99*[shelter_type ][amenity!=shelter],
100node[lamp_type ][highway!=street_lamp],
101node[map_type ][information!=map],
102*[site_type ][historic!=archaeological_site],
103*[artwork_type ][tourism!=artwork],
104*[castle_type ][historic!=castle],
105*[bridge:movable ][bridge!=movable],
106*[parking ][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking)$/],
107way[cutline ][man_made!=cutline],
108*[bunker_type ][military!=bunker] {
109 throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
110 group: tr("missing tag");
111}
112
113/* {0.key} without {1.tag} or {2.tag} */
114*[substation ][power!=substation][pipeline!=substation],
115*[reservoir_type ][landuse!=reservoir][water!=reservoir] {
116 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.tag}", "{2.tag}");
117 group: tr("missing tag");
118}
119
120/* {0.tag} without {1.key} (warning level) */
121relation[route=bicycle][!network][type=route],
122relation[route=hiking][!network][type=route],
123relation[route=foot][!network][type=route],
124relation[route=horse][!network][type=route],
125relation[route=piste][!piste:type][type=route],
126relation[route=ski][!piste:type][type=route],
127*[tourism=information][!information],
128*[leisure=pitch][!sport],
129*[aeroway=terminal][!building],
130*[power=generator][!generator:source],
131*[amenity=place_of_worship][!religion] {
132 throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}");
133 group: tr("missing tag");
134}
135
136/* {0.tag} without {1.key} (info level) */
137way[power=cable ][!location],
138node[power=transformer ][!voltage],
139way[power=line ][!voltage],
140way[power=minor_line ][!voltage],
141way[power=cable ][!voltage],
142*[power=generator ][!voltage][generator:output:electricity],
143*[power=plant ][!voltage][plant:output:electricity],
144*[power=substation ][!substation],
145*[power=transformer ][!transformer],
146*[amenity=parking ][!parking],
147*[amenity=parking_entrance ][!parking] {
148 throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
149 group: tr("missing tag");
150 assertMatch: "way power=line";
151 assertNoMatch: "way power=line voltage=1";
152 assertNoMatch: "way power=switch";
153 assertMatch: "way power=substation";
154 assertMatch: "way power=substation transformer=foobar";
155 assertNoMatch: "way power=substation substation=foobar";
156 assertMatch: "way power=generator generator:output:electricity=yes";
157 assertNoMatch: "way power=generator";
158 assertNoMatch: "way power=generator generator:output:electricity=yes voltage=1";
159}
160
161/* {0.key} without {1.key} or {2.key} */
162way[oneway][!highway][!railway] {
163 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
164 group: tr("missing tag");
165}
166
167/* {0.key} without {1.key} or {2.tag} */
168*[smoothness ][!highway][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking)$/],
169*[segregated ][!highway][railway!=crossing] {
170 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.tag}");
171 group: tr("missing tag");
172}
173
174/* {0.tag} without {1.tag} (info level) see #11600 #11393 #11850 */
175way[highway=motorway][!oneway][junction!=roundabout],
176way[highway=motorway_link][!oneway][junction!=roundabout] {
177 throwOther: tr("{0} without {1}", "{0.tag}", "{1.tag}");
178 group: tr("missing tag");
179}
180
181/* {0.tag} without {1.tag} or {2.tag} */
182*[amenity=recycling][recycling_type!=container][recycling_type!=centre] {
183 throwWarning: tr("{0} without {1} or {2}", "{0.tag}", "{1.tag}", "{2.tag}");
184 group: tr("missing tag");
185}
186
187/* {0.key} without {1.key}, {2.tag} or {3.tag} */
188*[intermittent ][!waterway][natural!~/^(water|spring)$/][ford!=yes],
189*[boat ][!waterway][natural!=water][landuse!=basin] {
190 throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.tag}", "{3.tag}");
191 group: tr("missing tag");
192}
193
194/* {0.key} without {1.key}, {2.key} or {3.key} */
195*[snowplowing ][!highway][!amenity][!leisure] {
196 throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.key}");
197 group: tr("missing tag");
198}
199
200/* {0.key} without {1.key}, {2.key} or {3.tag} */
201way[incline ][!highway][!railway][aeroway!~/^(runway|taxiway)$/],
202*[toll ][!highway][!barrier][route!~/^(ferry|road)$/] {
203 throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.tag}");
204 group: tr("missing tag");
205}
206
207/* {0.tag} together with {1.key}, see #10837 */
208*[noname?][name] {
209 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
210 group: tr("suspicious tag combination");
211}
212
213/* {0.tag} together with {1.key}, see #9389, #11977, #13156 */
214way[oneway=yes][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath],
215way[oneway=yes][/:forward/][!traffic_sign:forward][bicycle:forward!=use_sidepath],
216way[oneway=-1 ][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath],
217way[oneway=-1 ][/:forward/][!traffic_sign:forward][bicycle:forward!=use_sidepath] {
218 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
219 group: tr("suspicious tag combination");
220}
221
222/* {0.tag} together with {1.tag} (info level), see #9696 */
223way[highway=footway][oneway=no] {
224 throwOther: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
225 group: tr("suspicious tag combination");
226}
227
228/* {0.tag} together with {1.tag}, see #10186 */
229way[highway=footway][bicycle=designated] {
230 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
231 group: tr("suspicious tag combination");
232}
233
234/* #11127, #13727 */
235way[waterway][bridge=yes][waterway!=weir] {
236 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.tag}");
237 suggestAlternative: "bridge=aqueduct";
238 group: tr("suspicious tag combination");
239 fixAdd: "bridge=aqueduct";
240}
241way[waterway=weir][bridge=yes][highway] {
242 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
243 suggestAlternative: "waterway=weir + ford=yes";
244 suggestAlternative: "waterway=dam";
245 suggestAlternative: tr("two objects, one with {0} and one with {1} + {2} + {3}", "{0.tag}", "{2.key}", "{1.tag}", "layer");
246 group: tr("suspicious tag combination");
247}
248
249/* only {0.key}, see #11104 #12422 */
250*[area][eval(number_of_tags()) = 1],
251*[name][eval(number_of_tags()) = 1],
252*[ref][eval(number_of_tags()) = 1],
253*[lit][eval(number_of_tags()) = 1] {
254 throwWarning: tr("incomplete object: only {0}", "{0.key}");
255 group: tr("missing tag");
256}
257/* only {0.key} and {1.key}, see #11104 */
258*[name][area][eval(number_of_tags()) = 2],
259*[name][ref][eval(number_of_tags()) = 2] {
260 throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.key}");
261 group: tr("missing tag");
262}
263
264/* #9811, #11491, #12865 */
265*[place][place!=farm][/^addr:/],
266*[boundary][/^addr:/],
267*[highway][/^addr:/][highway!=services][highway!=rest_area][!"addr:postcode"] {
268 throwWarning: tr("{0} together with addr:*", "{0.key}");
269 group: tr("suspicious tag combination");
270}
271*[!highway][postal_code]["addr:postcode"][postal_code=*"addr:postcode"] {
272 throwWarning: tr("{0} together with {1}", "{1.key}", "{2.key}");
273 group: tr("suspicious tag combination");
274}
275*[!highway][postal_code]["addr:postcode"][postal_code!=*"addr:postcode"] {
276 throwWarning: tr("{0} together with {1} and conflicting values", "{1.key}", "{2.key}");
277 group: tr("suspicious tag combination");
278}
279way[highway][postal_code]["addr:postcode"][postal_code=*"addr:postcode"] {
280 throwWarning: tr("{0} together with {1}", "{1.key}", "{2.key}");
281 group: tr("suspicious tag combination");
282 fixRemove: "addr:postcode";
283}
284way[highway][postal_code]["addr:postcode"][postal_code!=*"addr:postcode"] {
285 throwWarning: tr("{0} together with {1} and conflicting values", "{1.key}", "{2.key}");
286 group: tr("suspicious tag combination");
287}
288way[highway][highway!=services][highway!=rest_area][!postal_code]["addr:postcode"] {
289 throwWarning: tr("{0} together with {1}", "{0.key}", "{4.key}");
290 suggestAlternative: "postal_code";
291 group: tr("suspicious tag combination");
292 fixChangeKey: "addr:postcode=>postal_code";
293}
294
295/* #9195 */
296way[highway=footway][cycleway=lane] {
297 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
298 suggestAlternative: "highway=path + foot=designated + bicycle=designated + segregated=yes";
299 group: tr("suspicious tag combination");
300}
301
302/* {0} on suspicious object */
303*[tunnel ][!highway][!railway][!waterway][public_transport != platform][man_made != pipeline],
304*[bridge ][!highway][!railway][!waterway][!piste:type][public_transport != platform][man_made !~ /^(bridge|pipeline)$/][building != bridge],
305*[psv ][!highway][!railway][!waterway][amenity !~ /^parking.*/],
306*[width ][!highway][!railway][!waterway][!aeroway][!cycleway][!footway][!barrier][!man_made][!entrance],
307*[maxspeed][!highway][!railway][traffic_sign !~ /^((.*;)?maxspeed(;.*)?|[A-Z][A-Z]:.+)$/][type != enforcement][waterway !~ /^(river|canal|lock)$/][!traffic_calming] {
308 throwWarning: tr("{0} on suspicious object", "{0.key}");
309 group: tr("suspicious tag combination");
310}
311
312node[amenity][amenity =~ /^(restaurant|cafe|fast_food)$/][!name][noname!=yes] {
313 throwOther: tr("{0} without {1}", "{0.tag}", "{2.key}");
314 group: tr("missing tag");
315 assertMatch: "node amenity=restaurant";
316 assertNoMatch: "node amenity=restaurant noname=yes";
317 assertNoMatch: "node amenity=restaurant name=Foobar";
318}
319
320way[highway][barrier],
321*[highway][waterway][waterway!=dam][waterway!=weir],
322way[highway][natural],
323*[landuse][building] {
324 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
325 group: tr("suspicious tag combination");
326 assertNoMatch: "node highway=street_lamp natural=birds_nest note=josm#10193";
327}
328
329/* #6932 */
330*[natural=water][leisure=swimming_pool] {
331 throwWarning: tr("natural water used for swimming pool");
332 group: tr("suspicious tag combination");
333 fixRemove: "natural";
334}
335
336/* #9593, #11183, #12418, #12761 */
337*[sport][sport!=skiing][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink|horse_riding)$/][natural !~ /^(beach|bare_rock|cliff|peak|water)$/][amenity !~ /^(pub|restaurant|swimming_pool)$/][landuse !~ /^(recreation_ground|piste|farm|farmland)$/][barrier !~ /^(wall|retaining_wall)$/][!"piste:type"][shop!=sports] {
338 throwWarning: tr("sport without physical feature");
339 group: tr("missing tag");
340 assertMatch: "node sport=tennis";
341 assertNoMatch: "node sport=tennis leisure=pitch";
342 assertNoMatch: "node sport=beachvolleyball natural=beach";
343 assertNoMatch: "node sport=skiing"; /* skiing has deprecated warning */
344 assertNoMatch: "node sport=swimming tourism=hotel";
345 assertNoMatch: "node sport=10pin amenity=restaurant";
346}
347
348/* #10140 */
349*[building:levels][!building][!building:part] {
350 throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
351 group: tr("missing tag");
352}
353
354/* any other *_name tag (with some exceptions) but not a name , see #10837 #11297 #11539 */
355*[/_name$/][!name][!old_name][!loc_name][!uic_name][!artist_name][!"osak:municipality_name"][!"osak:street_name"][noname!=yes] {
356 throwWarning: tr("alternative name without {0}", "{1.key}");
357 group: tr("missing tag");
358}
359
360/* #10837 */
361way[destination][!oneway?][junction!=roundabout][highway] {
362 throwWarning: tr("incomplete usage of {0} on a way without {1}", "{0.key}", "{1.key}");
363 suggestAlternative: "destination:forward";
364 suggestAlternative: "destination:backward";
365}
366
367/* #11389 */
368way["maxspeed:forward"=*"maxspeed:backward"][!maxspeed] {
369 throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
370 suggestAlternative: "maxspeed";
371 group: tr("suspicious tag combination");
372 fixChangeKey: "maxspeed:forward=>maxspeed";
373 fixRemove: "maxspeed:backward";
374}
375way["maxspeed:forward"=*maxspeed]["maxspeed:backward"=*maxspeed][maxspeed] {
376 throwWarning: tr("Same value of {0}, {1} and {2}", "{0.key}", "{1.key}", "{2.key}");
377 set AllSameMaxspeed;
378 suggestAlternative: "maxspeed";
379 group: tr("suspicious tag combination");
380 fixRemove: "maxspeed:forward";
381 fixRemove: "maxspeed:backward";
382}
383way["maxspeed:forward"]["maxspeed:backward"][maxspeed]!.AllSameMaxspeed {
384 throwWarning: tr("{0} and {1} together with {2} and conflicting values", "{0.key}", "{1.key}", "{2.key}");
385 group: tr("suspicious tag combination");
386}
387way["maxspeed:forward"][maxspeed][!"maxspeed:backward"],
388way["maxspeed:backward"][maxspeed][!"maxspeed:forward"] {
389 throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
390 group: tr("suspicious tag combination");
391}
392
393/* #11837 */
394way[layer][layer<0][bridge][bridge!=no][location!=underground][indoor!=yes][!tunnel],
395way[layer][layer>0][tunnel][tunnel!=no][location!=overground][indoor!=yes][!bridge] {
396 throwWarning: tr("{0} together with {1}", "{2.tag}", "{0.tag}");
397 group: tr("suspicious tag combination");
398}
399
400/* #12942 */
401relation[oneway][type!=route] {
402 throwWarning: tr("{0} on a relation without {1}", "{0.key}", "{1.tag}");
403}
404
405/* #9182 */
406way[waterway][layer][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) > 400] {
407 throwWarning: tr("Long waterway with {0} but without a tag which defines it as tunnel or underground. Remove {1} or add a tunnel tag if applicable. Also check crossing bridges and their {1} tags.", "{1.tag}", "{1.key}");
408 group: tr("suspicious tag combination");
409}
410way[waterway][layer][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) <= 400] {
411 throwOther: tr("Short waterway with {0} but without a tag which defines it as tunnel or underground. Remove {1} or add a tunnel tag if applicable. Also check crossing bridges and their {1} tags.", "{1.tag}", "{1.key}");
412 group: tr("suspicious tag combination");
413}
414
415/* #13144 */
416*[unisex=yes][female=yes][male!=yes],
417*[unisex=yes][male=yes][female!=yes] {
418 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
419 group: tr("suspicious tag combination");
420}
421*[unisex=yes][female=yes][male=yes] {
422 throwWarning: tr("{0} together with {1} and {2}. Remove {1} and {2}", "{0.tag}", "{1.tag}", "{2.tag}");
423 group: tr("suspicious tag combination");
424 fixRemove: "female";
425 fixRemove: "male";
426}
427*[female=yes][male=yes][!unisex][shop=hairdresser] { /* for toilets male=yes female=yes unisex=no combination is valid */
428 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
429 suggestAlternative: "unisex=yes";
430 group: tr("suspicious tag combination");
431 fixRemove: "female";
432 fixRemove: "male";
433 fixAdd: "unisex=yes";
434}
435
436/* #13138 */
437area:closed[water][natural!=water][water!=intermittent] { /* water=intermittent is deprecated and has an own warning */
438 throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
439 group: tr("missing tag");
440 fixAdd: "natural=water";
441}
442way!:closed[water][natural!=water][water!=intermittent] {
443 throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
444 group: tr("missing tag");
445}
446
447/* see #8519, #11529, limited to motorways and trunks to avoid false positives for streets with lanes for non motorized traffic */
448way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][turn:lanes ][tag(lanes)!=eval(count(split("|", tag("turn:lanes"))))],
449way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][change:lanes ][tag(lanes)!=eval(count(split("|", tag("change:lanes"))))],
450way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][maxspeed:lanes ][tag(lanes)!=eval(count(split("|", tag("maxspeed:lanes"))))],
451way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][minspeed:lanes ][tag(lanes)!=eval(count(split("|", tag("minspeed:lanes"))))],
452way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:lanes ][tag(lanes)!=eval(count(split("|", tag("destination:lanes"))))],
453way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:ref:lanes ][tag(lanes)!=eval(count(split("|", tag("destination:ref:lanes"))))],
454way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:symbol:lanes][tag(lanes)!=eval(count(split("|", tag("destination:symbol:lanes"))))] {
455 throwWarning: tr("Different number of lanes in the keys {0} and {1}", "{1.key}", "{2.key}");
456 group: tr("suspicious tag combination");
457}
458
459/* #13680 */
460area[golf=bunker][natural=beach] {
461 throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
462 suggestAlternative: "natural=sand";
463 suggestAlternative: "surface=sand";
464 group: tr("suspicious tag combination");
465}
466
467/* #13705 */
468relation[type=multipolygon][building] > way {
469 set part_of_building_MP;
470}
471way["addr:housenumber"][!building][!"building:part"][!"demolished:building"][!note][!amenity][!leisure][!landuse][!man_made][!tourism][!barrier]!.part_of_building_MP {
472 /* don't exclude shop because a lot of real missing bulding tag cases have a shop tag. */
473 throwOther: tr("possibly missing {0} tag", "{1.key}");
474 group: tr("missing tag");
475}
Note: See TracBrowser for help on using the repository browser.