increase search area when filtering by postcode

This commit is contained in:
Sarah Hoffmann
2024-04-02 18:07:23 +02:00
parent fe873ad0e2
commit 38798bba13
2 changed files with 4 additions and 4 deletions

View File

@@ -678,7 +678,7 @@ class PlaceSearch(AbstractSearch):
tpc = conn.t.postcode
sql = sql.where(sa.select(tpc.c.postcode)
.where(tpc.c.postcode.in_(self.postcodes.values))
.where(t.c.centroid.within_distance(tpc.c.geometry, 0.12))
.where(t.c.centroid.within_distance(tpc.c.geometry, 0.4))
.exists())
if details.viewbox is not None: