- if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) {
- $aPlace['properties']['address'] = $aPointDetails['address'];
+ if (isset($aPointDetails['address'])) {
+ $aPlace['properties']['address'] = $aPointDetails['address']->getAddressNames();