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

same coordinates return NaN instead of expected 0 #1

Open
murtali opened this issue Apr 27, 2020 · 0 comments
Open

same coordinates return NaN instead of expected 0 #1

murtali opened this issue Apr 27, 2020 · 0 comments

Comments

@murtali
Copy link

murtali commented Apr 27, 2020

hi -- first wanted to thank you on the great gem --

not sure if this is intended behavior but had a NaN parse error come up when pushing data out as JSON -- found out the error is coming from the following situation:

distance = Geokdtree::Tree.geo_distance([37.993892, -122.136441], [37.993892, -122.136441])

when the coordinates are the same, distance returns NaN instead of what I'd expect to be 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant