Comparison
geographiclib vs haversine
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
The geodesic routines from GeographicLib
Low maintenance activity. Last release 15 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
$
pip install geographiclibCalculate the distance between 2 points on Earth.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install haversineIn short
- haversine is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- geographiclib is the most used: 12M downloads a month, 4.3× more than haversine.
- geographiclib also has the best Pythie’s Index (33).
Side by side
| Metric | geographiclib | haversine |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 33 | 18 |