If I have two LatLongs, what is the best way to determine if the first one is within a 10 mile radius of the second?
Asked
Active
Viewed 605 times
2
-
2Duplicate of: http://gis.stackexchange.com/questions/2/how-do-i-find-the-distance-between-two-coordinates – Rowland Shaw Jul 30 '10 at 12:07
-
1Voting to close as an exact duplicate. – whuber Mar 10 '11 at 02:11
1 Answers
4
The following thread provides algorithms for calculating distance between lat/long coordinate pairs. Finding distance between two coordinates in ellipsoid?
After that, just do a conditional, like: if (distance <= 10):