Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module implements the geohash encoding of geo-locations. https://en.wikipedia.org/wiki/Geohash. To try out geohash encoding on web visit http://geohash.org
Documentation
The encoding of geo-coordinates as a geohash string. Currently,
the encoding supports 24 base32 digits of geo hash value which
means we loose about 4-bits of accuracy w.r.t the representation of
angles in the library. However, this loss is rather theoretical as
the angular error that results from such loss is so insignificant
that for all practical purposes, this accuracy is good enough ---
GPS devices will have much greater errors. The quantity accuracy
gives the number of bits of precision supported by the geohash
implementation exposed here. As expected GeoHash implementations
here will have problems at regions close to the poles.
toByteString :: GeoHash -> ByteString Source #
Convert the geo hash to bytestring.