Fix interpolation issue

This commit is contained in:
Victor Shcherb 2018-03-25 15:44:35 +02:00
parent 20784a6534
commit 7c65073dc7

View file

@ -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());