OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
weather.weather_provider_if.WeatherProviderIf Class Reference

Fetch weather without exposing provider-specific transport details. More...

Public Member Functions

str provider_id (self)
 Return the stable provider identifier.
WeatherState refresh (self, WeatherLocation location)
 Fetch and return a fresh normalized weather state.

Detailed Description

Fetch weather without exposing provider-specific transport details.

Member Function Documentation

◆ provider_id()

str weather.weather_provider_if.WeatherProviderIf.provider_id ( self)

Return the stable provider identifier.



Returns
Stable provider identifier.

◆ refresh()

WeatherState weather.weather_provider_if.WeatherProviderIf.refresh ( self,
WeatherLocation location )

Fetch and return a fresh normalized weather state.



Parameters
locationLocation for which weather should be fetched.
Returns
Fresh provider-independent weather state.

The documentation for this class was generated from the following file:
  • controllers/weather/weather_provider_if.py