X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5c2c0604805452f8235e7574b7e4986f9f89802e..d2ec1abaedd12792e1f544ee9b2fabf5edecc714:/lib-php/Geocode.php diff --git a/lib-php/Geocode.php b/lib-php/Geocode.php index a12983b1..85d871f0 100644 --- a/lib-php/Geocode.php +++ b/lib-php/Geocode.php @@ -843,7 +843,9 @@ class Geocode $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']