$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(