Changeset 5748 in josm
- Timestamp:
- 2013-03-01T19:12:33+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
r5662 r5748 43 43 protected static final String ADDR_HOUSE_NUMBER = "addr:housenumber"; 44 44 protected static final String ADDR_INTERPOLATION = "addr:interpolation"; 45 protected static final String ADDR_PLACE = "addr:place"; 45 46 protected static final String ADDR_STREET = "addr:street"; 46 47 protected static final String ASSOCIATED_STREET = "associatedStreet"; … … 85 86 public void visit(Node n) { 86 87 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)) { 89 90 for (Relation r : associatedStreets) { 90 91 if (r.hasTag("type", ASSOCIATED_STREET)) {
Note:
See TracChangeset
for help on using the changeset viewer.