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