X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c386cca73f3fd1e10681f3f157544e46d74e5b48..d442bf904b68d26dd7daf62746919475ce5a151a:/lib/AddressDetails.php?ds=inline diff --git a/lib/AddressDetails.php b/lib/AddressDetails.php index dd867079..a27d3e79 100644 --- a/lib/AddressDetails.php +++ b/lib/AddressDetails.php @@ -117,8 +117,12 @@ class AddressDetails if ($aLine['type'] == 'postcode' || $aLine['type'] == 'postal_code') { $aJson['postcode'] = $aLine['localname']; - } elseif ($aLine['type'] == 'house_number') { + continue; + } + + if ($aLine['type'] == 'house_number') { $aJson['housenumber'] = $aLine['localname']; + continue; } if ($this->iPlaceID == $aLine['place_id']) {