]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
Merge pull request #2027 from lonvia/remove-duplicate-admin-boundaries
[nominatim.git] / lib / Geocode.php
index b07d1adebe587d12f01a738cdf8d39ad1ffd2ddd..69b6f41ca46e1085d2917592dc2757780bbbc64a 100644 (file)
@@ -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;