mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
limit results for country lookup
This commit is contained in:
@@ -500,7 +500,8 @@ class ReverseGeocoder:
|
|||||||
.where(t.c.rank_address == 4)\
|
.where(t.c.rank_address == 4)\
|
||||||
.where(t.c.rank_search == 4)\
|
.where(t.c.rank_search == 4)\
|
||||||
.where(t.c.linked_place_id == None)\
|
.where(t.c.linked_place_id == None)\
|
||||||
.order_by('distance')
|
.order_by('distance')\
|
||||||
|
.limit(1)
|
||||||
|
|
||||||
sql = self._add_geometry_columns(sql, t.c.geometry)
|
sql = self._add_geometry_columns(sql, t.c.geometry)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user