2021-02-06 16:14:34 +00:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Accessing Geodata from Data.wien.gv.at Services\n",
|
|
|
|
"\n",
|
|
|
|
"<a href=\"https://www.data.gv.at/auftritte/?organisation=stadt-wien\"><img align=\"right\" src=\"./img/stadt-wien.png\"></a>\n",
|
|
|
|
"\n",
|
|
|
|
"For more information on open government data in Vienna visit [digitales.wien.gv.at](https://digitales.wien.gv.at/site/open-data/)\n",
|
|
|
|
"\n",
|
|
|
|
"For a full list of available datasets go to [data.gv.at](https://www.data.gv.at/auftritte/?organisation=stadt-wien)\n",
|
|
|
|
"\n",
|
|
|
|
"\n"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-02-06 16:24:13 +00:00
|
|
|
"execution_count": null,
|
2021-02-06 16:14:34 +00:00
|
|
|
"metadata": {},
|
2021-02-06 16:24:13 +00:00
|
|
|
"outputs": [],
|
2021-02-06 16:14:34 +00:00
|
|
|
"source": [
|
|
|
|
"import hvplot.pandas\n",
|
|
|
|
"from utils.ogc_io import gdf_from_wfs\n",
|
|
|
|
"from utils.plotting import hvplot_with_buffer"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"For example, Citybike stations:"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-02-06 16:24:13 +00:00
|
|
|
"execution_count": null,
|
2021-02-06 16:14:34 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"gdf = gdf_from_wfs('CITYBIKEOGD')"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-02-06 16:24:13 +00:00
|
|
|
"execution_count": null,
|
2021-02-06 16:14:34 +00:00
|
|
|
"metadata": {},
|
2021-02-06 16:24:13 +00:00
|
|
|
"outputs": [],
|
2021-02-06 16:14:34 +00:00
|
|
|
"source": [
|
|
|
|
"gdf.hvplot(geo=True, tiles='OSM', hover_cols=['STATION']).opts(active_tools=['wheel_zoom'])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"300 meters is often cited as the maximum walking distance to a bicycle sharing station."
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-02-06 16:24:13 +00:00
|
|
|
"execution_count": null,
|
2021-02-06 16:14:34 +00:00
|
|
|
"metadata": {},
|
2021-02-06 16:24:13 +00:00
|
|
|
"outputs": [],
|
2021-02-06 16:14:34 +00:00
|
|
|
"source": [
|
|
|
|
"hvplot_with_buffer(gdf, 300)"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-02-06 16:24:13 +00:00
|
|
|
"execution_count": null,
|
2021-02-06 16:14:34 +00:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"gdf2 = gdf_from_wfs('ELADESTELLEOGD')"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"By comparision, the network of EV charging stations is much more comprehensive:"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-02-06 16:24:13 +00:00
|
|
|
"execution_count": null,
|
2021-02-06 16:14:34 +00:00
|
|
|
"metadata": {},
|
2021-02-06 16:24:13 +00:00
|
|
|
"outputs": [],
|
2021-02-06 16:14:34 +00:00
|
|
|
"source": [
|
|
|
|
"hvplot_with_buffer(gdf, 100, title='Citybike Stations') + hvplot_with_buffer(gdf2, 100, title='EV Charging Stations')"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Python 3",
|
|
|
|
"language": "python",
|
|
|
|
"name": "python3"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
"version": "3.7.8"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 4
|
|
|
|
}
|