2

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?

2

1 Answer 1

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):

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.