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

Implement Haversine algorithm #90

Merged
merged 4 commits into from
Feb 18, 2017
Merged

Implement Haversine algorithm #90

merged 4 commits into from
Feb 18, 2017

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Feb 16, 2017

This PR rebased the Haversine code from #62 and cleaned up the implementation and tests

Closes #62

/cc @frewsxcv @tmcw

@Turbo87
Copy link
Member Author

Turbo87 commented Feb 16, 2017

one thing I'm wondering is if we should use an Angle trait like http://tomaka.github.io/glium/cgmath/trait.Angle.html to reduce the unnecessary degrees-to-radians conversion if you calculate a lot of distances or other things

@frewsxcv
Copy link
Member

Awesome, thanks for rebase @Turbo87!

@frewsxcv frewsxcv merged commit ebdce0d into georust:master Feb 18, 2017
@frewsxcv
Copy link
Member

Regarding adding Angle, I'm not too familiar with it, but if it reduces and simplifies some of the algebraic logic in the library, I'm open to including it.

@Turbo87 Turbo87 deleted the haversine branch February 19, 2017 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants