For accuracy better than 0.5% there is the Haversine formula - see Julia code here.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Geodesy: how to calculate the straight line distance between two locations, which is represented by longitude and latitude? | 29 | 8416 | June 20, 2021 | |
Converting Longitude & Latitude to X Y on a map using Julia | 22 | 5839 | November 4, 2022 | |
[ANN] CoordRefSystems.jl | 48 | 3056 | March 21, 2025 | |
[ANN] GeoStats.jl - Geospatial Data Science and Geostatistical Modeling in Julia | 39 | 4460 | August 8, 2025 | |
Computational geometry in Julia | 0 | 734 | September 14, 2018 |