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
391 stars 78 forks source link

[map] implement polygon search #4011

Open bakeiro opened 8 months ago

bakeiro commented 8 months ago

Current behavior:

I open the map and search for Thailand, I only get 2 hosts there, I delete the filter, then I get that more than 100 people in Thailand (pretty big issue 🙃) [video attached]

Desired behavior:
I search for Thailand and I get the real number of users that are in Thailand

https://github.com/Couchers-org/couchers/assets/16777161/cd56fd52-f42a-4863-9530-a22426dd9a1e

bakeiro commented 8 months ago

Implementation:

frontend Get the geometries from nominatim, then send them to the backend

backend: [this ticket] Once it receives the geometries from the frontend, search the users inside this geometry only

Note:
Frontend only will send the geometries to the backend if the area it's an non-region (more info in the frontend ticket)

bakeiro commented 3 months ago

I don't think we need to do this, since we have the viewbox search now...

nabramow commented 3 weeks ago

@bakeiro looks like this should be marked as closed is that right?

bakeiro commented 3 weeks ago

@nabramow yes & no, I want to double check it myself first (I didn't have time for that 😅)

bakeiro commented 3 weeks ago

the status is paused because of this 😅

nabramow commented 3 weeks ago

the status is paused because of this 😅

Sorry I accidentally closed it that was a mistake!! Reopened lol but in case you get the email and are like wtf.