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?

MerseyViking
  • 14,543
  • 1
  • 41
  • 75
Nate
  • 135
  • 6

1 Answers1

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

glennon
  • 2,080
  • 18
  • 21