WeatherRepository

abstract class WeatherRepository

Data repository for access of weather data for a single position. Both current and future data.

Constructors

Link copied to clipboard
fun WeatherRepository()

Functions

Link copied to clipboard
abstract suspend fun getGustSpeed(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double?
Link copied to clipboard
abstract suspend fun getPrecipitation(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double?
Link copied to clipboard
abstract suspend fun getPrecipitationRate(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double?
Link copied to clipboard
abstract suspend fun getRelativeHumidity(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double?
Link copied to clipboard
abstract suspend fun getTemp(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double?
Link copied to clipboard
abstract suspend fun getWeatherIcon(    lat: Double,     lon: Double,     timeDelta: Int): String?

Get a weather icon for the specified location

Link copied to clipboard
abstract suspend fun getWindDirection(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double?
Link copied to clipboard
abstract suspend fun getWindSpeed(    lat: Double,     lon: Double,     timeDelta: Int = 0): Double?
Link copied to clipboard
abstract suspend fun radarCoverage(lat: Double, lon: Double): Boolean

Inheritors

Link copied to clipboard
Link copied to clipboard