Fixed street duplication in search results
This commit is contained in:
parent
7f16872645
commit
4998a9d9a2
2 changed files with 1 additions and 10 deletions
|
@ -86,13 +86,4 @@ public class Street extends MapObject {
|
|||
}
|
||||
return nm;
|
||||
}
|
||||
|
||||
public boolean compareStreet(Street thatObj) {
|
||||
boolean res = this.location.equals(thatObj.location);
|
||||
if (res) {
|
||||
res = (this.getNameWithoutCityPart("en", true).trim()).equals(thatObj.getNameWithoutCityPart("en", true).trim());
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -189,7 +189,7 @@ public class SearchUICore {
|
|||
if (r1.objectType == ObjectType.STREET) {
|
||||
Street st1 = (Street) r1.object;
|
||||
Street st2 = (Street) r2.object;
|
||||
return st1.compareStreet(st2);
|
||||
return st1.getLocation().equals(st2.getLocation());
|
||||
}
|
||||
}
|
||||
Amenity a1 = null;
|
||||
|
|
Loading…
Reference in a new issue