BBBikeDownloader.get_names_of_cities
- classmethod BBBikeDownloader.get_names_of_cities(update=False, confirmation_required=True, verbose=False)[source]
Get the names of all the available cities.
This can be an alternative to the method
get_valid_subregion_names()
.- Parameters:
update (bool) – whether to (check on and) update the prepacked data, defaults to
False
confirmation_required (bool) – whether asking for confirmation to proceed, defaults to
True
verbose (bool | int) – whether to print relevant information in console, defaults to
False
- Returns:
list of names of cities available on BBBike free download server
- Return type:
list | None
Examples:
>>> from pydriosm.downloader import BBBikeDownloader >>> bbd = BBBikeDownloader() >>> # A list of BBBike cities' names >>> bbbike_cities = bbd.get_names_of_cities() >>> type(bbbike_cities) list