pycensus.census.countries.germany.verbindungen.loader¶
Loader for the VerBindungen project's static working-population (commuter) 1km grid.
Technical aspects
Real, keyless, live-downloadable source (verified live 2026-08-25):
https://mobilithek.info//mdp-api/files/aux/767412562791673856/Statische-Arbeitsbevoelkerung-1x1km-Raster.csv,
linked from the govdata.de (Germany's national open-data catalog) listing
"VerBindungen: Statische Arbeitsbevoelkerung nach 1x1km Gridzellen"
(https://www.govdata.de/suche/daten/projekt-verbindungen-statische-arbeitsbevolkerung-nach-1x1km-gridzellen).
VerBindungen is a real research project commissioned by the Bundesministerium
fuer Digitales und Verkehr (BMDV, Federal Ministry for Digital and Transport)
and run by a consortium led by the Statistisches Bundesamt (Destatis), covering
the period 2019-01-01 to 2020-01-01.
The real downloaded CSV (verified live 2026-08-25, HTTP 200, 544,475 bytes) has
exactly TWO columns and 27,828 real data rows:
ao_1km (grid cell ID, e.g. "1kmN2698E4341") and gesamtpendler
("total commuters" -- integer count). This is a much simpler shape than the
task's original hypothesis of an origin-destination flow matrix: despite the
project's name ("VerBindungen" = "connections"), THIS specific published
resource is a plain per-grid-cell static count of workers whose reported
workplace falls in that cell -- i.e. a "jobs" / workplace-population layer,
analogous in spirit to USA LODES WAC (see
:mod:pycensus.census.countries.usa.lodes), not an O-D commute-flow table. No
origin/residence-cell column is present in this file.
Verified live 2026-08-25: summing all 27,828 real gesamtpendler values
gives 12,589,993. This is the right order of magnitude for a national
German commuter/workplace count (Destatis's real 2019 commuter-statistics
press releases report roughly 19-20 million cross-municipality commuters
nationally; this project's figure is lower but plausible as a DIFFERENT,
narrower definition -- VerBindungen's own methodology, not verified in
detail here beyond this order-of-magnitude plausibility check). Values are
sparse (only grid cells with a nonzero commuter count appear -- consistent
with the same small-cell disclosure-control convention documented in
:mod:pycensus.census.countries.germany.zensus_grid.loader).
IMPORTANT -- coverage is NOT nationwide: verified live 2026-08-25, the 27,828 real cell IDs span EPSG:3035 northing 2698-3117 km and easting 4032-4667 km only, i.e. roughly the southern/central half of Germany (Bavaria/Baden-Wuerttemberg/Hesse and neighbors). Real spot-check 2026-08-25: an AOI over Munich (11.3-11.8E, 48.0-48.3N) returns 631 real cells summing to 972,896 jobsTotal -- a plausible order of magnitude for Munich's real workforce. An AOI over Hamburg (9.7-10.3E, 53.4-53.75N, northing ~3382 km) returns ZERO cells -- Hamburg is genuinely OUTSIDE this dataset's covered extent, not a bug. Callers targeting northern German cities (Hamburg, Bremen, Berlin, Kiel, etc.) will get an empty GeoDataFrame from this source and must fall back to another jobs source.
Grid cell ID format 1kmN<northing>E<easting> encodes the SW corner of
a real 1km x 1km cell in EPSG:3035 (ETRS89-LAEA Europe), in kilometers --
the same INSPIRE 1km grid convention as Destatis's own Zensus grid family
(see :mod:pycensus.census.countries.germany.zensus_grid.loader), just a coarser
1km resolution and a different ID string shape (no CRS3035RES...
prefix). Spot-checked live 2026-08-25: sample IDs from the real file (e.g.
1kmN2698E4341, i.e. SW corner at EPSG:3035 (4341000, 2698000)) fall
within a few hundred km of Stuttgart (EPSG:3035 ~(4260925, 2851721)) --
consistent with real German territory in EPSG:3035, not a bogus/foreign
coordinate range.
This is NOT wired as a pycensus administrative level (unlike
nation/state/district/municipality) -- 1km grid cells are not an
administrative hierarchy, they're a raster-like point/cell grid, the same
architectural shape as :mod:pycensus.census.countries.germany.zensus_grid and
:mod:pycensus.census.worldwide.worldpop. This loader returns a
GeoDataFrame of real grid cells for a caller to resample onto an H3 grid
or any other target geometry itself -- it is not resampled here.
The raw CSV is cached under <data_dir>/raw/verbindungen/ (persistent
disk cache) to avoid re-downloading on every call.
download_grid(data_dir=None)
¶
Return every real VerBindungen 1km grid cell as 1km x 1km polygons.
On first call, downloads and caches the real CSV
(<data_dir>/raw/verbindungen/Statische-Arbeitsbevoelkerung-1x1km-Raster.csv).
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
GeoDataFrame with |
GeoDataFrame
|
(real |
GeoDataFrame
|
count), |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_dir
|
Optional[str]
|
Folder of the raw downloads; |
None
|
load(aoi=None, data_dir=None)
¶
Return real VerBindungen 1km grid cells intersecting aoi.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
aoi
|
A GeoDataFrame/GeoSeries defining the area of interest. If omitted, returns every populated German grid cell (27,828 rows nationwide, verified live 2026-08-25). |
None
|
|
data_dir
|
Optional[str]
|
Root directory for the raw/cached grid. Defaults to
:data: |
None
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
GeoDataFrame with |