OpenAQ.
locations
(**kwargs)[source]¶Provides metadata about distinct measurement locations
Parameters: |
|
---|---|
Returns: | a dictionary containing the location, country, city, count, distance, sourceName, sourceNames, firstUpdated, lastUpdated, parameters, and coordinates |
Example: |
>>> import openaq
>>> api = openaq.OpenAQ()
>>> status, resp = api.locations()
>>> resp['results']
[
{
"count": 4242,
"sourceName": "Australia - New South Wales",
"firstUpdated": "2015-07-24T11:30:00.000Z",
"lastUpdated": "2015-07-24T11:30:00.000Z",
"parameters": [
"pm25",
"pm10",
"so2",
"co",
"no2",
"o3"
],
"country": "AU",
"city": "Central Coast",
"location": "wyong"
},
...
]