Distance and Azimuth Between Two Cities
Calculate the shortest distance and azimuth between two cities, and indicate the direction from city A to B.

A to B Azimuth
Calculations are based on the Earth as a sphere with an equatorial radius of r = 6378.137 km.
Azimuths are North: 0 degrees, East: 90 degrees, South: 180 degrees, West: 270 degrees.
Location A (longitude x1, latitude y1) and location B (longitude x2, latitude y2)
Calculations are based on the Earth as a sphere with an equatorial radius of r = 6378.137 km.
Azimuths are North: 0 degrees, East: 90 degrees, South: 180 degrees, West: 270 degrees.
Location A (longitude x1, latitude y1) and location B (longitude x2, latitude y2)
| \(\normalsize\\\hspace{10px} d=r \cos^{\tiny -1}( \sin y_{\tiny 1} \sin y_{\tiny 2}+ \cos y_{\tiny 1} \cos y_{\tiny 2} \cos\Delta x)\\ \phi=90-atan2(\sin\Delta x,\ \cos y_{\tiny 1} \tan y_{\tiny 2}- \sin y_{\tiny 1} \cos\Delta x)\\ \hspace{30px}\Delta x=x_{\tiny 2}-x_{\tiny 1}\\ \hspace{30px} atan2(x,y)=atan(\large\frac{y}{x}) \) |
No customer feedback for this calculation yet.