BBBikeDownloader¶
-
class
pydriosm.downloader.
BBBikeDownloader
(download_dir=None)¶ Download OSM data from BBBike free download server.
- Parameters
download_dir – directory path to the downloaded file(s); if
None
(default), the current working directory- Variables
Name (str) – name of data
Abbr (str) – short name of the data
URL (str) – URL of the homepage to the free download server
URLCities (str) – URL of a list of cities available on the free download server
URLCitiesCoords (str) – URL of coordinates of all the available cities
ValidFileFormats (list) – valid file formats available on the free download server
Example:
>>> from pydriosm.downloader import BBBikeDownloader >>> bbbike_downloader = BBBikeDownloader() >>> print(bbbike_downloader.Name) BBBike OpenStreetMap data extracts >>> print(bbbike_downloader.URL) https://download.bbbike.org/osm/bbbike/
Methods
download_osm_data
(subregion_names, …[, …])Download OSM data (in a specific file format) of one (or multiple) geographic region(s).
download_subregion_data
(subregion_name[, …])Download OSM data of all available formats for a geographic region.
file_exists
(subregion_name, osm_file_format)Check if a requested data file of a geographic region already exists locally, given its default filename.
get_coordinates_of_cities
([update, …])Get location information of cities (geographic regions).
get_download_index
([update, …])Get a dict-type index of available formats, data types and a download catalogue.
get_list_of_cities
([update, …])Get a list of names of cities.
get_list_of_subregion_names
([update, …])Get a list of names of all geographic regions.
get_subregion_catalogue
([update, …])Get a catalogue for geographic regions.
get_subregion_download_catalogue
(subregion_name)Get a download catalogue of OSM data available for a geographic region.
get_subregion_download_url
(subregion_name, …)Get a valid URL for downloading OSM data of a specific file format for a geographic region.
get_valid_download_info
(subregion_name, …)Get information of downloading (or downloaded) data file.
Get a list of valid OSM data file formats.
validate_input_file_format
(osm_file_format)Validate an input file format of OSM data.
validate_input_subregion_name
(subregion_name)Validate an input name of a geographic region.