databrary-1: Databrary

Safe HaskellNone
LanguageHaskell2010

Model.GeoNames

Synopsis

Documentation

data GeoName Source #

values retrieved from geonames service. large db of place names including countries

Constructors

GeoName 

Fields

Instances

geoNameUS :: GeoName Source #

hardcoded value for US geoname place

parseGeoNameRef :: String -> Maybe (Id GeoName) Source #

Extract geoname identifier from a geoname place url

lookupGeoName :: Id GeoName -> HTTPClient -> IO (Maybe GeoName) Source #

Perform a geoname Id based place lookup to get the corresponding place name, parsing the response into a GeoName value

parseGeoName :: Value -> Parser GeoName Source #

Parse the json response from a geoname id based place lookup into a GeoName value