diff --git a/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java b/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java index df73cb362a..7c4208b957 100644 --- a/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java +++ b/OsmAnd-java/src/net/osmand/binary/GeocodingUtilities.java @@ -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());