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 | 9114 | June 20, 2021 | |
| Converting Longitude & Latitude to X Y on a map using Julia | 22 | 6317 | November 4, 2022 | |
| [ANN] CoordRefSystems.jl | 50 | 4448 | August 27, 2026 | |
| [ANN] GeoStats.jl - Geospatial Data Science and Geostatistical Modeling in Julia | 53 | 7118 | October 20, 2026 | |
| Computational geometry in Julia | 0 | 780 | September 14, 2018 |