bluefeet / Geo-Distance

Calculate distances and closest locations. (DEPRECATED)
https://metacpan.org/pod/Geo::Distance
Other
6 stars 5 forks source link

New distance formula #6

Closed gray closed 12 years ago

gray commented 12 years ago

This paper describes a new formula that purportedly resolves issues with the Vincenty formula, as well as being faster: http://arxiv.org/abs/1102.1215

The paper only contains the math, but the accompanying software [1] has C++, Python and JavaScript implementations, so shouldn't be hard to port.

I'd like to eventually implement this in Geo::Distance::XS, but as it's not standalone and is dependent on Geo::Distance for the interface, the latter would have to also support it, or at least not reject unknown formulae.

[1] http://geographiclib.sourceforge.net/

gray commented 12 years ago

Ignore this, I realized I'm already overriding the formula sub to some extent, so I can just implement additional formulas myself without any required change on your end (though you can still backport to pure perl if you want).