Skip to content

Is there any way to get the full list of city names? #2

@danoscarmike

Description

@danoscarmike

How can we get a comprehensive list of available 'cities' (stations)?

The argument passed to get_city_feed must be the fully qualified path. e.g. to the get the details for the monitoring station at Arkansas St, San Francisco, CA the call would be something like:

client = core.WaqiClient()
station = client.get_city_feed('california/san-francisco/san-francisco-arkansas-street/')

The full list of cities (with hyperlinks) can be found on the WAQI website.

Possible other option:

client.search_stations('california')

will return a list of station metadata objects (though this seems to be capped at 20 hits).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions