GeofabrikDownloader.get_list_of_subregion_names¶
-
GeofabrikDownloader.
get_list_of_subregion_names
(update=False, confirmation_required=True, verbose=False)¶ Get a list of names of all available geographic regions.
- 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
names of geographic regions available on the free download server
- Return type
list
Example:
>>> from pydriosm.downloader import GeofabrikDownloader >>> geofabrik_downloader = GeofabrikDownloader() >>> # A list of the names of available geographic regions >>> geo_region_name_list = geofabrik_downloader.get_list_of_subregion_names() >>> geo_region_name_list[:5] ['Algeria', 'Angola', 'Benin', 'Botswana', 'Burkina Faso']