X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/ae2ad38040f8515caa79bf274ddc345c6efeb6ef..ca53f9c1bf1576e4750483ee9538b1de49e141ed:/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);