X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/83013f819b463b14332854dd80cc47629bea0d1a..5160a1d57758ca95bb22d8372f6e84fb8f58e191:/src/nominatim_api/search/db_searches.py diff --git a/src/nominatim_api/search/db_searches.py b/src/nominatim_api/search/db_searches.py index 35c063fc..d2202b2c 100644 --- a/src/nominatim_api/search/db_searches.py +++ b/src/nominatim_api/search/db_searches.py @@ -616,6 +616,8 @@ class PostcodeSearch(AbstractSearch): for prow in await conn.execute(placex_sql, _details_to_bind_params(details)): result = nres.create_from_placex_row(prow, nres.SearchResult) + if result is not None: + result.bbox = Bbox.from_wkb(prow.bbox) break else: result = nres.create_from_postcode_row(row, nres.SearchResult)