$this->oPlaceLookup->setIncludeAddressDetails(false);
$this->oPlaceLookup->setIncludePolygonAsPoints($oParams->getBool('polygon'));
- if ($oParams->getString('format', '') == 'geocodejson') {
- $this->oPlaceLookup->setAddressDetails(true);
+ if ($this->bIncludeAddressDetails
+ && $oParams->getString('format', '') == 'geocodejson'
+ ) {
$this->oPlaceLookup->setAddressAdminLevels(true);
}
}