#!/usr/bin/env python # coding: utf-8 # ## 畫出目前所在地 # 相關資料: # # * https://github.com/python-visualization/folium # * https://github.com/DenisCarriere/geocoder # * https://www.openstreetmap.org/ # In[ ]: get_ipython().system('pip install -q folium') get_ipython().system('pip install -q geocoder') # In[ ]: # 載入需要的模組 import geocoder import folium # In[ ]: # 使用 geocoder 取得特定住址的 GPS 座標 location = geocoder.osm('國立高雄師範大學').latlng # In[ ]: # 顯示 GPS 座標 location # In[ ]: m = folium.Map(location=location, zoom_start=16) # In[ ]: folium.Marker(location=location, popup='國立高雄師範大學').add_to(m) # In[ ]: m