1.0.1 • Published 2 years ago
youradius v1.0.1
To find the distance between two locations on the Earth's surface using angular measurements, you can use the Haversine formula. The Haversine formula calculates the great-circle distance between two points on the surface of a sphere, such as the Earth.
The formula takes into account the latitude and longitude of the two points. The formula is as follows:
a = sin²(Δlat/2) + cos(lat1) cos(lat2) sin²(Δlon/2) c = 2 atan2( √a, √(1−a) ) d = R c