are you asking me or him? i wouldn't know his intent. obviously, the code
provided is for "crow-flies" calculation. for "turn-by-turn" you can:

1) pay mapquest or comparable service for access to their turn-by-turn
engine
- or -
2) license a turn-by-turn server from someone like MQ, ESRI, etc.
- or -
3) write a bot that goes out and gets the data for you.

1 & 2 are $$. 3 is free...albeit questionable. :)


-----Original Message-----
From: Douglas Knudsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 8:23 AM
To: CF-Talk
Subject: RE: Distance b/w Two Zips Function




did he want staright line distance or the 'by car' distance?

DK



From: [EMAIL PROTECTED] AT INTERNET on 02/28/2001 10:45 AM

To:   [EMAIL PROTECTED] AT INTERNET@CCMAIL
cc:    (bcc: Douglas Knudsen/ATL/ALLTELCORP)

Subject:  RE: Distance b/w Two Zips Function


this has come up before....here's what i use. i understand there are
more
accurate formulas (look up haversine's formula and see links below),
but
this works really well for me;

<CFSET distance =
#Evaluate(((pi()*3969.96)/180)*(ACos((Sin(lat_A)*Sin(lat_B)) +
(Cos(lat_A)*Cos(lat_B)*Cos(lon_A-lon_B)))))#>

here are some links as well:

http://www.indo.com/distance/distance-details.html
http://www.svpal.org/~walters/GC_Measurements.htm

--dylan

-----Original Message-----
From: Duane Boudreau [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 7:15 AM
To: CF-Talk
Subject: Distance b/w Two Zips Function


Hi All,

Does anyone have the mathematical function for calculating the
distance
between two zip codes using the latitude and longitude of both zip
codes?

TIA
Duane
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to