Here's a quick sample of how to calculate based on origin and destination longitute and latitude. I found this code quite some time ago.
Assuming the following:
A2 = Origin Latitude
B2 = Origin Longitude
C2 = Destination Latitude
D2 = Destination Longitude
E2 = calculation formula (see below)
sew
Main Topics
Browse All Topics





by: zorvekPosted on 2008-04-28 at 17:27:23ID: 21458748
Use this formula:
57.3)+COS( A1/57.3)*C OS(A2/57.3 )*COS(B2/5 7.3-B1/57. 3))
=ACOS(SIN(A1/57.3)*SIN(A2/
Where A1/B2 is long/lat 1 and A2/B2 is long/lat 2.
Kevin