Exploring the World with Folium Liibrary
Exploring our World with Folim Library¶
In [1]:
import folium
import geopandas
import pandas as pd
In [2]:
world_map = folium.Map()
In [3]:
world_map
Out[3]:
Make this Notebook Trusted to load map: File -> Trust Notebook
In [8]:
malika_map = folium.Map(location=[14.797590148116361, -17.337554573401416], zoom_start=12)
In [9]:
malika_map
Out[9]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Creating Folium Map with Marker¶
The last months i've been in different locations around Senegal, let see those places
In [11]:
senegal = folium.Map(location=[14.414036382302715, -14.418179210560844],zoom_start=6)
folium.Marker(location=[15.061889824858222, -16.144064142742003], popup='Fass Toure').add_to(senegal)
folium.Marker(location=[14.161020802993393, -16.062844557279963], popup='Medina Baye, Kaolack').add_to(senegal)
folium.Marker(location=[13.875308316313989, -16.369124804547795], popup='Sokone').add_to(senegal)
Out[11]:
<folium.map.Marker at 0x129f0070>
In [12]:
senegal
Out[12]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Exploring Folium with World¶
I've been living in different countries on earth from my childhood to my age today, let's go around
In [13]:
world_map = folium.Map()
folium.Marker(location=[29.31211438656124, 47.98610966379473], popup='قرطبة الكويت').add_to(world_map)
folium.Marker(location=[24.488792726484498, 54.412478782357205], popup='Sorbonne Abu Dhabi').add_to(world_map)
folium.Marker(location=[56.18766336071987, -3.0161321391243794], popup='Methil, Leven, UK').add_to(world_map)
Out[13]:
<folium.map.Marker at 0x12d8d7f0>
In [14]:
world_map
Out[14]:
Make this Notebook Trusted to load map: File -> Trust Notebook
Conclusion:\ Folium is an explorer for geospatialist pythoner, i traveled around the world with it since it's difficult to go somewhere now with Corona Virus
Comments
Post a Comment