Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How to calculate the distance between two cities ?

CALCULATE cities distance
0
Posted

How to calculate the distance between two cities ?

0

The formula used to calculate the distance between two geographical points is called orthodromy, it is defined as follows : Distance(A,B) = 6371 * ACos( Cos(LatA) * Cos(LatB) * Cos(LngB – LngA) + Sin(LatA) * Sin(LatB) )The resulting number is the distance in kilometers between point A and point B. If you wish to return a result in miles (or any other unit), you must substitute the value 6371, which stands for the approximate radius of the Earth in km, by its equivalent in miles (or any other unit), that is 3959 miles. Latitude and longitude values must be input in radians : radians = degrees * PI/180. Excel template is available here.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123