Comparison
geographiclib vs haversine vs pyproj
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 haversinePython interface to PROJ (cartographic projections and coordinate transformations library)
Actively maintained. Last release 3 months ago, commits in 15 of the last 26 weeks. A safe choice.
$
pip install pyprojIn short
- haversine is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- pyproj is the most used: 26.1M downloads a month, 2.2× more than geographiclib.
- pyproj also has the best Pythie’s Index (81).
- Safe default for a new project: pyproj.
Side by side
| Metric | geographiclib | haversine | pyproj |
|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 33 | 18 |