Caveat from newsgroup: Here's a simple 80/20 solution for people with lon/lat tables of
points wanting to do distance searches. It only works for places less
than 60degrees north or south, and only for points. If you know your
data is all more southerly than 60d, adjust the constant factor to
make the index portion of the search more selective (and hence,
efficient (faster)).