iduedu.geofabrik_regions

iduedu.geofabrik_regions(*, refresh=False, out_dir=None)[source]

Geofabrik extracts as a GeoDataFrame in EPSG:4326.

The index (index-v1.json) is cached for INDEX_MAX_AGE_DAYS days.

Parameters:
  • refresh (bool) – Download the index even if a fresh cached copy exists.

  • out_dir (str | PathLike | None) – Cache directory; defaults to <config.overpass_cache_dir>/geofabrik.

Return type:

GeoDataFrame

Returns:

GeoDataFrame indexed by region id (e.g. "northwestern-fed-district") with columns name, parent and pbf_url and the region outline as geometry.