Skip to content

Include more region details

Kevin Ring requested to merge regionDetails into master

/regions/search now includes a bounding box (it already had the other properties): image

And /datasets/search now includes both the name and bounding box: image

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.

Merge request reports

Loading