Author: Charles F. F. Karney (email@example.com)
The documentation for other versions is available at
http://geographiclib.sourceforge.net/m.nn/python/ for versions numbers
m.nn ≥ 1.46.
Licensed under the MIT/X11 License; see LICENSE.txt.
This is a python implementation of the geodesic routines in GeographicLib.
Although it is maintained in conjunction with the larger C++ library, this python package can be used independently.
pip install geographiclib
Alternatively downloaded the package directly from Python Package Index and install it with
tar xpfz geographiclib-1.47.tar.gz cd geographiclib-1.47 python setup.py install
It’s a good idea to run the unit tests to verify that the installation worked OK by running
python -m unittest geographiclib.test.test_geodesic
- Geodesics on an ellipsoid
- The library interface
- GeographicLib API
GeographicLib in various languages¶
- C++ (complete library): documentation, download
- C (geodesic routines): documentation, also included with recent versions of proj.4
- Fortran (geodesic routines): documentation
- Java (geodesic routines): Maven Central package, documentation
- Python (geodesic routines): PyPI package, documentation
- Matlab/Octave (geodesic and some other routines): Matlab Central package, documentation
- C# (.NET wrapper for complete C++ library): documentation
- Version 1.47 (released 2017-02-15)
- Fix the packaging, incorporating the patches in version 1.46.3.
- Improve accuracy of area calculation (fixing a flaw introduced in version 1.46)
- Version 1.46 (released 2016-02-15)
- Add Geodesic.DirectLine, Geodesic.ArcDirectLine, Geodesic.InverseLine, GeodesicLine.SetDistance, GeodesicLine.SetArc, GeodesicLine.s13, GeodesicLine.a13.
- More accurate inverse solution when longitude difference is close to 180°.
- Remove unnecessary functions, CheckPosition, CheckAzimuth, CheckDistance.