]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/PlaceLookup.php
PlaceLookup should return results in input order
[nominatim.git] / 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