Changeset 12311 in josm


Ignore:
Timestamp:
2017-06-04T16:58:52+02:00 (7 months ago)
Author:
Don-vip
Message:

fix #14895 - allow addr:neighbourhood as assignment additional to addr:street and addr:place

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java

    r11608 r12311  
    4444    protected static final String ADDR_HOUSE_NUMBER  = "addr:housenumber";
    4545    protected static final String ADDR_INTERPOLATION = "addr:interpolation";
     46    protected static final String ADDR_NEIGHBOURHOOD = "addr:neighbourhood";
    4647    protected static final String ADDR_PLACE         = "addr:place";
    4748    protected static final String ADDR_STREET        = "addr:street";
     
    8081    protected void checkHouseNumbersWithoutStreet(OsmPrimitive p) {
    8182        List<Relation> associatedStreets = getAndCheckAssociatedStreets(p);
    82         // Find house number without proper location (neither addr:street, associatedStreet, addr:place or addr:interpolation)
    83         if (p.hasKey(ADDR_HOUSE_NUMBER) && !p.hasKey(ADDR_STREET) && !p.hasKey(ADDR_PLACE)) {
     83        // Find house number without proper location (neither addr:street, associatedStreet, addr:place, addr:neighbourhood or addr:interpolation)
     84        if (p.hasKey(ADDR_HOUSE_NUMBER) && !p.hasKey(ADDR_STREET, ADDR_PLACE, ADDR_NEIGHBOURHOOD)) {
    8485            for (Relation r : associatedStreets) {
    8586                if (r.hasTag("type", ASSOCIATED_STREET)) {
Note: See TracChangeset for help on using the changeset viewer.