forked from hans/Nominatim
use already existing address field in geocodejson
This commit is contained in:
@@ -250,10 +250,12 @@ class Geocode
|
||||
$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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function setQueryFromParams($oParams)
|
||||
|
||||
Reference in New Issue
Block a user