Re: earthdistance compass bearing

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Jeff Herrin <jeff(at)openhotel(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: earthdistance compass bearing
Date: 2013-06-18 18:37:45
Message-ID: CAHyXU0wZxQ=gon4r6hVsiQLfy19CgW3B0pOOxNvXWL6=ktAbig@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Jun 18, 2013 at 12:42 PM, Jeff Herrin <jeff(at)openhotel(dot)com> wrote:
> I'm trying to get a compass bearing (N,S,NW,etc) using earthdistance. I can
> successfully get the distance between 2 points using either the point or
> cube method, but I've been struggling with getting the bearing. Any tips?

convert the code from here:
http://www.movable-type.co.uk/scripts/latlong.html

I previously showed how you could convert midpoint here:
http://www.mail-archive.com/pgsql-general(at)postgresql(dot)org/msg159460.html

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Paul Ramsey 2013-06-18 18:58:57 Re: earthdistance compass bearing
Previous Message Steve Crawford 2013-06-18 18:37:10 Re: earthdistance compass bearing