NILURepository

class NILURepository(val endpoint: String, radius: Int) : AirQualityRepository

Air Quality implementation from NILU API, shows last recorded value. Do not use timeDelta as NILU only provides data for right now.

Constructors

Link copied to clipboard
fun NILURepository(endpoint: String, radius: Int)

radius: Radius of stations to weight

Functions

Link copied to clipboard
open suspend override fun getAQI(    lat: Double,     lon: Double,     timeDelta: Int): Double
Link copied to clipboard
open suspend override fun getNO2(    lat: Double,     lon: Double,     timeDelta: Int): Double
Link copied to clipboard
open suspend override fun getPM10(    lat: Double,     lon: Double,     timeDelta: Int): Double
Link copied to clipboard
open suspend override fun getPM25(    lat: Double,     lon: Double,     timeDelta: Int): Double

Properties

Link copied to clipboard
val endpoint: String

NILU API endpoint for aq api mode