transitio.MobilityDatabase.download_latest

transitio.MobilityDatabase.download_latest#

MobilityDatabase.download_latest(feed, directory=None)#

Download the latest hosted dataset zip of a feed.

Works without an API token: the URL comes from the catalogue entry. The latest dataset is a moving target, so the file is re-downloaded on every call; no upstream checksum is available, and the provenance sidecar records the computed SHA-256 only. With a token, dataset_for() plus download() give checksum-verified, version-pinned downloads instead.

Parameters:
  • feed (Feed)

  • directory (str or pathlib.Path, optional) – Target directory; defaults to the transitio cache.

Returns:

Path of the downloaded zip.

Return type:

pathlib.Path