X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d3f7465ccad9cce6c84f0b089282c5ece550c5ed..ff36d7d8df16d1a1d94656bda7b8b7d4b9422a3a:/lib/AddressDetails.php 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']) {