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

Geohash haversine distance calculation is wrong #11

Open
niel99 opened this issue Aug 10, 2022 · 3 comments
Open

Geohash haversine distance calculation is wrong #11

niel99 opened this issue Aug 10, 2022 · 3 comments

Comments

@niel99
Copy link

niel99 commented Aug 10, 2022

from pygeohash.distances import geohash_haversine_distance
from pygeohash import decode_exactly
a, b = 'te7uwgh', 'te7uwgk'
geohash_haversine_distance(a, b)

This is returning 0 as output whereas the actual distance between the two hashes is approximately 152 metres

@niel99 niel99 closed this as completed Aug 10, 2022
@niel99 niel99 reopened this Aug 10, 2022
@niel99
Copy link
Author

niel99 commented Aug 10, 2022

This is not fixed

@niel99
Copy link
Author

niel99 commented Aug 10, 2022

I think the issue was solved in this merge https://github.com/wdm0006/pygeohash/pull/5 but no new release was made in pypi as it is still showing April 2016 (https://pypi.org/project/pygeohash/) as last update. @wdm0006 Please update the package in pypi

@wdm0006
Copy link
Owner

wdm0006 commented Dec 28, 2022

have a few open PRs that I'll try to do a release after merging.

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

2 participants