iduedu.use_pbf

iduedu.use_pbf(path=None, *, osm_id=None, territory=None, region=None, **download_kwargs)[source]

Temporarily read OSM data from a local file, or from a territory downloaded from Geofabrik.

Shortcut for config.use_pbf on the global config; the arguments are the same.

Example

>>> with use_pbf(osm_id=1114252, region="northwestern-fed-district"):
...     graph = get_intermodal_graph(osm_id=1114252)
>>> with use_pbf("berlin.osm.pbf"):
...     walk = get_walk_graph(territory=polygon)
Parameters: