Safe Haskell | None |
---|---|
Language | Haskell2010 |
This very simple module returns a Maybe Location info for a set of coordinates.
Right now only one provider is given (OpenStreeMap), please feel free to add more.
We use this for a very coarse geographic categorization, so the following equivalences hold:
City : city <|> village <|> town <|> hamlet <|> county
Suburb: suburb <|> hamlet <|> postcode <|> town
Street: road <|> street
All contribuitions are welcomed!
Documentation
defaultReverseGeoProvider :: ReverseGeoProvider Source
Default reverse geo provider
getLocationInfo :: Latitude -> Longitude -> ReverseGeoProvider -> IO (Maybe ParsedLocationInfo) Source
Given a Latitude and Longitude, return a Location Info.
getLocationInfoDef :: Latitude -> Longitude -> IO (Maybe ParsedLocationInfo) Source
Get location info from default provider (right now Open Stree Map)