Skip to content

yetzt/postleitzahlen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postleitzahlen

This repository contains the shapes of german postcode areas (Postleitzahlengebiete) in compressed geojson and topojson format.

Data

See Releases

Source

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;

Importer

Included in this repository is the import script used to generate the data files: sh bin/import.sh

Alternatives

  • Postleitzahlen-Scraper - A program that downloads non-free postcode geometries from the german postal service.

About

Postleitzahlengebiete in Deutschland / German Postcode Areas

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors