On 21 Jul 2010, at 23:14, Joe Conway <mail@xxxxxxxxxxxxx> wrote: If you want something simple, and not requiring PostGIS, but plpgsql For completeness, the earthdistance module also provides the distance between two lat/longs, the point<@>point syntax is simple to use: Regards Oliver Kohll oliver@xxxxxxxxxxxxxxx / +44(0)7814 828608 / skype:okohll www.agilebase.co.uk - software |