diff --git a/src/org/openstreetmap/josm/data/validation/tests/Addresses.java b/src/org/openstreetmap/josm/data/validation/tests/Addresses.java
index 5b9a350..c10cff7 100644
|
a
|
b
|
public class Addresses extends Test {
|
| 44 | 44 | protected static final String ADDR_INTERPOLATION = "addr:interpolation"; |
| 45 | 45 | protected static final String ADDR_STREET = "addr:street"; |
| 46 | 46 | protected static final String ASSOCIATED_STREET = "associatedStreet"; |
| | 47 | protected static final String ADDR_PLACE = "addr:place"; |
| 47 | 48 | |
| 48 | 49 | protected class AddressError extends TestError { |
| 49 | 50 | |
| … |
… |
public class Addresses extends Test {
|
| 84 | 85 | @Override |
| 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 street (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)) { |
| 91 | 92 | return; |