Distance in miles using GPS coordinates (decimal degrees):
R1=Starting Position (Latitude) R2=Starting Position (Longitude)
R3=Ending Position (Latitude) R4=Ending Position (Longitude)
miles = acos(cos(radians(90-R1))*cos(radians(90-R3))+sin(radians(90-R1))*sin(radians(90-R3))*cos(radians(R2-R4)))*3958.756
kilometers = acos(cos(radians(90-R1))*cos(radians(90-R3))+sin(radians(90-R1))*sin(radians(90-R3))*cos(radians(R2-R4)))*6371
zondag 18 april 2010
Abonneren op:
Reacties posten (Atom)
Geen opmerkingen:
Een reactie posten