From b0bf934ea14a2d29c45aa31381ef1ec14f530af9 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 20 Jul 2016 20:04:10 +0200 Subject: [PATCH] Justify search --- OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java index 5e664eb64f..ad096ee4be 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java @@ -364,6 +364,7 @@ public class SearchCoreFactory { if(object.getSubType().equals("city") || object.getSubType().equals("country")) { sr.priorityDistance = SEARCH_AMENITY_BY_NAME_CITY_PRIORITY_DISTANCE; + sr.preferredZoom = object.getSubType().equals("country") ? 8 : 13; } else if(object.getSubType().equals("town")) { sr.priorityDistance = SEARCH_AMENITY_BY_NAME_TOWN_PRIORITY_DISTANCE; } else {