Compute geodesics on an ellipsoid, in Julia
Author anowacki
7 Stars
Updated Last
1 Year Ago
Started In
July 2019


Julia port of Charles F. F. Karney's GeographicLib.

Build Status Build status Coverage Status



GeographicLib allows you to accurately compute properties of geodesics on a flattened sphere (e.g., Earth).


For full details of using the package, see the latest documentation.


To perform some of its tests, the package relies on the Python port of GeographicLib. Hence if you do pkg> test, PyCall will attempt to import geographiclib and install it if possible.

You may also run julia script/test_GeodTest.jl which compares the output of this package and the routines in libproj to a set of test results computed with high precision. For this purpose, you need to have Proj installed and will need to edit the script to point to the location of the libproj library.

Neither of these tests are necessary to use GeographicLib.jl normally.


  • C. F. F. Karney, Transverse Mercator with an accuracy of a few nanometers, J. Geodesy 85(8), 475–485 (Aug. 2011). doi:10.1007/s00190-011-0445-3
  • C. F. F. Karney, Algorithms for geodesics, J. Geodesy 87(1), 43–55 (Jan. 2013). doi:10.1007/s00190-012-0578-z