Python | Plotting Google Map using folium package Last Updated : 05 Jun, 2024 Comments Improve Suggest changes Like Article Like Report Folium is built on the data wrangling strengths of the Python ecosystem and the mapping strengths of the Leaflet.js (JavaScript) library. Simply, manipulate your data in Python, then visualize it on a leaflet map via Folium. Folium makes it easy to visualize data that's been manipulated in Python, on an interactive Leaflet map. This library has a number of built-in tilesets from OpenStreetMap, Mapbox etc.Command to install folium module : pip install foliumCode #1 : To create a Base Map. Python3 # import folium package import folium # Map method of folium return Map object # Here we pass coordinates of Gfg # and starting Zoom level = 12 my_map1 = folium.Map(location = [28.5011226, 77.4099794], zoom_start = 12 ) # save method of Map object will create a map my_map1.save(" my_map1.html " ) Output : Code #2 : Add a circular marker with popup text. Python3 # import folium package import folium my_map2 = folium.Map(location = [28.5011226, 77.4099794], zoom_start = 12) # CircleMarker with radius folium.CircleMarker(location = [28.5011226, 77.4099794], radius = 50, popup = ' FRI ').add_to(my_map2) # save as html my_map2.save(" my_map2.html ") Output : Code #3 : Add a simple_marker for parachute style marker with pop-up text. Python3 # import folium package import folium my_map3 = folium.Map(location = [28.5011226, 77.4099794], zoom_start = 15) # Pass a string in popup parameter folium.Marker([28.5011226, 77.4099794], popup = ' Geeksforgeeks.org ').add_to(my_map3) my_map3.save(" my_map3.html ") Output : Code #4 : Add a line to the map Python3 # import folium package import folium my_map4 = folium.Map(location = [28.5011226, 77.4099794], zoom_start = 12) folium.Marker([28.704059, 77.102490], popup = 'Delhi').add_to(my_map4) folium.Marker([28.5011226, 77.4099794], popup = 'GeeksforGeeks').add_to(my_map4) # Add a line to the map by using line method . # it connect both coordinates by the line # line_opacity implies intensity of the line folium.PolyLine(locations = [(28.704059, 77.102490), (28.5011226, 77.4099794)], line_opacity = 0.5).add_to(my_map4) my_map4.save("my_map4.html") Output : Comment More infoAdvertise with us Next Article Python | Plotting Google Map using folium package A ankthon Follow Improve Article Tags : Python python-utility python-modules Practice Tags : python Similar Reads Python | Plotting Google Map using gmplot package gmplot is a matplotlib-like interface to generate the HTML and javascript to render all the data user would like on top of Google Maps. Command to install gmplot : pip install gmplotCode #1 : To create a Base Map Python # import gmplot package import gmplot # GoogleMapPlotter return Map object # Pas 2 min read Plotting Data on Google Map using Python's pygmaps package pygmaps is a matplotlib-like interface to generate the HTML and javascript to render all the data users would like on top of Google Maps. Command to install pygmaps : pip install pygmaps (on windows)sudo pip3 install pygmaps (on linix / unix)Code #1 : To create a Base Map. Python # import required p 3 min read Python | Geographical plotting using plotly Geographical plotting is used for world map as well as states under a country. Mainly used by data analysts to check the agriculture exports or to visualize such data. plotly is a Python library which is used to design graphs, especially interactive graphs. It can plot various graphs and charts like 2 min read Plotting World Map Using Pygal in Python Pygal is a Python module that is mainly used to build SVG (Scalar Vector Graphics) graphs and charts. SVG is a vector-based graphics in the XML format that can be edited in any editor. Pygal can create graphs with minimal lines of code that can be easy to understand and write. We might want to plot 3 min read Choropleth Maps using Plotly in Python Plotly is a Python library that is very popular among data scientists to create interactive data visualizations. One of the visualizations available in Plotly is Choropleth Maps.  Choropleth maps are used to plot maps with shaded or patterned areas which are proportional to a statistical variable. T 3 min read Like