Last active
September 22, 2019 21:19
-
-
Save Dhrumilcse/1de51f307967b7f355bd225df5c03ab6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Import Library | |
import folium | |
import pandas as pd | |
#Load Data | |
data = pd.read_excel("tesla-supercharger-france.xlsx") | |
latitude = data['Ylatitude'] | |
longitude = data['Xlongitude'] | |
station = data['ad_station'] | |
#Create base map | |
map = folium.Map(location=[48.754865,2.373034], zoom_start = 6) | |
#Plot Marker | |
for latitude, longitude, station in zip(latitude, longitude, station): | |
folium.Marker(location=[latitude, longitude], popup=str(station), icon=folium.Icon(color = 'green')).add_to(map) | |
#Save the map | |
map.save("map.html") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment