Changeset 24226 in osm for applications/editors/josm/plugins/FixAddresses
- Timestamp:
- 2010-11-14T18:51:45+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/FixAddressesPlugin.java
r24210 r24226 45 45 46 46 // create preferences instance 47 preferences = (FixAddressesPreferences) new FixAddressesPreferences.Factory().createPreferenceSetting(); 47 preferences = (FixAddressesPreferences) new FixAddressesPreferences.Factory().createPreferenceSetting(); 48 48 } 49 49 -
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OSMAddress.java
r24220 r24226 65 65 boolean isComplete = hasCity() && 66 66 hasHouseNumber() && 67 hasPostCode() &&67 (hasPostCode() && PostalCodeChecker.hasValidPostalCode(this)) && 68 68 hasCity() && 69 69 hasStreetName(); … … 229 229 */ 230 230 public String getPostCode() { 231 return getTagValueWithGuess(TagUtils.ADDR_POSTCODE_TAG); 231 String pc = getTagValueWithGuess(TagUtils.ADDR_POSTCODE_TAG); 232 233 234 if (!MISSING_TAG.equals(pc) && !PostalCodeChecker.hasValidPostalCode(getCountry(), pc)) { 235 pc = "(!)" + pc; 236 } 237 return pc; 238 } 239 240 /** 241 * Checks if this instance has a valid postal code. 242 * 243 * @return true, if successful 244 */ 245 public boolean hasValidPostalCode() { 246 return PostalCodeChecker.hasValidPostalCode(this); 232 247 } 233 248
Note:
See TracChangeset
for help on using the changeset viewer.