X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/eb793ae26e057d4fadeb7ea1527d4428396142f2..2db6f931b6ce1d331433f7e4f02ac332381a7b29:/lib/lib.php?ds=sidebyside diff --git a/lib/lib.php b/lib/lib.php index 3417c95b..54c8c7d0 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -169,7 +169,7 @@ { $aResult = array(array(join(' ',$aWords))); $sFirstToken = ''; - if ($iDepth < 8) { + if ($iDepth < 7) { while(sizeof($aWords) > 1) { $sWord = array_shift($aWords); @@ -884,21 +884,6 @@ return $iPlaceID; } - function loadStructuredAddressElement(&$aStructuredQuery, &$iMinAddressRank, &$iMaxAddressRank, &$aAddressRankList, $aParams, $sKey, $iNewMinAddressRank, $iNewMaxAddressRank, $aItemListValues) - { - if (!isset($_GET[$sKey])) return false; - $sValue = trim($_GET[$sKey]); - if (!$sValue) return false; - $aStructuredQuery[$sKey] = $sValue; - if ($iMinAddressRank == 0 && $iMaxAddressRank == 30) - { - $iMinAddressRank = $iNewMinAddressRank; - $iMaxAddressRank = $iNewMaxAddressRank; - } - if ($aItemListValues) $aAddressRankList = array_merge($aAddressRankList, $aItemListValues); - return true; - } - function addQuotes($s) { return "'".$s."'";