Get Deviating Weather
class GetDeviatingWeather( getWeatherUseCase: GetWeatherUseCase, deviationLimitTemp: Double, deviationLimitWind: Double, deviationLimitPrecipitation: Double, possibleDeviationPoints: List<LatLng>, val context: Context)
Content copied to clipboard
Class used to get the weather difference between a master location and a list of locations.
Constructors
Link copied to clipboard
fun GetDeviatingWeather( getWeatherUseCase: GetWeatherUseCase, deviationLimitTemp: Double, deviationLimitWind: Double, deviationLimitPrecipitation: Double, possibleDeviationPoints: List<LatLng>, context: Context)
Content copied to clipboard
getWeatherUseCase: Master location. deviationLimitTemp: How many degrees the temperature can deviate from the master location, before it is considered as deviating. deviationLimitWind: How many meters per second the wind speed can deviate from the master location, before it is considered as deviating. deviationLimitPrecipitation: How many millimeters per hour the precipitation can deviate from the master location, before it is considered as deviating. possibleDeviationPoints: The list of locations that should be checked for deviation.
Functions
Link copied to clipboard
suspend fun deviatingPoints(weatherDataPoint: WeatherDataPoint): MutableList<DeviatingPoint>
Content copied to clipboard
Get the weather difference between the master location and the list of locations.