This repository contains the shapes of german postcode areas (Postleitzahlengebiete) in compressed geojson and topojson format.
See Releases
Extracted from OpenStreetMap via Overpass
Overpass Query:
area[wikidata="Q183"]->.searchArea;
(
// Postcodes within Germany
// captures some non-German postcodes due to incongruent boundaries in OSM
relation["type"="boundary"]["boundary"="postal_code"](area.searchArea);
// Explicit German postcodes (Jungholz, Kleinwalsertal)
relation["type"="boundary"]["boundary"="postal_code"]["postal_code:DE"];
// Special Case: Büsingen (not captured in searchArea)
relation["type"="boundary"]["boundary"="postal_code"]["postal_code"="78266"];
);
out body geom;Included in this repository is the import script used to generate the data files: sh bin/import.sh
- Postleitzahlen-Scraper - A program that downloads non-free postcode geometries from the german postal service.