namespace Nominatim;
-require_once(CONST_BasePath.'/lib/ClassTypes.php');
+require_once(CONST_LibDir.'/ClassTypes.php');
/**
* Detailed list of address parts for a single result
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']) {