wdm0006 / pygeohash

Python module for interacting with geohashes
https://pygeohash.mcginniscommawill.com/
MIT License
161 stars 25 forks source link

Geohash haversine distance calculation is wrong #11

Closed niel99 closed 1 month ago

niel99 commented 2 years ago
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 commented 2 years ago

This is not fixed

niel99 commented 2 years ago

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 commented 2 years ago

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

wdm0006 commented 1 month ago

try v2.0.3