Include more region details
/regions/search
now includes a bounding box (it already had the other properties):
And /datasets/search
now includes both the name and bounding box:
If the region is not found, the name in the query part of the dataset search response will be [Unknown]
, the boundingBox
will be missing, and there will be an error just as before.
The region type and ID in the query are case insensitive, but the response will always have the correct case.
This currently does an extra Elasticsearch for each region included in the query, which is not ideal. But since the UI will only ever include one region in the query, I think we can live with this for now.