bopjesvla / hitch

https://hitchmap.com
GNU Affero General Public License v3.0
8 stars 2 forks source link

Cluster nearby points on the front-end #46

Open bopjesvla opened 9 months ago

bopjesvla commented 9 months ago
bopjesvla commented 6 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.

bopjesvla commented 5 months ago

Halfway there, just need to display the child spots in their original locations when the parent spot is clicked.

bopjesvla commented 1 month ago

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.