Changeset 23957 in osm
- Timestamp:
- 2010-10-31T12:55:31+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/AddressNode.java
r23933 r23957 171 171 cc = this.getStreet().compareTo(other.getStreet()); 172 172 if (cc == 0) { 173 cc = this.getHouseNumber().compareTo(other.getHouseNumber()); 173 if (hasGuessedStreetName()) { 174 if (other.hasStreetName()) { 175 // Compare guessed name with the real name 176 cc = this.getGuessedStreetName().compareTo(other.getStreet()); 177 if (cc == 0) { 178 cc = this.getHouseNumber().compareTo(other.getHouseNumber()); 179 } 180 } else if (other.hasGuessedStreetName()){ 181 // Compare guessed name with the guessed name 182 cc = this.getGuessedStreetName().compareTo(other.getGuessedStreetName()); 183 if (cc == 0) { 184 cc = this.getHouseNumber().compareTo(other.getHouseNumber()); 185 } 186 } // else: give up 187 // No guessed name at all -> just compare the number 188 } else { 189 cc = this.getHouseNumber().compareTo(other.getHouseNumber()); 190 } 174 191 } 175 192 }
Note:
See TracChangeset
for help on using the changeset viewer.