[6548] | 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 |
|
---|
[7229] | 5 | /* {0.key} without {1.key} (warning level) */
|
---|
[7906] | 6 | way[junction ][!highway][junction!=yes],
|
---|
[6548] | 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],
|
---|
[6812] | 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],
|
---|
[9794] | 39 | *[usage ][!railway][route!=railway][man_made!=pipeline],
|
---|
[6812] | 40 | *[workrules ][!railway][route!=railway],
|
---|
[6548] | 41 | *[stream ][!waterway],
|
---|
| 42 | *[length_unit ][!waterway],
|
---|
| 43 | *[llid ][!waterway],
|
---|
| 44 | *[canal ][!waterway],
|
---|
| 45 | *[have_riverbank ][!waterway],
|
---|
| 46 | *[border_type ][!boundary],
|
---|
[7490] | 47 | *[bridge:structure ][!bridge],
|
---|
[8121] | 48 | *[piste:difficulty ][!piste:type],
|
---|
[6548] | 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],
|
---|
[6645] | 72 | *[source:postcode ][!addr:postcode],
|
---|
| 73 | *[source:housenumber ][!addr:housenumber],
|
---|
| 74 | *[source:addr:postcode ][!addr:postcode],
|
---|
| 75 | *[source:addr:housenumber ][!addr:housenumber],
|
---|
[6548] | 76 | *[source:addr ][!/^addr:/],
|
---|
| 77 | *[source:maxspeed ][!/^maxspeed:?/] {
|
---|
| 78 | throwWarning: tr("{0} without {1}", "{0.key}", "{1.key}");
|
---|
| 79 | assertMatch: "way lanes=42";
|
---|
| 80 | assertNoMatch: "way lanes=42 highway=unclassified";
|
---|
| 81 | assertMatch: "node source:addr:postcode=postman";
|
---|
| 82 | assertMatch: "node source:addr=postman";
|
---|
| 83 | assertNoMatch: "node source:addr=postman addr:housenumber=42";
|
---|
| 84 | }
|
---|
| 85 |
|
---|
[7229] | 86 | /* {0.key} without {1.key} (info level) */
|
---|
[8077] | 87 | *[lanes:forward][!lanes:backward][oneway!=yes][oneway!=-1],
|
---|
| 88 | *[lanes:backward][!lanes:forward][oneway!=yes][oneway!=-1],
|
---|
[7229] | 89 | *[leaf_type ][!leaf_cycle],
|
---|
| 90 | *[leaf_cycle][!leaf_type] {
|
---|
| 91 | throwOther: tr("{0} without {1}", "{0.key}", "{1.key}");
|
---|
| 92 | }
|
---|
| 93 |
|
---|
[6548] | 94 | /* {0.key} without {1.tag} */
|
---|
[9500] | 95 | *[transformer ][!power],
|
---|
[6548] | 96 | *[fence_type ][barrier!=fence],
|
---|
| 97 | *[recycling_type ][amenity!=recycling],
|
---|
[7996] | 98 | *[information ][tourism!=information],
|
---|
[6548] | 99 | *[board_type ][information!=board],
|
---|
| 100 | *[shelter_type ][amenity!=shelter],
|
---|
| 101 | *[lamp_type ][highway!=street_lamp],
|
---|
| 102 | *[map_type ][information!=map],
|
---|
| 103 | *[site_type ][historic!=archaeological_site],
|
---|
| 104 | *[artwork_type ][tourism!=artwork],
|
---|
| 105 | *[castle_type ][historic!=castle],
|
---|
[7490] | 106 | *[bridge:movable ][bridge!=movable],
|
---|
[8147] | 107 | *[parking ][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking)$/],
|
---|
| 108 | *[cutline ][man_made!=cutline],
|
---|
[6548] | 109 | *[bunker_type ][military!=bunker] {
|
---|
| 110 | throwWarning: tr("{0} without {1}", "{0.key}", "{1.tag}");
|
---|
| 111 | }
|
---|
| 112 |
|
---|
[9903] | 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 | }
|
---|
| 118 |
|
---|
[8080] | 119 | /* {0.tag} without {1.key} (warning level) */
|
---|
[10320] | 120 | relation[route=bicycle][!network][type=route],
|
---|
| 121 | relation[route=hiking][!network][type=route],
|
---|
| 122 | relation[route=foot][!network][type=route],
|
---|
| 123 | relation[route=horse][!network][type=route],
|
---|
| 124 | relation[route=piste][!piste:type][type=route],
|
---|
| 125 | relation[route=ski][!piste:type][type=route],
|
---|
[7996] | 126 | *[tourism=information][!information],
|
---|
[7929] | 127 | *[aeroway=terminal][!building],
|
---|
[7967] | 128 | *[power=generator][!generator:source],
|
---|
[7929] | 129 | *[amenity=place_of_worship][!religion] {
|
---|
[7923] | 130 | throwWarning: tr("{0} without {1}", "{0.tag}", "{1.key}");
|
---|
| 131 | }
|
---|
| 132 |
|
---|
[8080] | 133 | /* {0.tag} without {1.key} (info level) */
|
---|
[9495] | 134 | way[power=cable ][!location],
|
---|
[9500] | 135 | node[power=transformer ][!voltage],
|
---|
| 136 | way[power=line ][!voltage],
|
---|
| 137 | way[power=minor_line ][!voltage],
|
---|
| 138 | way[power=cable ][!voltage],
|
---|
| 139 | *[power=generator ][!voltage][generator:output:electricity],
|
---|
| 140 | *[power=plant ][!voltage][plant:output:electricity],
|
---|
| 141 | *[power=substation ][!substation],
|
---|
| 142 | *[power=transformer ][!transformer],
|
---|
[8080] | 143 | *[amenity=parking ][!parking],
|
---|
| 144 | *[amenity=parking_entrance ][!parking] {
|
---|
| 145 | throwOther: tr("{0} without {1}", "{0.tag}", "{1.key}");
|
---|
[9500] | 146 | assertMatch: "way power=line";
|
---|
| 147 | assertNoMatch: "way power=line voltage=1";
|
---|
| 148 | assertNoMatch: "way power=switch";
|
---|
| 149 | assertMatch: "way power=substation";
|
---|
| 150 | assertMatch: "way power=substation transformer=foobar";
|
---|
| 151 | assertNoMatch: "way power=substation substation=foobar";
|
---|
| 152 | assertMatch: "way power=generator generator:output:electricity=yes";
|
---|
| 153 | assertNoMatch: "way power=generator";
|
---|
| 154 | assertNoMatch: "way power=generator generator:output:electricity=yes voltage=1";
|
---|
[8080] | 155 | }
|
---|
| 156 |
|
---|
[6548] | 157 | /* {0.key} without {1.key} or {2.key} */
|
---|
[10350] | 158 | way[oneway][!highway][!railway] {
|
---|
[6548] | 159 | throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
|
---|
| 160 | }
|
---|
| 161 |
|
---|
| 162 | /* {0.key} without {1.key} or {2.tag} */
|
---|
[10068] | 163 | *[smoothness ][!highway][amenity!~/^(parking|parking_space|parking_entrance|motorcycle_parking|bicycle_parking)$/],
|
---|
[9003] | 164 | *[segregated ][!highway][railway!=crossing] {
|
---|
[6548] | 165 | throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.tag}");
|
---|
| 166 | }
|
---|
| 167 |
|
---|
[8746] | 168 | /* {0.tag} without {1.tag} (info level) see #11600 #11393 #11850 */
|
---|
| 169 | *[highway=motorway][!oneway][junction!=roundabout],
|
---|
| 170 | *[highway=motorway_link][!oneway][junction!=roundabout] {
|
---|
[8591] | 171 | throwOther: tr("{0} without {1}", "{0.tag}", "{1.tag}");
|
---|
[8545] | 172 | }
|
---|
| 173 |
|
---|
[8411] | 174 | /* {0.tag} without {1.tag} or {2.tag} */
|
---|
| 175 | *[amenity=recycling][recycling_type!=container][recycling_type!=centre] {
|
---|
| 176 | throwWarning: tr("{0} without {1} or {2}", "{0.tag}", "{1.tag}", "{2.tag}");
|
---|
| 177 | }
|
---|
| 178 |
|
---|
[8057] | 179 | /* {0.key} without {1.key}, {2.tag} or {3.tag} */
|
---|
[9003] | 180 | *[intermittent ][!waterway][natural!~/^(water|spring)$/][ford!=yes],
|
---|
| 181 | *[boat ][!waterway][natural!=water][landuse!=basin] {
|
---|
[8057] | 182 | throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.tag}", "{3.tag}");
|
---|
[7767] | 183 | }
|
---|
| 184 |
|
---|
[6880] | 185 | /* {0.key} without {1.key}, {2.key} or {3.key} */
|
---|
| 186 | *[snowplowing ][!highway][!amenity][!leisure] {
|
---|
| 187 | throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.key}");
|
---|
| 188 | }
|
---|
| 189 |
|
---|
[7250] | 190 | /* {0.key} without {1.key}, {2.key} or {3.tag} */
|
---|
[9723] | 191 | *[incline ][!highway][!railway][aeroway!~/^(runway|taxiway)$/],
|
---|
[7250] | 192 | *[toll ][!highway][!barrier][route!~/^(ferry|road)$/] {
|
---|
| 193 | throwWarning: tr("{0} without {1}, {2} or {3}", "{0.key}", "{1.key}", "{2.key}", "{3.tag}");
|
---|
| 194 | }
|
---|
| 195 |
|
---|
[8437] | 196 | /* {0.tag} together with {1.key}, see #10837 */
|
---|
[8043] | 197 | *[noname?][name] {
|
---|
[8437] | 198 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
|
---|
[7818] | 199 | }
|
---|
| 200 |
|
---|
[10535] | 201 | /* {0.tag} together with {1.key}, see #9389, #11977, #13156 */
|
---|
| 202 | way[oneway=yes][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath],
|
---|
| 203 | way[oneway=yes][/:forward/][!traffic_sign:forward][bicycle:forward!=use_sidepath],
|
---|
| 204 | way[oneway=-1 ][/:backward/][!traffic_sign:backward][bicycle:backward!=use_sidepath],
|
---|
| 205 | way[oneway=-1 ][/:forward/][!traffic_sign:forward][bicycle:forward!=use_sidepath] {
|
---|
[8077] | 206 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.key}");
|
---|
| 207 | }
|
---|
| 208 |
|
---|
[8044] | 209 | /* {0.tag} together with {1.tag} (info level), see #9696 */
|
---|
| 210 | *[highway=footway][oneway=no] {
|
---|
| 211 | throwOther: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
| 212 | }
|
---|
| 213 |
|
---|
[8117] | 214 | /* {0.tag} together with {1.tag}, see #10186 */
|
---|
| 215 | *[highway=footway][bicycle=designated] {
|
---|
| 216 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
| 217 | }
|
---|
| 218 |
|
---|
[10350] | 219 | /* #11127 */
|
---|
[8089] | 220 | way[waterway][bridge=yes] {
|
---|
| 221 | throwWarning: tr("{0} together with {1}", "{0.key}", "{1.tag}");
|
---|
| 222 | suggestAlternative: "bridge=aqueduct";
|
---|
| 223 | fixAdd: "bridge=aqueduct";
|
---|
| 224 | }
|
---|
| 225 |
|
---|
[9837] | 226 | /* only {0.key}, see #11104 #12422 */
|
---|
[8054] | 227 | *[area][eval(number_of_tags()) = 1],
|
---|
| 228 | *[name][eval(number_of_tags()) = 1],
|
---|
[9837] | 229 | *[ref][eval(number_of_tags()) = 1],
|
---|
| 230 | *[lit][eval(number_of_tags()) = 1] {
|
---|
[8054] | 231 | throwWarning: tr("incomplete object: only {0}", "{0.key}");
|
---|
| 232 | }
|
---|
| 233 | /* only {0.key} and {1.key}, see #11104 */
|
---|
| 234 | *[name][area][eval(number_of_tags()) = 2],
|
---|
| 235 | *[name][ref][eval(number_of_tags()) = 2] {
|
---|
| 236 | throwWarning: tr("incomplete object: only {0} and {1}", "{0.key}", "{1.key}");
|
---|
| 237 | }
|
---|
| 238 |
|
---|
[10350] | 239 | /* #9811, #11491, #12865 */
|
---|
[8049] | 240 | *[place][place!=farm][/^addr:/],
|
---|
[8043] | 241 | *[boundary][/^addr:/],
|
---|
[8730] | 242 | *[highway][/^addr:/][highway!=services][highway!=rest_area][!"addr:postcode"] {
|
---|
[8043] | 243 | throwWarning: tr("{0} together with addr:*", "{0.key}");
|
---|
| 244 | }
|
---|
[8730] | 245 | *[!highway][postal_code]["addr:postcode"][postal_code=*"addr:postcode"] {
|
---|
| 246 | throwWarning: tr("{0} together with {1}", "{1.key}", "{2.key}");
|
---|
| 247 | }
|
---|
| 248 | *[!highway][postal_code]["addr:postcode"][postal_code!=*"addr:postcode"] {
|
---|
| 249 | throwWarning: tr("{0} together with {1} and conflicting values", "{1.key}", "{2.key}");
|
---|
| 250 | }
|
---|
| 251 | way[highway][postal_code]["addr:postcode"][postal_code=*"addr:postcode"] {
|
---|
| 252 | throwWarning: tr("{0} together with {1}", "{1.key}", "{2.key}");
|
---|
| 253 | fixRemove: "addr:postcode";
|
---|
| 254 | }
|
---|
| 255 | way[highway][postal_code]["addr:postcode"][postal_code!=*"addr:postcode"] {
|
---|
| 256 | throwWarning: tr("{0} together with {1} and conflicting values", "{1.key}", "{2.key}");
|
---|
| 257 | }
|
---|
[10272] | 258 | way[highway][highway!=services][highway!=rest_area][!postal_code]["addr:postcode"] {
|
---|
[8730] | 259 | throwWarning: tr("{0} together with {1}", "{0.key}", "{2.key}");
|
---|
| 260 | suggestAlternative: "postal_code";
|
---|
| 261 | fixChangeKey: "addr:postcode=>postal_code";
|
---|
| 262 | }
|
---|
[8043] | 263 |
|
---|
[10350] | 264 | /* #9195 */
|
---|
[8042] | 265 | *[highway=footway][cycleway=lane] {
|
---|
| 266 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
[8046] | 267 | suggestAlternative: "highway=path + foot=designated + bicycle=designated + segregated=yes";
|
---|
[8042] | 268 | }
|
---|
| 269 |
|
---|
[6548] | 270 | /* {0} on suspicious object */
|
---|
| 271 | *[tunnel ][!highway][!railway][!waterway][public_transport != platform][man_made != pipeline],
|
---|
| 272 | *[bridge ][!highway][!railway][!waterway][!piste:type][public_transport != platform][man_made !~ /^(bridge|pipeline)$/][building != bridge],
|
---|
| 273 | *[psv ][!highway][!railway][!waterway][amenity !~ /^parking.*/],
|
---|
| 274 | *[width ][!highway][!railway][!waterway][!aeroway][!cycleway][!footway][!barrier][!man_made][!entrance],
|
---|
[9837] | 275 | *[maxspeed][!highway][!railway][traffic_sign !~ /^((.*;)?maxspeed(;.*)?|[A-Z][A-Z]:.+)$/][type != enforcement][waterway !~ /^(river|canal|lock)$/][!traffic_calming] {
|
---|
[6548] | 276 | throwWarning: tr("{0} on suspicious object", "{0.key}");
|
---|
| 277 | }
|
---|
| 278 |
|
---|
[7932] | 279 | node[amenity =~ /^(restaurant|cafe|fast_food)$/][!name][noname!=yes] {
|
---|
[6548] | 280 | throwOther: tr("restaurant without name");
|
---|
| 281 | assertMatch: "node amenity=restaurant";
|
---|
[7932] | 282 | assertNoMatch: "node amenity=restaurant noname=yes";
|
---|
[6548] | 283 | assertNoMatch: "node amenity=restaurant name=Foobar";
|
---|
| 284 | }
|
---|
| 285 |
|
---|
[6550] | 286 | way[highway][barrier],
|
---|
[8559] | 287 | *[highway][waterway][waterway!=dam][waterway!=weir],
|
---|
[7265] | 288 | way[highway][natural],
|
---|
[6548] | 289 | *[landuse][building] {
|
---|
| 290 | throwWarning: tr("{0} used with {1}", "{0.key}", "{1.key}");
|
---|
[7265] | 291 | assertNoMatch: "node highway=street_lamp natural=birds_nest note=josm#10193";
|
---|
[6548] | 292 | }
|
---|
| 293 |
|
---|
[10350] | 294 | /* #6932 */
|
---|
[10798] | 295 | *[natural=water][leisure=swimming_pool] {
|
---|
[6548] | 296 | throwWarning: tr("natural water used for swimming pool");
|
---|
[7274] | 297 | fixRemove: "natural";
|
---|
[6548] | 298 | }
|
---|
[6860] | 299 |
|
---|
[10350] | 300 | /* #9593, #11183, #12418, #12761 */
|
---|
[10146] | 301 | *[sport][!building][!club][tourism != hotel][highway != raceway][leisure !~ /^(sports_centre|stadium|track|pitch|golf_course|water_park|swimming_pool|recreation_ground|ice_rink)$/][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] {
|
---|
[6860] | 302 | throwWarning: tr("sport without physical feature");
|
---|
| 303 | assertMatch: "node sport=tennis";
|
---|
| 304 | assertNoMatch: "node sport=tennis leisure=pitch";
|
---|
| 305 | assertNoMatch: "node sport=beachvolleyball natural=beach";
|
---|
| 306 | assertNoMatch: "node sport=skiiing landuse=piste";
|
---|
| 307 | assertNoMatch: "node sport=swimming tourism=hotel";
|
---|
| 308 | assertNoMatch: "node sport=10pin amenity=restaurant";
|
---|
[7243] | 309 | }
|
---|
| 310 |
|
---|
[10350] | 311 | /* #10140 */
|
---|
[7243] | 312 | *[building:levels][!building][!building:part] {
|
---|
| 313 | throwWarning: tr("{0} without {1} or {2}", "{0.key}", "{1.key}", "{2.key}");
|
---|
| 314 | }
|
---|
[7488] | 315 |
|
---|
[10350] | 316 | /* #10471 */
|
---|
[7488] | 317 | way[waterway] > node[ford?] { set ford_on_waterway; }
|
---|
| 318 | way[highway] > node[ford?] { set ford_on_highway; }
|
---|
[8495] | 319 | node[ford?]:in-downloaded-area!.ford_on_waterway, node[ford?]:in-downloaded-area!.ford_on_highway {
|
---|
[7488] | 320 | throwWarning: tr("{0} should be on the node where {1} and {2} intersect", "ford", "highway", "waterway");
|
---|
| 321 | }
|
---|
[7818] | 322 |
|
---|
[8480] | 323 | /* any other *_name tag (with some exceptions) but not a name , see #10837 #11297 #11539 */
|
---|
| 324 | *[/_name$/][!name][!old_name][!loc_name][!uic_name][!artist_name][!"osak:municipality_name"][!"osak:street_name"][noname!=yes] {
|
---|
[7818] | 325 | throwWarning: tr("alternative name without {0}", "{1.key}");
|
---|
| 326 | }
|
---|
| 327 |
|
---|
[10350] | 328 | /* #10837 */
|
---|
[9386] | 329 | way[destination][!oneway?][junction!=roundabout][highway] {
|
---|
[7818] | 330 | throwWarning: tr("incomplete usage of {0} on a way without {1}", "{0.key}", "{1.key}");
|
---|
| 331 | suggestAlternative: "destination:forward";
|
---|
| 332 | suggestAlternative: "destination:backward";
|
---|
[8700] | 333 | }
|
---|
| 334 |
|
---|
[10350] | 335 | /* #11389 */
|
---|
[8700] | 336 | way["maxspeed:forward"=*"maxspeed:backward"][!maxspeed] {
|
---|
| 337 | throwWarning: tr("Same value of {0} and {1}", "{0.key}", "{1.key}");
|
---|
| 338 | suggestAlternative: "maxspeed";
|
---|
| 339 | fixChangeKey: "maxspeed:forward=>maxspeed";
|
---|
| 340 | fixRemove: "maxspeed:backward";
|
---|
| 341 | }
|
---|
| 342 | way["maxspeed:forward"=*maxspeed]["maxspeed:backward"=*maxspeed][maxspeed] {
|
---|
| 343 | throwWarning: tr("Same value of {0}, {1} and {2}", "{0.key}", "{1.key}", "{2.key}");
|
---|
| 344 | set AllSameMaxspeed;
|
---|
| 345 | suggestAlternative: "maxspeed";
|
---|
| 346 | fixRemove: "maxspeed:forward";
|
---|
| 347 | fixRemove: "maxspeed:backward";
|
---|
| 348 | }
|
---|
| 349 | way["maxspeed:forward"]["maxspeed:backward"][maxspeed]!.AllSameMaxspeed {
|
---|
| 350 | throwWarning: tr("{0} and {1} together with {2} and conflicting values", "{0.key}", "{1.key}", "{2.key}");
|
---|
| 351 | }
|
---|
| 352 | way["maxspeed:forward"][maxspeed][!"maxspeed:backward"],
|
---|
| 353 | way["maxspeed:backward"][maxspeed][!"maxspeed:forward"] {
|
---|
| 354 | throwWarning: tr("{0} together with {1}", "{0.key}", "{1.key}");
|
---|
[8754] | 355 | }
|
---|
| 356 |
|
---|
[10350] | 357 | /* #11837 */
|
---|
[8754] | 358 | way[layer][layer<0][bridge][bridge!=no][location!=underground][indoor!=yes][!tunnel],
|
---|
| 359 | way[layer][layer>0][tunnel][tunnel!=no][location!=overground][indoor!=yes][!bridge] {
|
---|
[8761] | 360 | throwWarning: tr("Suspicious tag combination: {0} and {1}", "{2.tag}", "{0.tag}");
|
---|
[10350] | 361 | }
|
---|
| 362 |
|
---|
| 363 | /* #12942 */
|
---|
| 364 | relation[oneway][type!=route] {
|
---|
| 365 | throwWarning: tr("{0} on a relation without {1}", "{0.key}", "{1.tag}");
|
---|
[10388] | 366 | }
|
---|
| 367 |
|
---|
| 368 | /* #9182 */
|
---|
[10419] | 369 | way[waterway][layer][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) > 400] {
|
---|
| 370 | 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}");
|
---|
[10388] | 371 | }
|
---|
[10419] | 372 | way[waterway][layer][layer=~/^(-1|-2|-3|-4|-5)$/][!tunnel][culvert!=yes][covered!=yes][pipeline!=yes][location!=underground][eval(waylength()) <= 400] {
|
---|
| 373 | 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}");
|
---|
[10537] | 374 | }
|
---|
| 375 |
|
---|
| 376 | /* #13144 */
|
---|
| 377 | *[unisex=yes][female=yes][male!=yes],
|
---|
| 378 | *[unisex=yes][male=yes][female!=yes] {
|
---|
| 379 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
| 380 | }
|
---|
| 381 | *[unisex=yes][female=yes][male=yes] {
|
---|
| 382 | throwWarning: tr("{0} together with {1} and {2}. Remove {1} and {2}", "{0.tag}", "{1.tag}", "{2.tag}");
|
---|
| 383 | fixRemove: "female";
|
---|
| 384 | fixRemove: "male";
|
---|
| 385 | }
|
---|
| 386 | *[female=yes][male=yes][!unisex][shop=hairdresser] { /* for toilets male=yes female=yes unisex=no combination is valid */
|
---|
| 387 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
| 388 | suggestAlternative: "unisex=yes";
|
---|
| 389 | fixRemove: "female";
|
---|
| 390 | fixRemove: "male";
|
---|
| 391 | fixAdd: "unisex=yes";
|
---|
[10538] | 392 | }
|
---|
| 393 |
|
---|
| 394 | /* #13138 */
|
---|
| 395 | area:closed[water][natural!=water][water!=intermittent] { /* water=intermittent is deprecated and has an own warning */
|
---|
| 396 | throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
|
---|
| 397 | fixAdd: "natural=water";
|
---|
| 398 | }
|
---|
| 399 | way!:closed[water][natural!=water][water!=intermittent] {
|
---|
| 400 | throwWarning: tr("{0} without {1}", "{1.key}", "{2.tag}");
|
---|
[10995] | 401 | }
|
---|
| 402 |
|
---|
| 403 | /* see #8519, #11529, limited to motorways and trunks to avoid false positives for streets with lanes for non motorized traffic */
|
---|
| 404 | way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][turn:lanes ][tag(lanes)!=eval(count(split("|", tag("turn:lanes"))))],
|
---|
| 405 | way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][change:lanes ][tag(lanes)!=eval(count(split("|", tag("change:lanes"))))],
|
---|
| 406 | way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][maxspeed:lanes ][tag(lanes)!=eval(count(split("|", tag("maxspeed:lanes"))))],
|
---|
| 407 | way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][minspeed:lanes ][tag(lanes)!=eval(count(split("|", tag("minspeed:lanes"))))],
|
---|
| 408 | way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:lanes ][tag(lanes)!=eval(count(split("|", tag("destination:lanes"))))],
|
---|
| 409 | way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:ref:lanes ][tag(lanes)!=eval(count(split("|", tag("destination:ref:lanes"))))],
|
---|
| 410 | way[highway =~ /^(motorway|motorway_link|trunk|trunk_link)$/][lanes][destination:symbol:lanes][tag(lanes)!=eval(count(split("|", tag("destination:symbol:lanes"))))] {
|
---|
| 411 | throwWarning: tr("Different number of lanes in the keys {0} and {1}", "{1.key}", "{2.key}");
|
---|
[11047] | 412 | }
|
---|
| 413 |
|
---|
| 414 | /* #13680 */
|
---|
| 415 | area[golf=bunker][natural=beach] {
|
---|
| 416 | throwWarning: tr("{0} together with {1}", "{0.tag}", "{1.tag}");
|
---|
| 417 | suggestAlternative: "natural=sand";
|
---|
| 418 | suggestAlternative: "surface=sand";
|
---|
[7818] | 419 | }
|
---|