From: Sarah Hoffmann Date: Mon, 26 Oct 2020 20:11:06 +0000 (+0100) Subject: use highest admin boundary for duplicated ones X-Git-Tag: v3.6.0~42^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/5872b8123254e20c08a4192091b6e1cea7eaa69c?ds=sidebyside use highest admin boundary for duplicated ones --- diff --git a/lib/Geocode.php b/lib/Geocode.php index b07d1ade..69b6f41c 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -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;