X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/170426b294955909bf2d56c1ea7bb07b89896675..d3425c4fa916369116dec8a3f20d73b7ee9bd512:/lib/ReverseGeocode.php?ds=sidebyside diff --git a/lib/ReverseGeocode.php b/lib/ReverseGeocode.php index 5cecfd33..56596b03 100644 --- a/lib/ReverseGeocode.php +++ b/lib/ReverseGeocode.php @@ -193,6 +193,7 @@ class ReverseGeocode // for place nodes at rank_address 16 $sSQL .= ' AND rank_search > '.$iRankSearch; $sSQL .= ' AND rank_search <= '.$iMaxRank; + $sSQL .= ' AND rank_address > 0'; $sSQL .= ' AND class = \'place\''; $sSQL .= ' AND type != \'postcode\''; $sSQL .= ' AND name IS NOT NULL ';