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

Last change on this file since 11146 was 11146, checked in by Klumbumbus, 3 years ago

see #13804 - a bit more grouping in the validator tree, small adjustments to a few validator rules

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