Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spatialthoughts committed Jul 2, 2024
1 parent c475cb2 commit 44504f6
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions 10_leafmap_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 44504f6

Please sign in to comment.