diff --git a/10_leafmap_basics.ipynb b/10_leafmap_basics.ipynb index ca54ecf..4308064 100644 --- a/10_leafmap_basics.ipynb +++ b/10_leafmap_basics.ipynb @@ -97,6 +97,26 @@ "id": "uKDQ9oX2ojKs" }, "outputs": [], + "source": [ + "json_file = 'bangalore_wards.json'\n", + "gpkg_file = 'bangalore_roads.gpkg'\n", + "\n", + "data_url = 'https://github.com/spatialthoughts/python-dataviz-web/releases/' \\\n", + " 'download/bangalore/'\n", + "\n", + "for f in json_file, gpkg_file:\n", + " download(data_url + f)" + ], + "id": "uKDQ9oX2ojKs" + }, + { + "cell_type": "code", + "execution_count": null, + "id": "1PVxJlqkHb0q", + "metadata": { + "id": "1PVxJlqkHb0q" + }, + "outputs": [], "source": [ "def download(url):\n", " filename = os.path.join(data_folder, os.path.basename(url))\n", @@ -108,13 +128,11 @@ "json_file = 'bangalore_wards.json'\n", "gpkg_file = 'bangalore_roads.gpkg'\n", "\n", - "data_url = 'https://github.com/spatialthoughts/python-dataviz-web/releases/' \\\n", - " 'download/bangalore/'\n", + "data_url = 'https://github.com/spatialthoughts/python-dataviz-web/raw/main/data/bangalore/'\n", "\n", "for f in json_file, gpkg_file:\n", - " download(data_url + f)" - ], - "id": "uKDQ9oX2ojKs" + " download(data_url + f)\n" + ] }, { "cell_type": "markdown",