wunderground v0.0.9 Wunderground.Geolookup

Handles API requests for handling Geolookup of a given location.

Link to this section Summary

Types

t()

The Wunderground.Geolookup struct

Functions

Does a Geolookup for the given query tuple

Link to this section Types

Link to this type t()
t() :: %Wunderground.Geolookup{city: String.t, country: String.t, country_iso3166: String.t, country_name: String.t, l: String.t, lat: String.t, lon: String.t, magic: String.t, nearby_weather_stations: Wunderground.Geolookup.NearbyWeatherStations.t, requesturl: String.t, state: String.t, type: String.t, tz_long: String.t, tz_short: String.t, wmo: String.t, wuiurl: String.t, zip: String.t}

The Wunderground.Geolookup struct.

Example

%Wunderground.Geolookup{
  city: "Tokyo (Haneda) International",
  country: "JP",
  country_iso3166: "JP",
  country_name: "Japan",
  l: "/q/zmw:00000.58.47671",
  lat: "35.55305481",
  lon: "139.78111267",
  magic: "58",
  nearby_weather_stations: %Wunderground.Geolookup.NearbyWeatherStations{
    airport: %Wunderground.Geolookup.StationWrapper{station: []},
    pws: %Wunderground.Geolookup.StationWrapper{station: []}
  },
  requesturl: "global/stations/47671.html",
  state: "13",
  type: "INTLCITY",
  tz_long: "Asia/Tokyo",
  tz_short: "JST",
  wmo: "47671",
  wuiurl: "https://www.wunderground.com/global/stations/47671.html",
  zip: "00000"
}

Link to this section Functions

Link to this function get(query_args)
get(Wunderground.Query.t) ::
  {:ok, Wunderground.Geolookup.t} |
  {:error, Wunderground.API.error}

Does a Geolookup for the given query tuple.

Isn’t really intended to be used directly. Use Wunderground.astronomy/1 instead.