]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/AddressDetails.php
Merge pull request #1829 from krahulreddy/websiteSetup
[nominatim.git] / lib / AddressDetails.php
index dd86707974765570ae9a1766eb8d29a06fb299e7..a27d3e797feefd123bbd11ab52c48a630ac14929 100644 (file)
@@ -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']) {