X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/86ea07709218a7ec8ae18e53268f8c67b42c9f17..9934421442bf1a815096ef06ffa3f8c9ea11c0ac:/lib-php/SearchDescription.php diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index 4d944bfb..ee8bbc0c 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -624,7 +624,7 @@ class SearchDescription $aOrder[] = $this->oContext->distanceSQL('centroid'); } elseif ($this->sPostcode) { if (empty($this->aAddress)) { - $aTerms[] = "EXISTS(SELECT place_id FROM location_postcode p WHERE p.postcode = '".$this->sPostcode."' AND ST_DWithin(search_name.centroid, p.geometry, 0.1))"; + $aTerms[] = "EXISTS(SELECT place_id FROM location_postcode p WHERE p.postcode = '".$this->sPostcode."' AND ST_DWithin(search_name.centroid, p.geometry, 0.12))"; } else { $aOrder[] = "(SELECT min(ST_Distance(search_name.centroid, p.geometry)) FROM location_postcode p WHERE p.postcode = '".$this->sPostcode."')"; }