Comparison
haversine vs mgrs vs pygeodesy vs pymap3d
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Calculate 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 haversineMGRS coordinate conversion for Python
Actively maintained. Last release 12 days ago, commits in 6 of the last 26 weeks. A safe choice.
pip install mgrsPure Python geodesy tools
Actively maintained. Last release 3 weeks ago, commits in 15 of the last 26 weeks. A safe choice.
pip install pygeodesypure Python (no prereqs) coordinate conversions, following convention of several popular Matlab routines.
Low maintenance activity. Last release 17 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install pymap3dIn short
- haversine is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- mgrs is the most used: 828.2K downloads a month.
- pygeodesy is better maintained: Pythie’s Index 82 against 72.
- pygeodesy is growing fastest: downloads +56% over the last month.
- Safe default for a new project: mgrs, or pygeodesy if active maintenance matters most.