# Distance between two places on the earth Calculator

## Calculates the distance and azimuth between two places from latitudes and longitudes.

 Calculation assumes that the Earth is a sphere with a radius of 6378km.Input negative degree for west longtitude and south latitude.

 A: Longitude Latitude B: Longitude Latitude [ Earth's radius r km ] 6digit10digit14digit18digit22digit26digit30digit34digit38digit42digit46digit50digit
 Compass from A to Bplace A(x1, y1)、place B(x2, y2)$\normal\\\hspace{10}d=rcos^{\tiny -1}(siny_{\tiny 1}siny__{\tiny 2}+cosy__{\tiny 1}cosy__{\tiny 2}cos\Delta x)\\\phi=90-atan2(sin\Delta x,\ cosy_{\tiny 1}tany_{\tiny 2}-siny_{\tiny 1}cos\Delta x)\\\hspace{30}\Delta x=x_{\tiny 2}-x_{\tiny 1}\\\hspace{30} atan2(x,y)=atan(\large\frac{y}{x})$

Distance between two places on the earth
 [1-10] /19 Disp-Num5103050100200
[1]  2019/03/19 06:59   Male / 40 years old level / Others / Very /
Purpose of use
I wanted to be able to tell someone "You are literally 10 thousand miles away!" ...and actually know what I was talking about. Now I can do that. So....bragging rights? ;)
[2]  2019/01/20 21:05   Male / 40 years old level / A teacher / A researcher / Very /
Purpose of use
Wanted to compare the distance between extreme points (N/S) of two countries.
Comment/Request
Great public service and easy to use (but had to transform degrees/minutes/seconds into decimals myself).
[3]  2018/12/26 23:24   Male / 60 years old level or over / A retired person / Very /
Purpose of use
Writing a book.
[4]  2018/10/10 04:22   Male / 20 years old level / High-school/ University/ Grad student / Very /
Purpose of use
Check my distance from an earthquake epicenter.
[5]  2018/08/27 09:00   Male / 30 years old level / An engineer / Useful /
Purpose of use
Measure the distance to an earthquake epicenter and knowing the time I felt it, confirm the speed of the seismic wave
[6]  2018/08/25 11:08   Male / 20 years old level / Elementary school/ Junior high-school student / Very /
Purpose of use
research flat earth
[7]  2018/05/23 11:08   Male / 40 years old level / An office worker / A public employee / A little /
Purpose of use
Twofold. To check if you used altitude in your calculation (you don''t) and to mercilessly rip off your code or formulae if you did. Still, nice bit of code.
[8]  2018/05/12 12:43   Male / 20 years old level / High-school/ University/ Grad student / Useful /
Purpose of use
curiosity
[9]  2018/04/24 23:58   Male / 20 years old level / An engineer / Very /
Purpose of use
To see how far away I moving
[10]  2018/04/18 03:00   Female / Under 20 years old / High-school/ University/ Grad student / Very /
Purpose of use
To check my results of the Law of Cosines that I used to find the distance between two points for my maths exploration.

Thank you for your questionnaire.
Sending completion

To improve this 'Distance between two places on the earth Calculator', please fill in questionnaire.
Male or Female ?
Age

Occupation

Useful?

Purpose of use?