Couchers-org / couchers

The next-generation couch surfing platform. Free forever. Community‑led. Non‑profit. Modern. Chuck us a star :)
https://couchers.org
MIT License
361 stars 76 forks source link

UserSearch should have ability to filter by viewport/bounds #4513

Open aapeliv opened 1 week ago

aapeliv commented 1 week ago

Part of #4129

Frontend part: #4081

bakeiro commented 1 week ago

Actual situation: There is a backend function (service.search.userSearch) which receives as parameters the x,y coordinates, and search all the users in that point and 50Km around it

Desired situation Instead of this, the backend should receive 4 points (the bounding box) and the sends back to frontend the list of users inside that box

Notes: If the boundingBox it's to big (the size of a continent) this shouldn't be allowed, check this on the backend as well

bakeiro commented 1 week ago

image