ignore broken data in interpolation table

This commit is contained in:
Sarah Hoffmann 2023-03-28 14:57:39 +02:00
parent 36d068871d
commit e158017086

View File

@ -209,6 +209,7 @@ class ReverseGeocoder:
t.c.linegeo.ST_Distance(wkt).label('distance'),
t.c.linegeo.ST_LineLocatePoint(wkt).label('position'))\
.where(t.c.linegeo.ST_DWithin(wkt, distance))\
.where(t.c.startnumber != None)\
.order_by('distance')\
.limit(1)