X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e0e18e2b6f4b5e12f35aa80a41c77263221bd730..764dcd7f6459c08aafd5cf2fcb7902cc2868cb30:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index b07d1ade..cce85f2b 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -18,7 +18,7 @@ class Geocode protected $aLangPrefOrder = array(); protected $aExcludePlaceIDs = array(); - protected $bReverseInPlan = false; + protected $bReverseInPlan = true; protected $iLimit = 20; protected $iFinalLimit = 10; @@ -934,6 +934,8 @@ class Geocode } else { $aResult['foundorder'] += 0.01; } + // - rank + $aResult['foundorder'] -= 0.00001 * (30 - $aResult['rank_search']); // Adjust importance for the number of exact string matches in the result $iCountWords = 0;