Open bopjesvla opened 9 months ago
Or if we do have a report function:
When A is reported as a duplicate of B, A is hidden on the map until zoomed in. When someone clicks A or B, reviews for both show up, labels as described above.
Halfway there, just need to display the child spots in their original locations when the parent spot is clicked.
I looked at https://github.com/Hitchwiki/hitchmap-data/blob/main/cleaning/clean_map.ipynb
I like the approach of clustering using OSM objects. I think the algorithm has to look a little bit like this:
For all spots A that have a spot B nearby, get the the service area surrounding A and the service area surrounding B. If there's no service area surrounding either, get the road nearest to A and the road nearest to B.
If the service area is the same...
OR
If the road is the same AND the road doesn't split A and B...
THEN
...put A and B in 1 cluster.