X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b81894d3d58aa77246eb19a8a8f99c3c7926dbcf..ca3283cbaa0240a52d65d0fc21d39732fca1a305:/website/search.php?ds=inline diff --git a/website/search.php b/website/search.php index 43c9fd01..619dec6d 100644 --- a/website/search.php +++ b/website/search.php @@ -1,12 +1,12 @@ connect(); $oParams = new Nominatim\ParameterParser(); @@ -15,15 +15,6 @@ $oGeocode = new Nominatim\Geocode($oDB); $aLangPrefOrder = $oParams->getPreferredLanguages(); $oGeocode->setLanguagePreference($aLangPrefOrder); -if (CONST_Search_ReversePlanForAll - || isset($aLangPrefOrder['name:de']) - || isset($aLangPrefOrder['name:ru']) - || isset($aLangPrefOrder['name:ja']) - || isset($aLangPrefOrder['name:pl']) -) { - $oGeocode->setReverseInPlan(true); -} - // Format for output $sOutputFormat = $oParams->getSet('format', array('xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'jsonv2'); set_exception_handler_by_format($sOutputFormat); @@ -41,7 +32,7 @@ if (CONST_Search_BatchMode && isset($_GET['batch'])) { $aSearchResults = $oBatchGeocode->lookup(); $aBatchResults[] = $aSearchResults; } - include(CONST_BasePath.'/lib/template/search-batch-json.php'); + include(CONST_LibDir.'/template/search-batch-json.php'); exit; } @@ -89,4 +80,4 @@ if (isset($_SERVER['REQUEST_SCHEME']) if (CONST_Debug) exit; $sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat; -include(CONST_BasePath.'/lib/template/search-'.$sOutputTemplate.'.php'); +include(CONST_LibDir.'/template/search-'.$sOutputTemplate.'.php');