BBBikeDownloader.get_bbbike_cities

classmethod BBBikeDownloader.get_bbbike_cities(update=False, confirmation_required=True, verbose=False, raise_error=False)[source]

Get the names of all the available cities.

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

  • raise_error (bool) – Whether to raise the provided exception; if raise_error=False (default), the error will be suppressed.

Returns:

list of names of cities available on BBBike free download server

Return type:

list | None

Examples:

>>> from pydriosm.downloader import BBBikeDownloader
>>> bbd = BBBikeDownloader()
>>> bbbike_cities = bbd.get_bbbike_cities()
>>> bbbike_cities[:5]
['Aachen', 'Aarhus', 'Adelaide', 'Albuquerque', 'Alexandria']