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 | 8608 | June 20, 2021 | |
| Converting Longitude & Latitude to X Y on a map using Julia | 22 | 5989 | November 4, 2022 | |
| [ANN] CoordRefSystems.jl | 49 | 3467 | December 9, 2025 | |
| [ANN] GeoStats.jl - Geospatial Data Science and Geostatistical Modeling in Julia | 43 | 5202 | December 11, 2025 | |
| Computational geometry in Julia | 0 | 747 | September 14, 2018 |