From b710297d053fe0bfd8fb23686b48358853dbd827 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 13 Aug 2023 14:37:28 +0200 Subject: [PATCH] return bbox of full country for country searches Fixes #3149. --- nominatim/api/search/db_searches.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nominatim/api/search/db_searches.py b/nominatim/api/search/db_searches.py index 638f5b83..115f32fa 100644 --- a/nominatim/api/search/db_searches.py +++ b/nominatim/api/search/db_searches.py @@ -427,6 +427,7 @@ class CountrySearch(AbstractSearch): result = nres.create_from_placex_row(row, nres.SearchResult) assert result result.accuracy = self.penalty + self.countries.get_penalty(row.country_code, 5.0) + result.bbox = Bbox.from_wkb(row.bbox) results.append(result) return results or await self.lookup_in_country_table(conn, details) -- 2.39.5