Google Groups Home
Help | Sign in
Geokit model question
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all
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
Michael Hendrickx  
View profile
 More options Mar 12, 3:04 pm
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cloves Carneiro Jr  
View profile
 More options Mar 12, 3:14 pm
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

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Hendrickx  
View profile
 More options Mar 13, 5:40 pm
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
michaelsmith[code.ae]  
View profile
 More options Mar 18, 7:14 am
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aditya Raj  
View profile
 More options Apr 21, 11:16 am
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:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google