BBBikeDownloader.get_list_of_subregion_names¶
-
BBBikeDownloader.
get_list_of_subregion_names
(update=False, confirmation_required=True, verbose=False)¶ Get a list of names of all geographic regions.
This is an alternative to
.get_list_of_cities()
.- Parameters
update (bool) – whether to (check on and) update the package data, defaults to
False
confirmation_required (bool) – whether asking for confirmation to proceed, defaults to
True
verbose (bool or int) – whether to print relevant information in console, defaults to
False
- Returns
a list of geographic region names available on BBBike free download server
- Return type
list
Example:
>>> from pydriosm.downloader import BBBikeDownloader >>> bbbike_downloader = BBBikeDownloader() >>> # A list of names of all BBBike geographic regions >>> region_name_list = bbbike_downloader.get_list_of_subregion_names() >>> len(region_name_list) > 200 True >>> region_name_list[:5] ['Aachen', 'Aarhus', 'Adelaide', 'Albuquerque', 'Alexandria'] >>> region_name_list[-5:] ['Wroclaw', 'Wuerzburg', 'Wuppertal', 'Zagreb', 'Zuerich']