- Timestamp:
- 2017-06-04T16:58:52+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
r11608 r12311 44 44 protected static final String ADDR_HOUSE_NUMBER = "addr:housenumber"; 45 45 protected static final String ADDR_INTERPOLATION = "addr:interpolation"; 46 protected static final String ADDR_NEIGHBOURHOOD = "addr:neighbourhood"; 46 47 protected static final String ADDR_PLACE = "addr:place"; 47 48 protected static final String ADDR_STREET = "addr:street"; … … 80 81 protected void checkHouseNumbersWithoutStreet(OsmPrimitive p) { 81 82 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)) { 84 85 for (Relation r : associatedStreets) { 85 86 if (r.hasTag("type", ASSOCIATED_STREET)) {
Note:
See TracChangeset
for help on using the changeset viewer.