Changeset 24229 in osm for applications/editors/josm/plugins/FixAddresses/src/org
- Timestamp:
- 2010-11-14T19:09:50+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OSMAddress.java
r24227 r24229 65 65 boolean isComplete = hasCity() && 66 66 hasHouseNumber() && 67 (hasPostalCode() && PostalCodeChecker.hasValidPostalCode(this)) && 67 (hasPostalCode() && 68 PostalCodeChecker.hasValidPostalCode(this)) && 68 69 hasCity() && 69 70 hasStreetName(); -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/PostalCodeChecker.java
r24228 r24229 39 39 CheckParameterUtil.ensureParameterNotNull(address, "address"); 40 40 41 if ( address.hasPostalCode()) {41 if (!address.hasPostalCode()) { 42 42 return false; // no postal code available 43 43 } … … 197 197 //postalCodePatternMap.put("BY", "[0-9]{5}"); 198 198 //postalCodePatternMap.put("BZ", "[0-9]{5}"); 199 //postalCodePatternMap.put("CA", "[0-9]{5}");199 postalCodePatternMap.put("CA", "[A-Z][0-9][A-Z] [0-9][A-Z][0-9]"); // Canada A9A 9A9 200 200 //postalCodePatternMap.put("CC", "[0-9]{5}"); 201 201 //postalCodePatternMap.put("CD", "[0-9]{5}"); … … 398 398 //postalCodePatternMap.put("UG", "[0-9]{5}"); 399 399 //postalCodePatternMap.put("UM", "[0-9]{5}"); 400 postalCodePatternMap.put("US", " [0-9]{5}");400 postalCodePatternMap.put("US", "([A-Z]{2} )?[0-9]{5}"); // support "99999" and "IL 99999" 401 401 //postalCodePatternMap.put("UY", "[0-9]{5}"); 402 402 //postalCodePatternMap.put("UZ", "[0-9]{5}");
Note:
See TracChangeset
for help on using the changeset viewer.