From: Sarah Hoffmann Date: Wed, 22 Aug 2018 21:32:18 +0000 (+0200) Subject: ignore linked country nodes for reverse geocoding X-Git-Tag: v3.2.0~11 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/14e708f36660c886c49060b00ce673e702190806 ignore linked country nodes for reverse geocoding Fixes #1145. --- 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);