How do I calculate the distance between two points specified by latitude and longitude?
For clarification, I'd like the distance in kilometers; the points use the WGS84 system and I'd like to understand the relative accuracies of the approaches available.
Best Answer
This link might be helpful to you, as it details the use of the Haversine formula to calculate the distance.
Excerpt: