]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/PlaceLookup.php
increase weight for country tokens
[nominatim.git] / lib / PlaceLookup.php
index cf3e4f7be812ea8579f815219665404c0edaf039..fce4970158a9395a6c22301fcae70d6ece185398 100644 (file)
@@ -428,6 +428,7 @@ class PlaceLookup
         $aPlaces = $this->oDB->getAll($sSQL, null, 'Could not lookup place');
 
         foreach ($aPlaces as &$aPlace) {
+            $aPlace['importance'] = (float) $aPlace['importance'];
             if ($this->bAddressDetails) {
                 // to get addressdetails for tiger data, the housenumber is needed
                 $aPlace['address'] = new AddressDetails(