openweathermap-0.1.0: Access data at OpenWeatherMap

Safe HaskellNone
LanguageHaskell2010

Web.OpenWeatherMap.API

Description

Direct API functions. For API key (a.k.a appid) refer to http://openweathermap.org/appid.

Synopsis

Documentation

weatherByName Source #

Arguments

:: Maybe String

City name, e. g. "Moscow" or "Moscow,ru".

-> Maybe String

API key.

-> ClientM CurrentWeather 

Request current weather in the city.

weatherByCoord Source #

Arguments

:: Maybe Double

Latitude, e. g. 55.7522200 for Moscow.

-> Maybe Double

Longitude, e. g. 37.6155600 for Moscow.

-> Maybe String

API key.

-> ClientM CurrentWeather 

Request current weather at the geographic coordinates (in decimal degrees).