Closed wavemechanics closed 2 years ago
Add checks to ensure that the coordinates passed to the query and query2 endpoints make basic sense.
For bbox= and polygon=, the bounding box must overlap the bounding box of the UK.
For location= and radius=, the location must be within the bounding box of the UK, and radius must be 1..1000000 (an arbitrary limit).
Also added a mechanism in inttests to verify the API returns non-200 codes when expected.
What
Add checks to ensure that the coordinates passed to the query and query2 endpoints make basic sense.
For bbox= and polygon=, the bounding box must overlap the bounding box of the UK.
For location= and radius=, the location must be within the bounding box of the UK, and radius must be 1..1000000 (an arbitrary limit).
Also added a mechanism in inttests to verify the API returns non-200 codes when expected.