X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/eba6e46c74abfc828f385fa883332f85a4a429f6..dd5315cbaa75035d27265abb781299670c2a02cd:/lib/AddressDetails.php diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index e6501b57..618e10c9 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -103,7 +103,7 @@ class AddressDetails public function getAdminLevels() { $aAddress = array(); - foreach ($this->aAddressLines as $aLine) { + foreach (array_reverse($this->aAddressLines) as $aLine) { if (self::isAddress($aLine) && isset($aLine['admin_level']) && $aLine['admin_level'] < 15