Changeset 11548 in josm


Ignore:
Timestamp:
2017-02-09T22:20:37+01:00 (10 months ago)
Author:
Klumbumbus
Message:

fix #14310, see #11491, see #9811 - don't warn about addr:postcode together with place=* (used this way in some countries)

(If this combination is "wrong" in your country you can add a country specific rule at https://josm.openstreetmap.de/wiki/Rules with a territory selector.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/combinations.mapcss

    r11529 r11548  
    260260}
    261261
    262 /* #9811, #11491, #12865 */
    263 *[place][place!=farm][/^addr:/],
     262/* #9811, #11491, #12865, #14310 */
     263*[place][place!=farm][/^(addr:housenumber|addr:housename|addr:flats|addr:conscriptionnumber|addr:street|addr:place|addr:city|addr:country|addr:full|addr:hamlet|addr:suburb|addr:subdistrict|addr:district|addr:province|addr:state|addr:interpolation|addr:interpolation|addr:inclusion)$/],
     264/* addr:postcode is used together with place in some countries */
    264265*[boundary][/^addr:/],
    265266*[highway][/^addr:/][highway!=services][highway!=rest_area][!"addr:postcode"] {
    266267  throwWarning: tr("{0} together with addr:*", "{0.key}");
    267268  group: tr("suspicious tag combination");
     269  assertMatch: "node place=foo addr:housenumber=5";
     270  assertMatch: "node place=foo addr:housenumber=5 addr:postcode=12345";
     271  assertNoMatch: "node place=foo  addr:postcode=12345";
    268272}
    269273*[!highway][postal_code]["addr:postcode"][postal_code=*"addr:postcode"] {
Note: See TracChangeset for help on using the changeset viewer.