3

I want to use GeoTools library to calculate geographic distance by using GeodeticCalculator (as mentioned in here http://docs.geotools.org/stable/userguide/library/referencing/calculator.html ).

Does this library use Vincenty formula, Haversine, or something else?

  • JTS is the underlying library for non-geographic geometries, if you asked about that it would be "neither, it's euclidean". I have removed JTS from your question is it was misleading to include. – bugmenot123 May 10 at 11:15
6

GeoTools uses Karney's GeographicLib, if you check the code you'll see it uses the Geodesic.Direct method.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.