Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate conditions for preferring geodesics over haversine #329

Open
ianthetechie opened this issue Oct 31, 2024 · 0 comments
Open

Evaluate conditions for preferring geodesics over haversine #329

ianthetechie opened this issue Oct 31, 2024 · 0 comments
Labels
core Related to the Rust core good first issue Good for newcomers

Comments

@ianthetechie
Copy link
Contributor

Currently most of the distance calculations in Ferrostar are done with the haversine formula. This makes some simplifying assumptions, but it is widely used for its speed. We should probably keep doing this.

However, for cases where there could be a larger accumulation of errors, perhaps we should be using geodesics. An example of this is where one or more calculations add up to a trans-continental distance (as they might when computing the length of route sections).

We never really evaluated acceptable uses for each, and currently use a mix of both (partially due to bugs we found, such as panics on direct intersections in geo rust). We should research + standardize on this going forward.

@ianthetechie ianthetechie added good first issue Good for newcomers core Related to the Rust core labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the Rust core good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant