This fixes an issue where a postcode with rank_address 5
would also appear in the state field.
if ($aLine['type'] == 'postcode' || $aLine['type'] == 'postal_code') {
$aJson['postcode'] = $aLine['localname'];
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'];
$aJson['housenumber'] = $aLine['localname'];
}
if ($this->iPlaceID == $aLine['place_id']) {
}
if ($this->iPlaceID == $aLine['place_id']) {