Launix releases ZIP code database

Do you know this? You miss the radius search for zip codes - especially in areas like Upper Lusity, a simple search by city does not work, but you have to search within an area.
Zip codes and the federal states
| Federal state | Number of zip codes |
|---|---|
| Baden-Württemberg | 1200 |
| Bavaria | 2069 |
| Berlin | 191 |
| Brandenburg | 221 |
| Bremen | 40 |
| Hamburg | 101 |
| Hesse | 542 |
| Mecklenburg-Western Pomerania | 190 |
| Lower Saxony | 821 |
| North Rhine-Westphalia | 864 |
| Rhineland-Palatinate | 659 |
| Saarland | 69 |
| Saxony | 399 |
| Saxony-Anhalt | 214 |
| Schleswig-Holstein | 443 |
| Thuringia | 224 |
German postal codes linked with geodata
If you link the postal codes with the geographic coordinates Lon and Lat, you can mark a specific point on the map of Germany where this postal code is located. Lon refers to the longitude, while Lat is the latitude. The distance between two latitudes is 111.3 km, while the distance between two longitudes varies. Locations at the equator are 111.3 km apart per degree, whereas at the North and South Poles, the distance is 0 km per degree. The exact distance between two longitudes is 111.3 km * cos(Lat).
With this knowledge, you can calculate the distance between two geographic coordinates, namely according to the Pythagorean theorem √(x²+y²), where x is the distance along the longitude in km and y is the distance along the latitude in km. If you know two postal codes, you can look up their geographic position in the database and then calculate the distance.
| Postal Code | Municipality | District | Federal state | Lon | Lat |
|---|---|---|---|---|---|
| 02708 | Löbau | Rosenbach bei Löbau, Lawalde, Obercunnersdorf bei ... | Saxony | 14.6697479487381 | 51.09043191711079 |
| 02727 | Neugersdorf | Neugersdorf, Saxony | Saxony | 14.612798599227 | 50.9740627941025 |
| 02730 | Ebersbach | Ebersbach / Saxony | Saxony | 14.6114148308632 | 51.0138119490906 |
| 02733 | Cunewalde | Cunewalde | Saxony | 14.5281582649865 | 51.0993958694855 |
| 02736 | Oppach | Beiersdorf bei Löbau, Eichen, Oppach | Saxony | 14.5169828987071 | 51.06631832719129 |
Download the database
You can download the complete database as a MySQL dump: https://launix.de/ablage/PLZ.sql . Alternatively, we offer a CSV file:
The data is in the public domain. If you cannot do much with the raw data but would still like to use functions such as the radius search, contact us.