View Source Weather.API (Weather v0.3.4)
Fetches weather data from the OpenWeatherMap API.
Summary
Functions
Fetches location data (latitude, longitude, name, country) given a zip code.
Fetches weather data from the OpenWeatherMap API.
Functions
@spec fetch_location(%{zip: String.t()}, String.t()) :: {:ok, Req.Response.t()} | {:error, Exception.t()}
Fetches location data (latitude, longitude, name, country) given a zip code.
@spec fetch_weather(Weather.Opts.t()) :: {:ok, Req.Response.t()} | {:error, Exception.t()}
Fetches weather data from the OpenWeatherMap API.