limit results for country lookup

This commit is contained in:
Sarah Hoffmann
2023-03-30 09:58:02 +02:00
parent 1feac2069b
commit 1e2a1d9ce5

View File

@@ -500,7 +500,8 @@ class ReverseGeocoder:
.where(t.c.rank_address == 4)\
.where(t.c.rank_search == 4)\
.where(t.c.linked_place_id == None)\
.order_by('distance')
.order_by('distance')\
.limit(1)
sql = self._add_geometry_columns(sql, t.c.geometry)