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