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
Falseconfirmation_required (bool) – whether asking for confirmation to proceed, defaults to
Trueverbose (bool | int) – whether to print relevant information in console, defaults to
Falseraise_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_names = bbd.get_bbbike_cities() >>> type(bbbike_cities_names) list