Geodesy: how to calculate the straight line distance between two locations, which is represented by longitude and latitude?

Doesn’t harversine distance in the Distances package work?

using Distances
julia> l1 = (-27.468937, 153.023628)
julia> l2 = (-27.465933, 153.025900)
julia> haversine(l1, l2, 6372.8)
0.39054922275889736

I used it to calculate distances in an agricultural plot.

10 Likes