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

get_forecast(station_id, type \\ :rss)

Gets the most recent forecast for a given station id.

get_station(station_id)

Specs

get_station(String.t) ::
  {:ok, WeatherReport.Station.t} |
  {:error, :not_found}

Searches for a station by id.

get_stations(state)

Specs

get_stations(String.t) :: [WeatherReport.Station.t]

Searches for stations by state.

nearest_station(lat, long)

Specs

nearest_station(float, float) :: WeatherReport.Station.t

Gets the nearest station to a coordinate pair.

station_list()

Specs

station_list :: [WeatherReport.Station.t]

Retrieves a list of all available observation stations.