weather_report v0.1.0 WeatherReport
Retrieve weather reports from NOAA!
Summary
Functions
Gets the most recent forecast for a given station id
Searches for a station by id
Searches for stations by state
Gets the nearest station to a coordinate pair
Retrieves a list of all available observation stations
Types
forecast_format :: :rss | :xml
Functions
Specs
get_forecast(String.t, forecast_format) :: WeatherReport.Forecast.t
Gets the most recent forecast for a given station id.
Specs
get_station(String.t) ::
{:ok, WeatherReport.Station.t} |
{:error, :not_found}
Searches for a station by id.
Specs
get_stations(String.t) :: [WeatherReport.Station.t]
Searches for stations by state.
Specs
nearest_station(float, float) :: WeatherReport.Station.t
Gets the nearest station to a coordinate pair.
Specs
station_list :: [WeatherReport.Station.t]
Retrieves a list of all available observation stations.