mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
remove dead code
This commit is contained in:
@@ -352,14 +352,9 @@ class Geocode
|
|||||||
|
|
||||||
// Add all words from this wordset
|
// Add all words from this wordset
|
||||||
foreach ($aWordset as $iToken => $sToken) {
|
foreach ($aWordset as $iToken => $sToken) {
|
||||||
//echo "<br><b>$sToken</b>";
|
|
||||||
$aNewWordsetSearches = array();
|
$aNewWordsetSearches = array();
|
||||||
|
|
||||||
foreach ($aWordsetSearches as $oCurrentSearch) {
|
foreach ($aWordsetSearches as $oCurrentSearch) {
|
||||||
//echo "<i>";
|
|
||||||
//var_dump($oCurrentSearch);
|
|
||||||
//echo "</i>";
|
|
||||||
|
|
||||||
// Tokens with full name matches.
|
// Tokens with full name matches.
|
||||||
foreach ($oValidTokens->get(' '.$sToken) as $oSearchTerm) {
|
foreach ($oValidTokens->get(' '.$sToken) as $oSearchTerm) {
|
||||||
$aNewSearches = $oCurrentSearch->extendWithFullTerm(
|
$aNewSearches = $oCurrentSearch->extendWithFullTerm(
|
||||||
@@ -403,7 +398,6 @@ class Geocode
|
|||||||
usort($aNewWordsetSearches, array('Nominatim\SearchDescription', 'bySearchRank'));
|
usort($aNewWordsetSearches, array('Nominatim\SearchDescription', 'bySearchRank'));
|
||||||
$aWordsetSearches = array_slice($aNewWordsetSearches, 0, 50);
|
$aWordsetSearches = array_slice($aNewWordsetSearches, 0, 50);
|
||||||
}
|
}
|
||||||
//var_Dump('<hr>',count($aWordsetSearches)); exit;
|
|
||||||
|
|
||||||
$aNewPhraseSearches = array_merge($aNewPhraseSearches, $aNewWordsetSearches);
|
$aNewPhraseSearches = array_merge($aNewPhraseSearches, $aNewWordsetSearches);
|
||||||
usort($aNewPhraseSearches, array('Nominatim\SearchDescription', 'bySearchRank'));
|
usort($aNewPhraseSearches, array('Nominatim\SearchDescription', 'bySearchRank'));
|
||||||
|
|||||||
@@ -146,7 +146,6 @@
|
|||||||
$oResults = $oDB->getQueryStatement($sPlacexSQL);
|
$oResults = $oDB->getQueryStatement($sPlacexSQL);
|
||||||
$fOutstream = fopen('php://output', 'w');
|
$fOutstream = fopen('php://output', 'w');
|
||||||
while ($aRow = $oResults->fetch()) {
|
while ($aRow = $oResults->fetch()) {
|
||||||
//var_dump($aRow);
|
|
||||||
$iPlaceID = $aRow['place_id'];
|
$iPlaceID = $aRow['place_id'];
|
||||||
$sSQL = "select rank_address,get_name_by_language(name,$sLanguagePrefArraySQL) as localname from get_addressdata(:place_id, -1)";
|
$sSQL = "select rank_address,get_name_by_language(name,$sLanguagePrefArraySQL) as localname from get_addressdata(:place_id, -1)";
|
||||||
$sSQL .= ' WHERE isaddress';
|
$sSQL .= ' WHERE isaddress';
|
||||||
|
|||||||
Reference in New Issue
Block a user