transitio.MobilityDatabase#
- class transitio.MobilityDatabase(refresh_token=None, *, cache_dir=None, timeout=30.0, transport=None)#
Synchronous client for the Mobility Database catalog API.
- Parameters:
refresh_token (str, optional) – Mobility Database refresh token. Falls back to the
MOBILITY_API_REFRESH_TOKENenvironment variable.cache_dir (str or pathlib.Path, optional) – Directory for downloaded datasets. Defaults to the platform user cache directory for transitio.
timeout (float, default 30.0) – Per-request timeout in seconds.
transport (httpx.BaseTransport, optional) – Custom transport, mainly for testing.