]> git.openstreetmap.org Git - nominatim.git/commitdiff
PlaceLookup should return results in input order
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 26 Aug 2020 15:15:11 +0000 (17:15 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 26 Aug 2020 15:15:11 +0000 (17:15 +0200)
lib/PlaceLookup.php

index eebfe98301cc16d2ffc100bbbc0869e358d71167..0a285a6a78b69ab7b5b9f16c8493a7f1c22718bb 100644 (file)
@@ -452,11 +452,13 @@ class PlaceLookup
                 $aPlace,
                 $aPlace['country_code']
             );
+
+            $aResults[$aPlace['place_id']] = $aPlace;
         }
 
-        Debug::printVar('Places', $aPlaces);
+        Debug::printVar('Places', $aResults);
 
-        return $aPlaces;
+        return $aResults;
     }
 
     /* returns an array which will contain the keys