X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1787892d32351988231a60b71900c6a623609c54..07eb108a6d1ec64152cc8b0478cc87cdd4da8f6e:/lib/lib.php diff --git a/lib/lib.php b/lib/lib.php index 3c70d1de..0b939da4 100644 --- a/lib/lib.php +++ b/lib/lib.php @@ -426,32 +426,6 @@ function javascript_renderData($xVal, $iOptions = 0) } -function _debugDumpGroupedSearches($aData, $aTokens) -{ - $aWordsIDs = array(); - if ($aTokens) { - foreach ($aTokens as $sToken => $aWords) { - if ($aWords) { - foreach ($aWords as $aToken) { - $aWordsIDs[$aToken['word_id']] = - '#'.$sToken.'('.$aToken['word_id'].')#'; - } - } - } - } - echo ''; - echo ''; - echo ''; - echo ''; - foreach ($aData as $iRank => $aRankedSet) { - foreach ($aRankedSet as $aRow) { - $aRow->dumpAsHtmlTableRow($aWordsIDs); - } - } - echo '
rankName TokensName NotAddress TokensAddress Notcountryoperatorclasstypepostcodehousenumber
'; -} - - function getAddressDetails(&$oDB, $sLanguagePrefArraySQL, $iPlaceID, $sCountryCode = false, $housenumber = -1, $bRaw = false) { $sSQL = "select *,get_name_by_language(name,$sLanguagePrefArraySQL) as localname from get_addressdata($iPlaceID, $housenumber)";