I found the following algorithm which works perfectly with single values [2;4;56;10;34;....]
: https://radixcode.com/k-mean-clustering-algorithm-implementation-in-c-java
Now I want to replace my singular dataset with geolocation coordinates
-
For example, let's assume I have the following pairs:
Longitude: 759849.934, Latitude: 193728.08
Longitude: 760151.603, Latitude: 192624.342
Longitude: 759217.306, Latitude: 191895.671
Longitude: 758446.428, Latitude: 191074.83
Longitude: 758422.0, Latitude: 192359.0
Is there a way to calculate a single value from Longitude
and Latitude
so as to apply this algorithm?