Radius of multiple latitude/longitude points
Posted
by zekial
on Stack Overflow
See other posts from Stack Overflow
or by zekial
Published on 2010-04-26T20:28:42Z
Indexed on
2010/04/26
20:33 UTC
Read the original article
Hit count: 221
I have a program that takes as input an array of lat/long points. I need to perform a check on that array to ensure that all of the points are within a certain radius. So, for example, the maximum radius I will allow is 100 miles. Given an array of lat/long (coming from a MySQL database, could be 10 points could be 10000) I need to figure out if they will all fit in a circle with radius of 100 miles.
Kinda stumped on how to approach this. Any help would be greatly appreciated.
© Stack Overflow or respective owner