Constructor
new AirQuality(airData)
Create a AirQuality.
Parameters:
Name | Type | Description |
---|---|---|
airData |
AirQuality~Object |
Raw air data object. |
Properties:
Name | Type | Description |
---|---|---|
airData |
AirQuality~DataObject |
Air data object. |
raw |
AirQuality~Object |
Raw air data object. |
- Source:
Methods
getId() → {number}
Returns the station id.
- Source:
getData() → {AirQuality~DataObject}
Returns air quality data.
- Source:
getParam() → {AirQuality~DataObject}
Returns air quality data for param.
- Source:
Example
const airQuality = new AirQuality(airData);
const airQualityData = airQuality.getParam("PM10");
getRaw() → {AirQuality~Object}
Returns raw air quality data object.
- Source:
Type Definitions
Object :object
AirQuality raw data object
Properties:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
id |
number |
Station id. |
|||||||||
stCalcDate |
string | number |
ST calculation date |
|||||||||
stIndexLevel |
object |
ST index level Properties
|
|||||||||
stSourceDataDate |
string |
ST source data date |
|||||||||
so2CalcDate |
string | number |
SO2 calculation date |
|||||||||
so2IndexLevel |
object |
SO2 index level Properties
|
|||||||||
so2SourceDataDate |
string |
SO2 source data date |
|||||||||
no2CalcDate |
string | number |
NO2 calculation date |
|||||||||
no2IndexLevel |
object |
NO2 index level Properties
|
|||||||||
no2SourceDataDate |
string |
NO2 source data date |
|||||||||
coCalcDate |
string | number |
CO calculation date |
|||||||||
coIndexLevel |
object |
CO index level Properties
|
|||||||||
coSourceDataDate |
string |
CO source data date |
|||||||||
pm10CalcDate |
string | number |
PM10 calculation date |
|||||||||
pm10IndexLevel |
object |
PM10 index level Properties
|
|||||||||
pm10SourceDataDate |
string |
PM10 source data date |
|||||||||
pm25CalcDate |
string | number |
PM2.5 calculation date |
|||||||||
pm25IndexLevel |
object |
PM2.5 index level Properties
|
|||||||||
pm25SourceDataDate |
string |
PM2.5 source data date |
|||||||||
o3CalcDate |
string | number |
O3 calculation date |
|||||||||
o3IndexLevel |
object |
O3 index level Properties
|
|||||||||
o3SourceDataDate |
string |
O3 source data date |
|||||||||
c6h6CalcDate |
string | number |
C6H6 calculation date |
|||||||||
c6h6IndexLevel |
object |
C6H6 index level Properties
|
|||||||||
c6h6SourceDataDate |
string |
C6H6 source data date |
|||||||||
stIndexStatus |
boolean |
ST status |
|||||||||
stIndexCrParam |
string |
ST param |
- Source:
DataObject :object
AirQuality data object
Properties:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stationId |
numbert |
Station id |
|||||||||||||||
SO2 |
object |
SO2 measurement data Properties
|
|||||||||||||||
NO2 |
object |
NO2 measurement data Properties
|
|||||||||||||||
CO |
object |
CO measurement data Properties
|
|||||||||||||||
PM10 |
object |
PM10 measurement data Properties
|
|||||||||||||||
PM25 |
object |
PM25 measurement data Properties
|
|||||||||||||||
O3 |
object |
O3 measurement data Properties
|
|||||||||||||||
C6H6 |
object |
C6H6 measurement data Properties
|
- Source: