The attached patch defines functions for getting distances between points
on the surface of the earth and locating points within a specified distance
using an index based on the contrib/cube package. The new functions are
all of language type sql.
A couple of bugs in the old earthdistance function based on the point
datatype are fixed.
A regression test has been added for both sets of functions.
The README file has been updated to include documentation on the new stuff.
There are comments about how this package is also useful for Astronomers.