You are using the new UI (Beta).Return to the original UI

This page has been automatically translated by machine translation. Please note that translations may not be entirely accurate.

keisanHigh-precision calculations for everyday life and work

Distance and Azimuth Between Two Cities

Manage Bookmarks
Calculate the shortest distance and azimuth between two cities, and indicate the direction from city A to B.
City A :
Longitude,
Latitude
 
City B :
Longitude,
Latitude
[ Earth’s Radius rkm]
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)
\(\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.