]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/SearchDescription.php
US TIGER 2019 data got released
[nominatim.git] / lib / SearchDescription.php
index 358e6969577f97ac52031c7bd10689572c405d6f..506d4202253f61f909c46f3d1c08275b2c12faa9 100644 (file)
@@ -588,6 +588,9 @@ class SearchDescription
 
         $sSQL .= "p.postcode = '".reset($this->aName)."'";
         $sSQL .= $this->countryCodeSQL(' AND p.country_code');
+        if ($this->oContext->bViewboxBounded) {
+            $sSQL .= ' AND ST_Intersects('.$this->oContext->sqlViewboxSmall.', geometry)';
+        }
         $sSQL .= $this->oContext->excludeSQL(' AND p.place_id');
         $sSQL .= " LIMIT $iLimit";