Radius of multiple latitude/longitude points
- by zekial
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.