NowcastRepository

class NowcastRepository(endpoint: String) : WeatherRepository

Implementation of Weather using Nowcast API. Provides caching. Source of truth: Nowcast API or local cache if same pos as last time.

Constructors

Link copied to clipboard
fun NowcastRepository(endpoint: String)

Functions

Link copied to clipboard
open suspend override fun getGustSpeed(    lat: Double,     lon: Double,     timeDelta: Int): Double?
Link copied to clipboard
open suspend override fun getPrecipitation(    lat: Double,     lon: Double,     timeDelta: Int): Double?
Link copied to clipboard
open suspend override fun getPrecipitationRate(    lat: Double,     lon: Double,     timeDelta: Int): Double?
Link copied to clipboard
open suspend override fun getRelativeHumidity(    lat: Double,     lon: Double,     timeDelta: Int): Double?
Link copied to clipboard
open suspend override fun getTemp(    lat: Double,     lon: Double,     timeDelta: Int): Double?
Link copied to clipboard
open suspend override fun getWeatherIcon(    lat: Double,     lon: Double,     timeDelta: Int): String?
Link copied to clipboard
open suspend override fun getWindDirection(    lat: Double,     lon: Double,     timeDelta: Int): Double?
Link copied to clipboard
open suspend override fun getWindSpeed(    lat: Double,     lon: Double,     timeDelta: Int): Double?
Link copied to clipboard
open suspend override fun radarCoverage(lat: Double, lon: Double): Boolean

Properties

Link copied to clipboard
var source: Pair<NowcastCompleteDataClass, LatLng>? = null