>Thanks Will. Can you tell if the formula that you used to calculate the
>distance between 2 latitutdes and longitudes is the "flat-earth" formula or
>the "spherical earth" formula? I am talking about:
>ROUND((ACOS((SIN(#passedzip.latitude#/57.2958) * SIN(latitude/57.2958)) +
>(COS(#passedzip.latitude#/57.2958) * COS(latitude/57.2958) *
>COS(longitude/57.2958 - #passedzip.longitude#/57.2958))))  * 3963)
>

I don't know what it is. I think I found it through google a while back. I DO 
know that it seems to give fairly accurate results. And it also displays the 
distance in the results, which is nice.  

Will

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226000
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to