Shared-Reality-Lab / IMAGE-server

IMAGE project server components
Other
2 stars 7 forks source link

Return valid osm response for placeId #901

Closed jaydeepsingh25 closed 4 weeks ago

jaydeepsingh25 commented 1 month ago

The PR provides fix for https://github.com/Shared-Reality-Lab/IMAGE-server/issues/870. It fixes a common bug for the cases where map request is made with a query text, OSM preprocessor does not return a valid response in that case. PlaceId in the request in the request contains the queryText and not actual placeId. Hence we need to call place/textsearchendpoint rather than place/details endpoint. Autour preprocess has a similar logic in place. Tested on unicorn with both the cases(coordinates and placeId)

Don't delete below this line.


Required Information

Coding/Commit Requirements

New Component Checklist (mandatory for new microservices)

OR