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