$aFilteredPlaces['properties']['geocoding']['label'] = $aPlace['langaddress'];
- $aFilteredPlaces['properties']['geocoding']['name'] = $aPlace['placename'];
+ if ($aPlace['placename'] !== null) {
+ $aFilteredPlaces['properties']['geocoding']['name'] = $aPlace['placename'];
+ }
if (isset($aPlace['address'])) {
$aPlace['address']->addGeocodeJsonAddressParts(
$aPlace['properties']['geocoding']['label'] = $aPointDetails['langaddress'];
- $aPlace['properties']['geocoding']['name'] = $aPointDetails['placename'];
+ if ($aPointDetails['placename'] !== null) {
+ $aPlace['properties']['geocoding']['name'] = $aPointDetails['placename'];
+ }
if (isset($aPointDetails['address'])) {
$aPointDetails['address']->addGeocodeJsonAddressParts(