pyrosm.get_data#
- pyrosm.get_data(dataset, update=False, directory=None)#
Get the path to a PBF data file, and download the data if needed.
- Parameters:
dataset (str) – The name of the dataset. Run
pyrosm.data.availablefor all available options.update (bool) – Whether the PBF file should be downloaded/updated if the dataset with the same name exists in the temp.
directory (str (optional)) – Path to a directory where the PBF data will be downloaded. (does not apply for test data sets bundled with the package).