BBBikeDownloader.get_list_of_cities¶
-
BBBikeDownloader.
get_list_of_cities
(update=False, confirmation_required=True, verbose=False)[source]¶ Get a list of names of cities.
- Parameters
update (bool) – whether to check on update and proceed to update the package data, defaults to
False
confirmation_required (bool) – whether to prompt a message for confirmation to proceed, defaults to
True
verbose (bool or int) – whether to print relevant information in console, defaults to
False
- Returns
catalogue for subregions of BBBike data
- Return type
pandas.DataFrame or None
Example:
>>> from pydriosm.downloader import BBBikeDownloader >>> bbbike_downloader = BBBikeDownloader() >>> names_of_cities = bbbike_downloader.get_list_of_cities() >>> print(names_of_cities[:5]) ['Heilbronn', 'Emden', 'Bremerhaven', 'Paris', 'Ostrava']