]> git.openstreetmap.org Git - nominatim.git/blobdiff - src/nominatim_api/search/db_searches.py
get bbox of postcode areas into results
[nominatim.git] / src / nominatim_api / search / db_searches.py
index 35c063fc937701dc4086eb677e826c671a3b7ac4..d2202b2ccfb827d737f19af6aae574ecdb69e622 100644 (file)
@@ -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)