From 0a9ba4399c3ace6e89f81fa91ea0c2eec7014491 Mon Sep 17 00:00:00 2001 From: max-klaus Date: Sat, 9 Nov 2019 20:51:14 +0300 Subject: [PATCH] Fix #7561 --- .../src/main/java/net/osmand/search/core/SearchCoreFactory.java | 2 +- OsmAnd-java/src/test/resources/search/spring_street.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java index 5525c6bb84..f979170e94 100644 --- a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java @@ -705,7 +705,7 @@ public class SearchCoreFactory { List additionals = pt.getPoiAdditionals(); if (additionals != null) { for (PoiType a : additionals) { - if (!a.isReference() && !results.contains(a)) { + if (!results.contains(a)) { String enTranslation = a.getEnTranslation().toLowerCase(); if (!"yes".equals(enTranslation) && !"no".equals(enTranslation) && (nm.matches(enTranslation) || nm.matches(a.getTranslation()) || nm.matches(a.getSynonyms()))) { diff --git a/OsmAnd-java/src/test/resources/search/spring_street.json b/OsmAnd-java/src/test/resources/search/spring_street.json index 5e794ba6bc..5ad960f31b 100644 --- a/OsmAnd-java/src/test/resources/search/spring_street.json +++ b/OsmAnd-java/src/test/resources/search/spring_street.json @@ -13,6 +13,8 @@ "results": [ "Spring (Natural)", "Spring (Spring / Natural)", + "Spring (Ice rink / Sport)", + "Spring (Bridge / Transport construction)", "Spring Street, South Nyack", "Spring Street, Tomkins Cove", "Spring Street, Southfields",