-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
It seemed like encode method only can get correct length geohash when length is even.
In [14]: geohash.encode((1,1),1)
Out[14]: ''In [15]: geohash.encode((1,1),2)
Out[15]: 's0'In [16]: geohash.encode((1,1),3)
Out[16]: 's0'In [17]: geohash.encode((1,1),4)
Out[17]: 's00t'
I guess the question is due to :
length /= 2
lon = _float_to_bits(lonlat[0], lower=-180.0, upper=180.0, length=length*5)
lat = _float_to_bits(lonlat[1], lower=-90.0, upper=90.0, length=length*5)
Metadata
Metadata
Assignees
Labels
No labels