View Single Post
  #4 (permalink)  
Old 04-30-2007, 12:27 AM
sho431 sho431 is offline
Newbie
 
Join Date: Apr 2007
Posts: 4
Default

Quote:
Originally Posted by PatrikL View Post
Good idea, i try to find formula via google
I need

Code:
distanceEast=(Lon2.Text - Lon1.Text) 
distanceNorth=(Lat2.Text - Lat1.Text)
direction= 
Atan(distanceNorth/distanceEast) Mod (2 * cPI)
direction = (direction)*(
180/cPI)
If direction < 0 Then
direction+= 
360
  
End If
Reply With Quote