$oPlaceLookup = new Nominatim\PlaceLookup($oDB);
$oPlaceLookup->loadParamArray($oParams);
-$oPlaceLookup->setIncludeAddressDetails($oParams->getBool('addressdetails', true));
$sOsmType = $oParams->getSet('osm_type', array('N', 'W', 'R'));
$iOsmId = $oParams->getInt('osm_id', -1);
}
}
} elseif ($sOutputFormat != 'html') {
- userError("Need coordinates or OSM object to lookup.");
+ userError('Need coordinates or OSM object to lookup.');
}
if (isset($aPlace)) {
$aPlace = [];
}
+logEnd($oDB, $hLog, sizeof($aPlace)?1:0);
if (CONST_Debug) {
var_dump($aPlace);