X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/3fcfab97722bf073784e012899b5a51e3ad43914..a948050015060896edcdd9de4f9a304b1569a732:/lib/ReverseGeocode.php 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);