X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1015ac40aea631c71518866fdc30b329a4c0ed86..0278ab7f41bf9bc96a87084c04bfec263c6acc40:/nominatim/api/search/geocoder.py?ds=inline diff --git a/nominatim/api/search/geocoder.py b/nominatim/api/search/geocoder.py index 711f8383..775606aa 100644 --- a/nominatim/api/search/geocoder.py +++ b/nominatim/api/search/geocoder.py @@ -95,7 +95,7 @@ class ForwardGeocoder: prevresult.accuracy = min(prevresult.accuracy, result.accuracy) else: results[rhash] = result - min_ranking = min(min_ranking, result.accuracy * 1.2) + min_ranking = min(min_ranking, result.accuracy * 1.2, 2.0) log().result_dump('Results', ((r.accuracy, r) for r in lookup_results)) prev_penalty = search.penalty if dt.datetime.now() >= end_time: