That was me, who was asking....
But I'm glad you spoke up, because something I was wondering about the
formulas that were being tossed around. Do they handle the fact that two
sets of positions, with identical longitudes (east-west, right?) but
different latitu
des, would be a different distance?
For example, two sets of positions - both the same longitude, but latitudes
of several hundred miles difference - and two other positions, also the same
longitude, and the same distance apart north-south as the other two. The
northern set of positions would be a shorter distance apart than the
southern set... does the formula deal with that?
--Scott
----- Original Message -----
From: "Dylan Bromby" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, January 27, 2001 4:36 PM
Subject: The real distance formula
> A week or more ago, someone posted a formula for calculating the distance
> between two points using latitude/longitude. I think the formula as
> incorrect. However, here is one that works perfectly;
>
> #Evaluate(((pi()*6378)/180)*(ACos((Sin(lat_A)*Sin(lat_B)) +
> (Cos(lat_A)*Cos(lat_B)*Cos(lat_A-lat_B)))))#
>
> This yields distance in KM. If you want miles, do the calculation after
the
> fact, or change the value of 6378 - the earth's radius in KM - to a value
> in miles.
>
> --Dylan
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists