thread184-496015
Hi!
I have used successfully GriffMG solution!
I understand everything except one thing...
What kind of number that radius?
As I know the earth radius is about 3,959 miles. So what is that ~4214 miles. As I search in other site and distance calculators it uses this number (google and other uses too).
For example Wien and Budapest distance is ~133 miles with the ~4214 miles, but with the ~3,959 miles it's only ~127 miles.
So which one is the correct radius?
Thanks
Hi!
I have used successfully GriffMG solution!
Code:
CLEAR
Lat1=52.47758
Lon1=1.90983
Lat2=50.80029
Lon2=1.08825
Dlat=Lat2-Lat1
Dlon=Lon2-lon1
a=(sin(dtor(Dlat/2)))^2 + (cos(dtor(lat1)) * cos(dtor(lat2)) * (sin(dtor(dlon/2)))^2)
Radius = 4214.618316927
c=2*asin(sqrt(a))
d=Radius*c
I understand everything except one thing...
What kind of number that radius?
As I know the earth radius is about 3,959 miles. So what is that ~4214 miles. As I search in other site and distance calculators it uses this number (google and other uses too).
For example Wien and Budapest distance is ~133 miles with the ~4214 miles, but with the ~3,959 miles it's only ~127 miles.
So which one is the correct radius?
Thanks