X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/09595697cce1000137c7758b7bef211f80635d04..ca53f9c1bf1576e4750483ee9538b1de49e141ed:/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