If you can get a zip code db that contains latitudes and longitudes you can
use:
The great circle distance d between two points with coordinates {lat1,lon1}
and {lat2,lon2} is given by:
d=acos(sin(lat1)*sin(lat2)+cos(lat1)*cos(lat2)*cos(lon1-lon2))
Props go to Novak Banda.
He used to have a free zip code db at http://www.cfdynamics.com/zipbase but
I'm not sure if its still there, updated, or whatever...
HTH,
Max
-----Original Message-----
From: Jon Block [mailto:[EMAIL PROTECTED]
Sent: Friday, February 18, 2005 11:32 AM
To: CF-Talk
Subject: Zip code radius database?
I need to be able to find all zip codes within x miles of a given zip code.
What' the best (perhaps free) way to do this?
Gracias!
Jon Block
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195399
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54