Open thehesiod opened 7 years ago
Hi @thehesiod . FYI, there are a few doctests that handle some basic edge cases here: https://github.com/maurycyp/vincenty/blob/master/vincenty/__init__.py#L19 .
The algorithm comes from Wikipedia (linked in the README) so there's nothing unusual in my approach.
I'll play with your code and if will add it if everything checks out, thanks!
btw here are some testcases: http://geographiclib.sourceforge.net/2009-03/geodesic.html
I've been searching for the fastest geodesic library for python and it seems yours is by far the fastest. This makes me both worried that some edge case is missing and at the same time very impressed :)
If the algorithm is indeed correct I suggest adding unittests and benchmark results to the front page in github.
Here is my benchmark code and results:
results
as you can see they have similar results, with vincenty reduced by a few decimal digits, however vincenty is 30% faster than geopy and ~10x faster than geographiclib. Btw let me know if you know how to test against the gdist library, would be good to add.