$oPlaceLookup = new Nominatim\PlaceLookup($oDB);
$oPlaceLookup->loadParamArray($oParams);
if ($sOutputFormat == 'geocodejson') {
- $oPlaceLookup->setAddressDetails(true);
+ $oPlaceLookup->setIncludeAddressDetails(true);
$oPlaceLookup->setAddressAdminLevels(true);
}
}
if (isset($aPlace)) {
- $fRadius = $fDiameter = getResultDiameter($aPlace);
$aOutlineResult = $oPlaceLookup->getOutlines(
$aPlace['place_id'],
$aPlace['lon'],
$aPlace['lat'],
- $fRadius
+ Nominatim\ClassTypes\getProperty($aPlace, 'defdiameter', 0.0001),
+ $fLat,
+ $fLon
);
if ($aOutlineResult) {