Greetings,
This is an old question brought to the front again by myself,
there is a similar query to this on the FAQ's finding the distance between
two zip codes,
I have been using a formula similar to this to work out the difference
between longitudes and latitudes
this is what I have been
looks maybe like your distance is in radians? are your lat/long coordinates
in
radians as well? for that formula i think you need radians:
radians=(degrees+minutes/60)*pI/180
great CIRCLE distance forumla:
d=(acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon1-lon2)))*180*60/pi
where lat
PROTECTED]]
Sent: Tuesday, April 30, 2002 12:43 PM
To: CF-Talk
Subject: Re: Longitudes and Latitudes (AGAIN)
looks maybe like your distance is in radians? are your lat/long coordinates
in
radians as well? for that formula i think you need radians:
radians=(degrees+minutes/60)*pI/180
great CIRCLE
Well honestly, yes and no,
or co-ordinates are coming back in degrees that is positive,
decimal degrees? 33.56. or degrees minutes seconds? 33 18 10
with some kind of delimiter?
__
Structure your ColdFusion code with
They are coming back decimal degrees
33.3646548394367336 -56.346777393 and so on,
I think I see whay your getting at,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 1:18 PM
To: CF-Talk
Subject: Re: Longitudes and Latitudes
33.3646548394367336 -56.346777393 and so on,
convert to radians then before using that forumla, also double check if
the backend's looking for meters or radians or what for that distance
value.
__
Get the mailserver that
Respectfully,
J
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 1:37 PM
To: CF-Talk
Subject: Re: Longitudes and Latitudes (AGAIN)
33.3646548394367336 -56.346777393 and so on,
convert to radians then before using that forumla
7 matches
Mail list logo