Changeset 5748 in josm


Ignore:
Timestamp:
2013-03-01T19:12:33+01:00 (11 years ago)
Author:
Don-vip
Message:

fix #8480 - Validator: don't raise address warning if house number contains addr:place (patch by balrog-kun)

File:
1 edited

Legend:

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

    r5662 r5748  
    4343    protected static final String ADDR_HOUSE_NUMBER  = "addr:housenumber";
    4444    protected static final String ADDR_INTERPOLATION = "addr:interpolation";
     45    protected static final String ADDR_PLACE         = "addr:place";
    4546    protected static final String ADDR_STREET        = "addr:street";
    4647    protected static final String ASSOCIATED_STREET  = "associatedStreet";
     
    8586    public void visit(Node n) {
    8687        List<Relation> associatedStreets = getAndCheckAssociatedStreets(n);
    87         // Find house number without street (neither addr:street or associatedStreet)
    88         if (n.hasKey(ADDR_HOUSE_NUMBER) && !n.hasKey(ADDR_STREET)) {
     88        // Find house number without proper location (neither addr:street, associatedStreet or addr:place)
     89        if (n.hasKey(ADDR_HOUSE_NUMBER) && !n.hasKey(ADDR_STREET) && !n.hasKey(ADDR_PLACE)) {
    8990            for (Relation r : associatedStreets) {
    9091                if (r.hasTag("type", ASSOCIATED_STREET)) {
Note: See TracChangeset for help on using the changeset viewer.