From 14e708f36660c886c49060b00ce673e702190806 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 22 Aug 2018 23:32:18 +0200 Subject: [PATCH 1/1] ignore linked country nodes for reverse geocoding Fixes #1145. --- lib/ReverseGeocode.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index fc5e04d6..820ca385 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -130,6 +130,7 @@ class ReverseGeocode $sSQL .= ' WHERE country_code = \''.$sCountryCode.'\''; $sSQL .= ' AND rank_search = 4 AND rank_address = 4'; $sSQL .= ' AND class in (\'boundary\', \'place\')'; + $sSQL .= ' AND linked_place_id is null'; $sSQL .= ' ORDER BY distance ASC'; if (CONST_Debug) var_dump($sSQL); -- 2.39.5