AQFRepository

class AQFRepository(val endpoint: String) : AirQualityRepository

Implementation of AirQuality Repository using AQF from met.no. Only returns closest station to given location.

Parameters

endpoint

The endpoint to use for the AQF API.

Constructors

Link copied to clipboard
fun AQFRepository(endpoint: String)

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