From: Sarah Hoffmann Date: Fri, 24 Sep 2021 21:56:42 +0000 (+0200) Subject: slightly increase radius to look for postcodes X-Git-Tag: v4.0.0~27 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/d562f11298a12b5cf95940879dff98a2d85a2786 slightly increase radius to look for postcodes --- 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."')"; }