OpenAQ.
measurements
(**kwargs)[source]¶Provides data about individual measurements
Parameters: |
|
---|---|
Returns: | a dictionary containing the date, parameter, value, unit, location, country, city, coordinates, and sourceName. |
Example: |
>>> import openaq
>>> api = openaq.OpenAQ()
>>> status, resp = api.measurements(city = 'Delhi')
>>> resp['results']
{
"parameter": "Ammonia",
"date": {
"utc": "2015-07-16T20:30:00.000Z",
'local': "2015-07-16T18:30:00.000-02:00"
},
"value": "72.9",
"unit": "ug/m3",
"location": "Anand Vihar",
"country": "IN",
"city": "Delhi",
"coordinates": {
"latitude": 43.34,
"longitude": 23.04
},
"attribution": {
"name": "SINCA",
"url": "http://sinca.mma.gob.cl/"
},
{
"name": "Ministerio del Medio Ambiente"
}
...
}