mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-12-23 04:53:09 +03:00
reduce effect of missing world now importance is better quality
This commit is contained in:
parent
7ff1395b96
commit
030873e0fb
@ -1268,7 +1268,7 @@
|
||||
{
|
||||
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']);
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user