This repository contains information about 2056 cities of Germany in JSON format and Python script which is used to keep this up to date.
JSON format is the following.
Field | Description |
---|---|
name | City name |
state | State |
district | District |
population | City population |
coords | Coordinates ('lat' - latitude, 'lon' - longtitude) |
area | City area (in sq. km) |
Data in JSON file are sorted by city name alphabetically.
All data are taken from Wikipedia. The
script uses parselab
Python package from homonymous project for
file caching and to abstract the complexities of network interaction.
This data is released for use under a Creative Commons license.