geohash-1.0: Geohash latitudes and longitudes.

PortabilityGHC
Stabilityexperimental
Maintainermarius@monkey.org

Data.Geohash

Description

Compute geohashes as per http:en.wikipedia.orgwikiGeohash Note that the implementation pays little regard to performance at this point.

TODO: return precision/error values in decode?

Documentation

encodeSource

Arguments

:: (Fractional a, Ord a) 
=> Int

precision

-> (a, a)

(lat, lon) pair

-> Maybe String

geohash

decodeSource

Arguments

:: Fractional a 
=> String

geohash

-> Maybe (a, a)
(lat, lon)

decode_Source

Arguments

:: Fractional a 
=> String

geohash

-> Maybe ((a, a), (a, a))
((latmin, latmax), (lonmin, lonmax))