title: Greatest distance between set of longitude/latitude points
body: <p>I have a set of lng/lat coordinates. What would be an efficient method of calculating the greatest distance between any two points in the set (the "maximum diameter" if you will)? </p>
  
  <p>A naive way is to use <a href="http://en.wikipedia.org/wiki/Haversine_formula" rel="noreferrer">Haversine formula</a> to calculate the distance between each 2 points and get the maximum, but this doesn't scale well obviously.</p>
  
  <p>Edit: the points are located on a sufficiently small area, measuring the area in which a person carrying a mobile device was active in the course of a single day.</p>