I'm looking for a python library to organize a set of coordinates into clusters. My input is a list of (latitude, longitude) coordinates, and I want to get a list of clusters that group them according to distance.
I don't know before hand how many clusters I need to obtain, so I can't use something like a K-Means (like the cluster module) algorithm (not alone at least, maybe I there's an algorithm I can use to obtain that number based on the input data).
I also looked at clusterpy, but it seemed overly complicated for the task and the documentation is not very guiding.
I would recommend scikit learn. The linked page has a good discussion about different clustering algorithms. For geographic clustering (as someone above already suggested) DBSCAN works well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With