]> git.openstreetmap.org Git - nominatim.git/commitdiff
slightly increase radius to look for postcodes
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Sep 2021 21:56:42 +0000 (23:56 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 24 Sep 2021 21:56:42 +0000 (23:56 +0200)
lib-php/SearchDescription.php

index 4d944bfb1ee498835c2d3178b2ea04d2439ab75d..ee8bbc0c9be81304c9531760aac3751366a6a689 100644 (file)
@@ -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."')";
             }