From 44504f64bdbe342f7a58796405a62ba54dc9c121 Mon Sep 17 00:00:00 2001 From: Ujaval Gandhi Date: Tue, 2 Jul 2024 19:55:46 +0530 Subject: [PATCH] update --- 10_leafmap_basics.ipynb | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) 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",