geo plotting has never been so easy. thanks dhrumil patel!
download the data file here
#Import Library
import folium
import pandas as pd
#Load Data
data = pd.read_csv("hotspot.csv")
lat = data['Longitude']
lon = data['Latitude']
elevation = data['Location']
#Create base map
map = folium.Map(location=[37.296933,-121.9574983], zoom_start = 5, tiles = "Mapbox bright")
#Plot Markers
for lat, lon, elevation in zip(lat, lon, elevation):
folium.Marker(location=[lat, lon], popup=str(elevation), icon=folium.Icon(color = 'gray')).add_to(map)
#Save the map
map.save("hostspots.html")
Written by
Abdur-Rahmaan Janhangeer
Chef
Python author of 9+ years having worked for Python companies around the world
Suggested Posts
Coordinate Systems: Converting Screen Space to Map Space
When building a tile-based game, you constantly need to translate between two different worlds: 1. ...
Tile-Based Game Map Rendering with Processing.py
Whether you’re building a classic RPG or a puzzle game, tile-based rendering is one of the most effi...
Procedural Generation Basics: Random Map Generation in Python
In game development, Procedural Generation is the technique of using algorithms to create game conte...