BBBikeDownloader.get_list_of_subregion_names¶
-
BBBikeDownloader.
get_list_of_subregion_names
(update=False, confirmation_required=True, verbose=False)[source]¶ Get a list of names of all geographic regions.
- 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
a list of geographic region names available on BBBike’s free download server
- Return type
list
Example:
>>> from pydriosm.downloader import BBBikeDownloader >>> bbbike_downloader = BBBikeDownloader() >>> sr_name_list = bbbike_downloader.get_list_of_subregion_names() >>> print(sr_name_list[:5]) ['Aachen', 'Aarhus', 'Adelaide', 'Albuquerque', 'Alexandria']