緯度/経度座標のデータフレームがあります
latlon
(51.249443914705175, -0.13878830247011467)
(51.249443914705175, -0.13878830247011467)
(51.249768239976866, -2.8610415615063034)
...
これらを Folium マップにプロットしたいのですが、各行を反復処理する方法がわかりません。
よろしくお願いします。
これで問題を解決できます
import folium
mapit = None
latlon = [ (51.249443914705175, -0.13878830247011467), (51.249443914705175, -0.13878830247011467), (51.249768239976866, -2.8610415615063034)]
for coord in latlon:
mapit = folium.Map( location=[ coord[0], coord[1] ] )
mapit.save( 'map.html')
import folium
latlon = [ (51.249443914705175, -0.13878830247011467), (51.249443914705175, -0.13878830247011467), (51.249768239976866, -2.8610415615063034)]
mapit = folium.Map( location=[52.667989, -1.464582], zoom_start=6 )
for coord in latlon:
folium.Marker( location=[ coord[0], coord[1] ], fill_color='#43d9de', radius=8 ).add_to( mapit )
mapit.save( 'map.html')
このリファレンスを使用すると素晴らしいでしょう: https://github.com/python-visualization/folium