OpenAQ.
latest
(**kwargs)[source]¶Provides the latest value of each parameter for each location
Parameters: |
|
---|---|
Returns: | dictionary containing the location, country, city, and number of measurements |
Example: |
>>> import openaq
>>> api = openaq.OpenAQ()
>>> status, resp = api.latest()
>>> resp['results']
[
{
"location": "Punjabi Bagh",
"city": "Delhi",
"country": "IN",
"measurements": [
{
"parameter": "so2",
"value": 7.8,
"unit": "ug/m3",
"lastUpdated": "2015-07-24T11:30:00.000Z"
},
{
"parameter": "co",
"value": 1.3,
"unit": "mg/m3",
"lastUpdated": "2015-07-24T11:30:00.000Z"
},
...
]
...
}
]