Geohash: Difference between revisions

No change in size ,  4 years ago
m
(add decoder)
Line 172:
function decoder(geo)
minmaxes, latlong = [[-90.0, 90.0], [-180.0, 180.0]], 2
for sc in [ch for ch in geo], bit in ch2bool[sc]
minmaxes[latlong][bit == '1' ? 1 : 2] = sum(minmaxes[latlong]) / 2
latlong = 3 - latlong
4,108

edits