AirQuality class

Pollutants and pollen forecast in 11 km resolution.

https://open-meteo.com/en/docs/air-quality-api/

Constructors

AirQuality.new({String apiUrl = 'https://air-quality-api.open-meteo.com/v1/', required double latitude, required double longitude, AirQualityDomains? domains, int? past_days, int? forecast_days, int? forecast_hours, int? past_hours, DateTime? start_date, DateTime? end_date, DateTime? start_hour, DateTime? end_hour, CellSelection? cell_selection, String? apikey})

Properties

apikey String?
Only required to commercial use to access reserved API resources for customers.
getter/setter pair
apiUrl String
Custom API URL, format: https://<domain>/<version>/
getter/setter pair
cell_selection CellSelection?
Set a preference how grid-cells are selected.
getter/setter pair
domains AirQualityDomains?
Automatically combine both domains or specifically select the European AirQualityDomains.cams_europe or global domain AirQualityDomains.cams_global.
getter/setter pair
end_date DateTime?
The time interval to get weather data.
getter/setter pair
end_hour DateTime?
The time interval to get weather data for hourly data.
getter/setter pair
forecast_days int?
Per default, 5 days are returned. Up to 7 days of forecast are possible.
getter/setter pair
forecast_hours int?
Similar to forecast_days, the number of timesteps of hourly data can controlled. Instead of using the current day as a reference, the current hour is used.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
latitude double
Geographical WGS84 coordinates of the location.
final
longitude double
Geographical WGS84 coordinates of the location.
final
past_days int?
If set, yesterday or the day before yesterday data are also returned.
getter/setter pair
past_hours int?
Similar to forecast_days, the number of timesteps of hourly data can controlled. Instead of using the current day as a reference, the current hour is used.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start_date DateTime?
The time interval to get weather data.
getter/setter pair
start_hour DateTime?
The time interval to get weather data for hourly data.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
raw_request({List<Hourly>? hourly, List<Current>? current}) Future<Map<String, dynamic>>
Create a HTTP request. The function will return JSON data as Map if successful.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited