X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/416e70b97e2fe8e387bc1057084a81f71682dec2..046665f8d9b0cd11d59c8470e34833bc02b569ce:/src/nominatim_api/reverse.py?ds=sidebyside diff --git a/src/nominatim_api/reverse.py b/src/nominatim_api/reverse.py index 8a75c5b9..c9f11b63 100644 --- a/src/nominatim_api/reverse.py +++ b/src/nominatim_api/reverse.py @@ -362,6 +362,8 @@ class ReverseGeocoder: # later only a minimum of results needs to be checked with ST_Contains. inner = sa.select(t, sa.literal(0.0).label('distance'))\ .where(t.c.rank_search.between(5, MAX_RANK_PARAM))\ + .where(t.c.rank_address != 5)\ + .where(t.c.rank_address != 11)\ .where(t.c.geometry.intersects(WKT_PARAM))\ .where(sa.func.PlacexGeometryReverseLookuppolygon())\ .order_by(sa.desc(t.c.rank_search))\