View Source NOAA.Observations (NOAA Observations v0.4.57)

Fetches weather observations for a US state/territory code.

Summary

Functions

Fetches weather observations for a US state/territory code.

Functions

Fetches weather observations for a US state/territory code.

Returns either tuple {:ok, [observation]} or tuple {:error, text}.

Examples

iex> alias NOAA.Observations
iex> {:ok, observations} = Observations.fetch("vt")
iex> Enum.all?(observations, &is_map/1) and length(observations) > 0
true