]> git.openstreetmap.org Git - nominatim.git/commitdiff
Convert importance to float value
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 30 Apr 2019 21:21:53 +0000 (23:21 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 30 Apr 2019 21:21:53 +0000 (23:21 +0200)
Fixes #1369.

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(