The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Michael Hendrickx <michael.hendri... @gmail.com>
Date: Wed, 12 Mar 2008 12:04:59 -0700 (PDT)
Local: Wed, Mar 12 2008 3:04 pm
Subject: Geokit model question
Hi guys,
For calculating the distance between two points, as done on
restate.ae, what do you guys use? GeoKit?
Thanks,
Michael
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"Cloves Carneiro Jr" <ccarnei... @gmail.com>
Date: Wed, 12 Mar 2008 23:14:38 +0400
Local: Wed, Mar 12 2008 3:14 pm
Subject: Re: Geokit model question
Hey Michael
GeoKit? No, we just use math :)
def distance_between_points(point1_lat, point1_lng, point2_lat, point2_lng) dist = Math.acos( Math.sin(deg_to_rad(point1_lat)) * Math.sin(deg_to_rad(point2_lat)) + Math.cos(deg_to_rad(point1_lat)) * Math.cos(deg_to_rad(point2_lat)) * Math.cos(deg_to_rad(point1_lng - point2_lng)) ) dist = rad_to_deg(dist); km = dist * 69 * 1.61; end
Cheers,
On Wed, Mar 12, 2008 at 11:04 PM, Michael Hendrickx
<michael.hendri
... @gmail.com> wrote:
> Hi guys,
> For calculating the distance between two points, as done on > restate.ae, what do you guys use? GeoKit?
> Thanks, > Michael
--
Cloves Carneiro Jr
SpinBits -
http://spinbits.com Blog -
http://ccjr.name Book -
http://beginningrails.com
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Michael Hendrickx <michael.hendri... @gmail.com>
Date: Thu, 13 Mar 2008 14:40:45 -0700 (PDT)
Local: Thurs, Mar 13 2008 5:40 pm
Subject: Re: Geokit model question
Thank you so much Junior! :)
The math makes total sense.. except for the 69 at the end, what's
that?
On Mar 12, 11:14 pm, "Cloves Carneiro Jr" <ccarnei... @gmail.com>
wrote:
> km = dist * 69 * 1.61;
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
"michaelsmith[code.ae]" <michael.shmi... @gmail.com>
Date: Tue, 18 Mar 2008 04:14:35 -0700 (PDT)
Local: Tues, Mar 18 2008 7:14 am
Subject: Re: Geokit model question
You *really* don't wanna know.... :)
On Mar 14, 1:40 am, Michael Hendrickx <michael.hendri... @gmail.com>
wrote:
> Thank you so much Junior! :)
> The math makes total sense.. except for the 69 at the end, what's
> that?
> On Mar 12, 11:14 pm, "Cloves Carneiro Jr" <ccarnei... @gmail.com>
> wrote:
> > km = dist * 69 * 1.61;
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Aditya Raj <aditya.inter... @gmail.com>
Date: Mon, 21 Apr 2008 08:16:21 -0700 (PDT)
Local: Mon, Apr 21 2008 11:16 am
Subject: Re: Geokit model question
I would really like to use GeoKit instead !!
I really doubt this method to be code from GeoKit if it does work... I
really dont wanna try to see if its gonna work :)
On Mar 13, 12:14 am, "Cloves Carneiro Jr" <ccarnei... @gmail.com>
wrote:
> Hey Michael
> GeoKit? No, we just use math :)
> def distance_between_points(point1_lat, point1_lng, point2_lat, point2_lng)
> dist = Math.acos( Math.sin(deg_to_rad(point1_lat)) *
> Math.sin(deg_to_rad(point2_lat)) + Math.cos(deg_to_rad(point1_lat)) *
> Math.cos(deg_to_rad(point2_lat)) * Math.cos(deg_to_rad(point1_lng -
> point2_lng)) )
> dist = rad_to_deg(dist);
> km = dist * 69 * 1.61;
> end
> Cheers,
> On Wed, Mar 12, 2008 at 11:04 PM, Michael Hendrickx
> <michael.hendri... @gmail.com> wrote:
> > Hi guys,
> > For calculating the distance between two points, as done on
> > restate.ae, what do you guys use? GeoKit?
> > Thanks,
> > Michael
> --
> Cloves Carneiro Jr
> SpinBits -http://spinbits.com
> Blog -http://ccjr.name
> Book -http://beginningrails.com
You must
Sign in before you can post messages.
You do not have the permission required to post.