reverse-geocoding-0.3.0.0: Simple reverse geocoding using OpenStreeMap

Safe HaskellNone
LanguageHaskell2010

Data.Geolocation.Reverse

Description

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!

Synopsis

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)