Jump to content

Geohash: Difference between revisions

15 bytes removed ,  4 years ago
m
simplify syntax
m (simplify syntax)
Line 172:
function decoder(geo)
minmaxes, latlong = [[-90.0, 90.0], [-180.0, 180.0]], 2
for c in [ch for ch in geo], bit in ch2bool[c]
minmaxes[latlong][bit == '1' ? 1 : 2] = sum(minmaxes[latlong]) / 2
latlong = 3 - latlong
4,111

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.