department-for-transport-public / D-TRO

Digital Traffic Regulation Orders (D-TRO)
MIT License
3 stars 1 forks source link

SEARCH #11

Open gbkls opened 1 month ago

gbkls commented 1 month ago

When doing a search what appears to be a summary record is returned with an id

Using the id to do a GET appears to return the full record

I assume this is as intended, please confirm

The full record does not contain the id field that was searched for

Why not

gbkls commented 1 month ago

Further clarification on search I was earlier briefed that the bbox search uses wgs84 lat, long rather than OSGR can you confirm this is correct

if so can I suggest you store WGS84 alongside OSGR to avoid yourselves and end users constantly needing to translate

MehrajRM commented 3 weeks ago

Hi George, we are currently exploring this and will update as soon as we can. Thanks again for your feedback and suggestion.

stm-john-cooper commented 2 weeks ago

Thanks for your patience whilst we investigated and replied on this issue.

The SEARCH endpoint will return whatever data is included in the request parameters. GET provides full records. In summary it is working how it should and you should choose to use whichever suits best.

We are reviewing the actions to include the id in the search results and this item is currently on the backlog.

The bounding box function has been suppressed for the moment. When it is relaunched, it will use OSGR.