com.snowplowanalytics.weather.providers.openweather
API key
HTTP client for send requests, receive responses
Get current weather data by city coordinates Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_weather#2-By-geographic-coordinate
Get current weather data by city coordinates Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_weather#2-By-geographic-coordinate
latitude
longitude
either error or current weather wrapped in Response
Get current weather data by city id Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_weather#3-By-city-ID
Get current weather data by city id Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_weather#3-By-city-ID
id of the city
either error or current weather wrapped in Response
Get 5 day/3 hour forecast data by city name Docs: http://openweathermap.org/forecast#5days
Get 5 day/3 hour forecast data by city name Docs: http://openweathermap.org/forecast#5days
name of the city
optional two-letter code
count of returned data
either error or forecast wrapped in Response
Transform JSON into parseable format and try to extract specified response
Transform JSON into parseable format and try to extract specified response
specific response case class from
com.snowplowanalytics.weather.providers.openweather.Responses
either of previous or JSON
either error string or response case class
Get forecast data for coordinates
Get forecast data for coordinates
latitude
longitude
either error or forecast wrapped in Response
Get forecast data by city id Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_forecast#Get-forecast-by-city-id
Get forecast data by city id Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_forecast#Get-forecast-by-city-id
id of the city
either error or forecast wrapped in Response
Get 5 day/3 hour forecast data by city name Docs: http://openweathermap.org/forecast#5days
Get 5 day/3 hour forecast data by city name Docs: http://openweathermap.org/forecast#5days
name of the city
optional two-letter code
count of returned data
either error or forecast wrapped in Response
Get historical data by city name Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_history#By-city-name
Get historical data by city name Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_history#By-city-name
lattitude
longitude
start (unix time, UTC)
end (unix time, UTC)
count of returned data
one of predefined Api.Measures
to constrain accuracy
either error or history wrapped in Response
Get historical data by city id Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_history#By-city-id
Get historical data by city id Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_history#By-city-id
id of the city
start (unix time, UTC)
end (unix time, UTC)
count of returned data
one of predefined Api.Measures
to constrain accuracy
either error or history wrapped in Response
Get historical data by city name Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_history#By-city-name
Get historical data by city name Docs: http://bugs.openweathermap.org/projects/api/wiki/Api_2_5_history#By-city-name
name of the city
optional two-letter code
start (unix time, UTC)
end (unix time, UTC)
count of returned data
one of predefined Api.Measures
to constrain accuracy
either error or history wrapped in Response
Main client logic for Request => Response function,
where Response is wrappeed in tparam Response
Main client logic for Request => Response function,
where Response is wrappeed in tparam Response
type of weather response to extract
extracted either error or weather
Asynchronous OpenWeatherMap client