Fast, Dependency-Free Geodesic Distance Calculations

Dependency-free, ultra fast calculation of geodesic distances. Includes the reference nanometre-accuracy geodesic distances of Karney (2013) , as used by the 'sf' package, as well as Haversine and Vincenty distances. Default distance measure is the "Mapbox cheap ruler" which is generally more accurate than Haversine or Vincenty for distances out to a few hundred kilometres, and is considerably faster. The main function accepts one or two inputs in almost any generic rectangular form, and returns either matrices of pairwise distances, or vectors of sequential distances.



Minor changes: - bug fix in sequential calculation with cheap distances; thanks to @mem48


Major changes: - Add georange function to calculate extreme ranges only; thanks to @marcosci - Add 'paired' option to 'geodist()' function to calcualte pair-wise distances between 'x' and 'y' matrices

Minor changes: - Improve handling of column names


Initial CRAN release.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.0.3 by Mark Padgham, 2 months ago

Report a bug at

Browse source code at

Authors: Mark Padgham [aut, cre] , Michael D. Sumner [aut] , Charles F.F Karney [cph] (Original author of included code for geodesic distances)

Documentation:   PDF Manual  

MIT + file LICENSE license

Suggests knitr, testthat

Imported by trip.

Suggested by dodgr, gtfsrouter.

See at CRAN