mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 21:34:06 +00:00
reduce effect of missing world now importance is better quality
This commit is contained in:
@@ -1268,7 +1268,7 @@
|
|||||||
{
|
{
|
||||||
if (stripos($sAddress, $sWord)!==false) $iCountWords++;
|
if (stripos($sAddress, $sWord)!==false) $iCountWords++;
|
||||||
}
|
}
|
||||||
$aResult['importance'] = $aResult['importance'] + $iCountWords;
|
$aResult['importance'] = $aResult['importance'] + ($iCountWords*0.1); // 0.1 is a completely arbitrary number but something in the range 0.1 to 0.5 would seem right
|
||||||
|
|
||||||
//if (CONST_Debug) var_dump($aResult['class'].':'.$aResult['type'].':'.$aResult['admin_level']);
|
//if (CONST_Debug) var_dump($aResult['class'].':'.$aResult['type'].':'.$aResult['admin_level']);
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user