SHARE
TWEET

Untitled

a guest Oct 10th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top