]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jun 2022 18:18:22 +0000 (20:18 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 29 Jun 2022 18:18:22 +0000 (20:18 +0200)
1  2 
lib-php/Geocode.php

diff --combined lib-php/Geocode.php
index a12983b15acf331a87e9952c44d5273a1b25705e,acb79493734c6ece129e341b74d035f89743ac57..85d871f0d039f1b37072901f1ae09ae0650d9c64
@@@ -695,7 -695,7 +695,7 @@@ class Geocod
                          }
                      }
  
 -                    if ($iQueryLoop > 20) {
 +                    if ($iQueryLoop > 30) {
                          break;
                      }
                  }
                      $aResults = $tempIDs;
                  }
  
 -                if (!empty($aResults) || $iGroupLoop > 4 || $iQueryLoop > 30) {
 +                if (!empty($aResults) || $iGroupLoop > 6 || $iQueryLoop > 40) {
                      break;
                  }
              }
                  $aResult['importance'] = 0.001;
                  $aResult['foundorder'] = $aResult['addressimportance'];
              } else {
-                 $aResult['importance'] = max(0.001, $aResult['importance']);
+                 if ($aResult['importance'] == 0) {
+                     $aResult['importance'] = 0.0001;
+                 }
                  $aResult['importance'] *= $this->viewboxImportanceFactor(
                      $aResult['lon'],
                      $aResult['lat']