The earth is not flat, so it isn't so simple. The distance between
longitudes depends on the latitude. In technical terms, those lines
scrunch up at the poles.
Here are some resources; you can find others with a web search on
DISTANCE and LATITUDE and EARTH. Note that generally people want the
distance on the earth's surface, not *through* the earth.
Latitude/Longitude Distance Calculation,
http://www.nau.edu/~cvm/latlongdist.html
Surface Distance Between Two Points of Latitude and Longitude,
http://www.vsv.slu.se/johnb/java/lat-long.htm
-David
(B.A. Math and Physics, Univ. of Pennsylvania '85; former staffer at
Hughes Aircraft, where I contributed to the mapping algorithm for the
Magellan probe of Venus.)
On Wed, 10 Jan 2001 22:05:04 -0800 "Dylan Bromby" <[EMAIL PROTECTED]>
writes:
> http://www.tpsnet.com/html/zipcode.html
>
> and the "mystical" formula is pretty much pythagorean's theorem.
>
> -----Original Message-----
> From: Scott Weikert [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 10, 2001 3:30 PM
> To: CF-Talk
> Subject: Semi-OT - Zip code dbs/dist. formulas?
>
>
> Hey gang,
>
> I'm wondering if anyone has, or can point me at, a good (i.e. cheap
> or free)
> source for zip code data, along with lat/long values for each, and
> the
> mystical formula for calculating the distance between one lat/long
> and
> another lat/long.
>
> Thanks,
> --Scott
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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