[GENERAL] earthdistance compass bearing

2013-06-18 Thread Jeff Herrin
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? thanks, altimage

Re: [GENERAL] earthdistance compass bearing

2013-06-18 Thread John R Pierce
On 6/18/2013 10:42 AM, Jeff Herrin 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? calculating the angle

Re: [GENERAL] earthdistance compass bearing

2013-06-18 Thread Steve Crawford
On 06/18/2013 10:42 AM, Jeff Herrin 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? PostGIS has some functions

Re: [GENERAL] earthdistance compass bearing

2013-06-18 Thread Merlin Moncure
On Tue, Jun 18, 2013 at 12:42 PM, Jeff Herrin j...@openhotel.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?

Re: [GENERAL] earthdistance compass bearing

2013-06-18 Thread Jeff Herrin
Subject: Re: [GENERAL] earthdistance compass bearing On 06/18/2013 10:42 AM, Jeff Herrin 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

Re: [GENERAL] earthdistance compass bearing

2013-06-18 Thread Paul Ramsey
(mailto:pgsql-general@postgresql.org) Sent: Tuesday, June 18, 2013 11:37:10 AM Subject: Re: [GENERAL] earthdistance compass bearing On 06/18/2013 10:42 AM, Jeff Herrin wrote: I'm trying to get a compass bearing (N,S,NW,etc) using earthdistance. I can successfully get the distance between 2

Re: [GENERAL] earthdistance compass bearing

2013-06-18 Thread John R Pierce
On 6/18/2013 11:16 AM, Jeff Herrin wrote: I don't need it to be too accurate. We're pushing hotel info into the GDS (sabre, expedia, orbitz, etc). They require airport info relative to the hotel. Example: DFW is 25 miles NW of the property. I thought about just faking it...comparing the

Re: [GENERAL] earthdistance compass bearing

2013-06-18 Thread Steve Crawford
On 06/18/2013 11:16 AM, Jeff Herrin wrote: I don't need it to be too accurate. We're pushing hotel info into the GDS (sabre, expedia, orbitz, etc). They require airport info relative to the hotel. Example: DFW is 25 miles NW of the property. I thought about just faking it...comparing the