Advertisement
Guest User

Untitled

a guest
Oct 10th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #Import Library
  2. import folium
  3. import pandas as pd
  4.  
  5. #Load Data
  6. data = pd.read_excel("tesla-supercharger-france.xlsx")
  7. latitude = data['Ylatitude']
  8. longitude = data['Xlongitude']
  9. station = data['ad_station']
  10.  
  11. #Create base map
  12. map = folium.Map(location=[48.754865,2.373034], zoom_start = 6)
  13.  
  14. #Plot Marker
  15. for latitude, longitude, station in zip(latitude, longitude, station):
  16. folium.Marker(location=[latitude, longitude], popup=str(station), icon=folium.Icon(color = 'green')).add_to(map)
  17.  
  18. #Save the map
  19. map.save("map.html")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement