Skip to content

Dieses Projekt ermöglicht die Erstellung eines Straßenverzeichnisses für Deutschland-Berlin. This project allows the creation of a street directory for Germany-Berlin. #OpenData

License

Notifications You must be signed in to change notification settings

devmarcstorm/streets-in-berlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Straßen in Berlin (OPEN DATA)

Dieses Projekt ermöglicht die Erstellung eines Straßenverzeichnisses für Deutschland-Berlin. Die Daten werden aus Artikeln der deutschsprachigen Wikipedia zusammengetragen und unterstehen der von Wikipedia gewählten Lizenz (siehe Lizenz / Urheber / Daten (generated by the application) (CC BY-SA 3.0)).

Die generierten Daten werden ohne Haftung, Gewähr oder Garantie auf Richtigkeit oder Vollständigkeit angeboten.

Vielen Dank an die Autoren/Community der Wikipedia.


This project allows the creation of a street directory for Germany-Berlin. The data is compiled from articles of the German-language Wikipedia and is subject to the license chosen by Wikipedia (see Lizenz / Urheber / Daten (generated by the application) (CC BY-SA 3.0)).

The generated data is offered without liability, warranty, or guarantee of accuracy or completeness.

Many thanks to the authors/community of Wikipedia.

Table of Contents

Verwendung

Erstellen und aktivieren einer virtuellen Umgebung mit Python3 (macOS):

python3 -m venv venv
. venv/bin/acivate

Requirements

pip install beautifulsoup4 requests

Daten generieren

python3 run.py

Generiert werden folgende Dateien:

  • "streets_in_berlin_by_district_and_locality.json" - enthält alle Straßen sortiert nach Name, Ortsteil und Bezirk.
  • "DATA_LICENSE.txt" - enthält die Quellenangaben und die Verlinkung zur Lizenz, unter der die Daten zur Verfügung gestellt werden (Siehe Daten (generated by the application) (CC BY-SA 3.0))

Aufbau der JSON-Daten

- "data"
  - Bezirk
    - Ortsteil
      - Straßen
- "last_updated_UTC_ISO8601": Uhrzeit des Datenabrufs aus Wikipedia gemäß ISO 8601 (UTC).
- "license": Links zur Lizenz und zu den verwendeten Wikipedia-Artikeln.

Mögliche Verwendung

import json

with open('streets_in_berlin_by_district_and_locality.json') as f:
  data = json.load(f)

# Output:
# {
#   "data": {
#     "Charlottenburg-Wilmersdorf": {
#       "Charlottenburg": [
#         "Abbestraße",
# ...
print(data)

# Output: Abbestraße
print(data["data"]["Charlottenburg-Wilmersdorf"]["Charlottenburg"][0])

Lizenz / Urheber

Source Code (MIT)

Der in diesem Repository enthaltene Python Source Code steht unter der MIT-Lizenz. Siehe LICENSE-Datei.

MIT License

Copyright (c) 2021 devmarcstorm

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Daten (generated by the application) (CC BY-SA 3.0)

Die Straßennamen, sortiert nach Name und Bezirk, wurden aus den unten aufgeführten Artikeln der deutschsprachigen Wikipedia extrahiert. Sie stehen unter der Lizenz: Creative Commons CC-BY-SA 3.0 Unported (https://creativecommons.org/licenses/by-sa/3.0/deed.de)

Contributing

Die Nützlichkeit dieses Projekts ergibt sich hauptsächlich aus der Genauigkeit der generierten Daten. Wenn Sie feststellen, dass die Straßenlisten von Wikipedia unvollständig oder falsch sind, können Sie am besten direkt die entsprechenden Artikel editieren. Wie das geht, beschreibt Wikipedia auf der Seite Wikipedia:Beteiligen.

Für Ideen oder Verbesserungsvorschläge können Sie gerne die Issue-Funktion auf GitHub nutzen.

Vielen Dank, dass Sie sich an Open-Data-Projekten beteiligen.


The usefulness of this project derives mainly from the accuracy of its generated data. If you find that the lists of streets from Wikipedia are incomplete or incorrect, the best thing you can do is contribute directly to the relevant articles. Wikipedia describes how to do this on its Wikipedia:Contributing to Wikipedia page.

For ideas or suggestions for improvements, feel free to use the issue feature on GitHub.

Thank you for participating in Open Data projects.

About

Dieses Projekt ermöglicht die Erstellung eines Straßenverzeichnisses für Deutschland-Berlin. This project allows the creation of a street directory for Germany-Berlin. #OpenData

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages