We are using the official city map of Heidelberg to get the suburb for a specific address, the map can be found here: https://geoweb.heidelberg.de/geoportal/.
The data we extracted from OpenStreetMap is used to get the address for each datapoint. Then we make a request to the heidelberg.de website and find the suburb for that address. After that we fill the suburb value in our json file.
C:\Users\finn\AppData\Local\Temp\ipykernel_27972\1116351556.py:10: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
c:\Users\finn\Documents\provocate\notebooks\knowledge_base.ipynb Cell 11 line 9
<a href='vscode-notebook-cell:/c%3A/Users/finn/Documents/provocate/notebooks/knowledge_base.ipynb#X13sZmlsZQ%3D%3D?line=6'>7</a> # Iterate over each entry and find the suburb
<a href='vscode-notebook-cell:/c%3A/Users/finn/Documents/provocate/notebooks/knowledge_base.ipynb#X13sZmlsZQ%3D%3D?line=7'>8</a> for entry in data["data"][:20]:
<a href='vscode-notebook-cell:/c%3A/Users/finn/Documents/provocate/notebooks/knowledge_base.ipynb#X13sZmlsZQ%3D%3D?line=11'>12</a> # Save the updated JSON data
c:\Users\finn\Documents\provocate\notebooks\knowledge_base.ipynb Cell 11 line 1
<a href='vscode-notebook-cell:/c%3A/Users/finn/Documents/provocate/notebooks/knowledge_base.ipynb#X13sZmlsZQ%3D%3D?line=14'>15</a> # Wait for the page to load
<a href='vscode-notebook-cell:/c%3A/Users/finn/Documents/provocate/notebooks/knowledge_base.ipynb#X13sZmlsZQ%3D%3D?line=17'>18</a> # Activate the checkbox for "Stadtteile"