Finds the pairs of nodes within max_dist of each other with
find_stop_pairs_within() and merges them with cpp_merge_stop_clusters().
cluster_stop_nodes(lat, lon, max_dist)An integer vector with the cluster of each node. When every pair
of nodes is surely within max_dist, all nodes are in cluster 1 and the
pairs are not calculated.
Numeric vectors with the coordinates of each node, in degrees.
A number, in meters.