transitio.MobilityDatabase.download#
- MobilityDatabase.download(dataset, directory=None)#
Download a dataset zip with checksum verification and caching.
A cached copy whose SHA-256 matches the catalogued hash is reused without a network request. A
<dataset id>.provenance.jsonsidecar records feed and dataset IDs, source URL, checksum and retrieval timestamp for reproducibility.- Parameters:
dataset (Dataset)
directory (str or pathlib.Path, optional) – Target directory; defaults to the transitio cache.
- Returns:
Path of the downloaded zip.
- Return type:
pathlib.Path