From e35557fa8f2adbe2297832f651b09a6b752fc588 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 21 May 2018 22:37:35 +0200 Subject: [PATCH] Sort postcode by name in 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 34d0f122b4..89ad0eb644 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchCoreFactory.java @@ -406,6 +406,7 @@ public class SearchCoreFactory { return false; } sr.objectType = ObjectType.POSTCODE; + sr.priorityDistance = 0; } else { if ((locSpecified && !villagesBbox.contains(x, y, x, y)) || !phrase.isSearchTypeAllowed(ObjectType.VILLAGE)) {