wdm0006 / pygeohash

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

Update distances.py #5

Closed yangguomq closed 5 years ago

yangguomq commented 5 years ago

Dear Author,

The function geohash_haversine_distance() is wrong. Beacuase it use the decode() function to get the lat and lon information. The decode() has a float() operation when generate lat and lon. Here, the decode_exactly() should be used. Please update it.

Yang

wdm0006 commented 5 years ago

lgtm thanks