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 | 8972 | June 20, 2021 | |
| Converting Longitude & Latitude to X Y on a map using Julia | 22 | 6238 | November 4, 2022 | |
| [ANN] CoordRefSystems.jl | 50 | 4176 | August 27, 2026 | |
| [ANN] GeoStats.jl - Geospatial Data Science and Geostatistical Modeling in Julia | 49 | 6489 | July 31, 2026 | |
| Computational geometry in Julia | 0 | 775 | September 14, 2018 |