How to find the angle between two locations defined by latitude or longitude

I do not want any code, but I want to get a link, how can we find the angle between two locations defined by latitude or longitude ...

If you have a link, please help me solve my problem ...

Thanx in advance ....

+1
source share
3 answers

Bearing calculation formula:

(lat2) - sin (lat1) .cos (lat2) .cos (Δlong))

Bearing is the direction of movement from one place to another (starting from the north, and then clockwise). Although the angle in 2D starts from the east, and then counterclockwise. Therefore, if the angle is what you need, later you need to add 90 degrees to the result, and then return it (add minus).

: http://www.movable-type.co.uk/scripts/latlong.html

+6

Math.Atan2(x1-x2,y1-y2)            
+1

, . , . , . - -, . .

-

0

All Articles