From: Sarah Hoffmann Date: Wed, 26 Aug 2020 15:15:11 +0000 (+0200) Subject: PlaceLookup should return results in input order X-Git-Tag: v3.6.0~85^2~1 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9e1909643c63375dfb9e81528e41024fc4cfb114 PlaceLookup should return results in input order --- diff --git a/lib/PlaceLookup.php b/lib/PlaceLookup.php index eebfe983..0a285a6a 100644 --- a/lib/PlaceLookup.php +++ b/lib/PlaceLookup.php @@ -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