
BugBytes
チャンネル登録者数 4.33万人
1.8万 回視聴 ・ 472いいね ・ 2023/01/18
📚 Geospatial Python Playlist: • Geospatial Python
☕ Buy a coffee: ko-fi.com/bugbytes
In this video, we use Folium to create maps and use Django to fetch data from the database and plot that geographical data as markers on the map.
We show how to convert the Folium Map object to an HTML representation with the _repr_html_() function, and display the map in our Django template.
We also see how to add popups and clusters to the map, as well as how to filter which markers are shown using Django ORM operations.
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
01:51 Setting up the Django project
02:26 Fetching records with longitude and latitude from the database
03:42 Creating a Folium map and adding markers
07:54 Clustering markers with the FastMarkerCluster
11:23 Filtering markers using Django ORM operations (filter, exclude, aggregate)
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: www.bugbytes.io/posts/
👾 Github: github.com/bugbytes-io/django-folium-example
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
Starter Code: github.com/bugbytes-io/django-folium-example
Dataset: catalog.data.gov/dataset/electric-vehicle-charging…
Folium: python-visualization.github.io/folium/
FastMarkerCluster: python-visualization.github.io/folium/plugins.html…
#python #django #gis #mapping #datascience
コメント
関連動画

Django and LeafletJS - Interactive Maps, Map Events, and Finding Closest Points with GeoPy
23,279 回視聴 - 2 年前

Andrew Ng Explores The Rise Of AI Agents And Agentic Reasoning | BUILD 2024 Keynote
887,886 回視聴 - 6 か月前

Django-Filter - Filtering Django Querysets, Class-Based Views and REST Framework Integration
39,125 回視聴 - 2 年前
使用したサーバー: wakeupe
再生方法の変更
動画のデフォルトの再生方法を設定できます。埋め込みで見れるなら埋め込みで見た方が良いですよ。
現在の再生方法: 通常
コメントを取得中...
コメントを取得中...