X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c574c933e41a784e0ee6167e0d16bab0a2495035..f822b04dbe7caf9794b4f206fd8b75ad0ceafd15:/website/search.php diff --git a/website/search.php b/website/search.php index 7e96e10e..e85c3369 100755 --- a/website/search.php +++ b/website/search.php @@ -20,10 +20,12 @@ $aLangPrefOrder = getPreferredLanguages(); $oGeocode->setLanguagePreference($aLangPrefOrder); + /* if (isset($aLangPrefOrder['name:de'])) $oGeocode->setReverseInPlan(true); if (isset($aLangPrefOrder['name:ru'])) $oGeocode->setReverseInPlan(true); if (isset($aLangPrefOrder['name:ja'])) $oGeocode->setReverseInPlan(true); if (isset($aLangPrefOrder['name:pl'])) $oGeocode->setReverseInPlan(true); + */ function loadParamsToGeocode($oGeocode, $aParams, $bBatch = false) { @@ -34,6 +36,8 @@ if (isset($aParams['limit'])) $oGeocode->setLimit((int)$aParams['limit']); if (isset($aParams['offset'])) $oGeocode->setOffset((int)$aParams['offset']); + if (isset($aParams['fallback'])) $oGeocode->setFallback((int)$aParams['fallback']); + // List of excluded Place IDs - used for more acurate pageing if (isset($aParams['exclude_place_ids']) && $aParams['exclude_place_ids']) {