]> git.openstreetmap.org Git - nominatim.git/commitdiff
ignore broken data in interpolation table
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 28 Mar 2023 12:57:39 +0000 (14:57 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 28 Mar 2023 12:57:39 +0000 (14:57 +0200)
nominatim/api/reverse.py

index ef6d10414efdef5740e7976bcede9967532de18c..f454a83777073a3ee90f516a5d7d9902e842ded4 100644 (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)