X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/44ee8d9ce34a4a60113b6600dcc7b2f5b24c7a0e..4791fc341e4cb0924fc9232e63091d1314b4b42d:/website/lookup.php diff --git a/website/lookup.php b/website/lookup.php index 667686d1..b9cc88f7 100755 --- a/website/lookup.php +++ b/website/lookup.php @@ -24,15 +24,12 @@ $aSearchResults = array(); $aCleanedQueryParts = array(); $oPlaceLookup = new Nominatim\PlaceLookup($oDB); -$oPlaceLookup->setLanguagePreference($aLangPrefOrder); -$oPlaceLookup->setIncludeAddressDetails($oParams->getBool('addressdetails', true)); -$oPlaceLookup->setIncludeExtraTags($oParams->getBool('extratags', false)); -$oPlaceLookup->setIncludeNameDetails($oParams->getBool('namedetails', false)); +$oPlaceLookup->loadParamArray($oParams); $aOsmIds = explode(',', $oParams->getString('osm_ids', '')); if (count($aOsmIds) > CONST_Places_Max_ID_count) { - userError('Bulk User: Only ' . CONST_Places_Max_ID_count . " ids are allowed in one request."); + userError('Bulk User: Only ' . CONST_Places_Max_ID_count . ' ids are allowed in one request.'); } foreach ($aOsmIds as $sItem) {