Fix interpolation issue
This commit is contained in:
parent
20784a6534
commit
7c65073dc7
1 changed files with 7 additions and 2 deletions
|
@ -119,7 +119,11 @@ public class GeocodingUtilities {
|
|||
public String toString() {
|
||||
StringBuilder bld = new StringBuilder();
|
||||
if (building != null) {
|
||||
bld.append(building.getName());
|
||||
if(buildingInterpolation != null) {
|
||||
bld.append(buildingInterpolation);
|
||||
} else {
|
||||
bld.append(building.getName());
|
||||
}
|
||||
}
|
||||
if (street != null) {
|
||||
bld.append(" str. ").append(street.getName()).append(" city ").append(city.getName());
|
||||
|
@ -320,7 +324,8 @@ public class GeocodingUtilities {
|
|||
if (MapUtils.getDistance(road.searchPoint, plat, plon) < DISTANCE_BUILDING_PROXIMITY) {
|
||||
GeocodingResult bld = new GeocodingResult(street);
|
||||
bld.building = b;
|
||||
bld.connectionPoint = b.getLocation();
|
||||
//bld.connectionPoint = b.getLocation();
|
||||
bld.connectionPoint = new LatLon(plat, plon);
|
||||
streetBuildings.add(bld);
|
||||
if (!Algorithms.isEmpty(b.getName2())) {
|
||||
int fi = Algorithms.extractFirstIntegerNumber(b.getName());
|
||||
|
|
Loading…
Reference in a new issue