GeofabrikDownloader.get_list_of_subregion_names

GeofabrikDownloader.get_list_of_subregion_names(update=False, confirmation_required=True, verbose=False)[source]

Get a list of names of all available 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

names of geographic regions available on the free download server

Return type

list

Example:

>>> from pydriosm.downloader import GeofabrikDownloader

>>> geofabrik_downloader = GeofabrikDownloader()

>>> sr_name_list = geofabrik_downloader.get_list_of_subregion_names()

>>> print(sr_name_list[:5])
['Algeria', 'Angola', 'Benin', 'Botswana', 'Burkina Faso']