OpenAQ.
cities
(**kwargs)[source]¶Returns a listing of cities within the platform.
Parameters: |
|
---|---|
Returns: | dictionary containing the city, country, count, and number of locations |
Example: |
>>> import openaq
>>> api = openaq.OpenAQ()
>>> status, resp = api.cities()
>>> resp['results']
[
{
"city": "Amsterdam",
"country": "NL",
"count": 21301,
"locations": 14
},
{
"city": "Badhoevedorp",
"country": "NL",
"count": 2326,
"locations": 1
},
...
]