Greater Circle Distance Calculation
Description
4air needs a fast calculator module that multiple projects can use. The calculator will be used to calculate the distance between two points on the Earth's surface. The distance is calculated using the Great Circle Distance formula. The formula is as follows:
d = rcos-1[cos a cos b cos(x-y) + sin a sin b]
a = sin²(Δφ/2) + cos φ1 ⋅ cos φ2 ⋅ sin²(Δλ/2)
c = 2 ⋅ atan2( √a, √(1−a) )
d = R ⋅ c
Version 0.2.0