Skip to content

Instantly share code, notes, and snippets.

@Akramz
Last active February 16, 2017 00:06
Show Gist options
  • Save Akramz/26ae243730dd1f8ac45bbf8e5de8d19f to your computer and use it in GitHub Desktop.
Save Akramz/26ae243730dd1f8ac45bbf8e5de8d19f to your computer and use it in GitHub Desktop.
import folium
import pandas as pd
# Map init.
map_osm = folium.Map()
data = pd.read_csv('data.csv')
data_ = data[['LATITUDE (HIGH ACCURACY)','LONGITUDE (HIGH ACCURACY)']].astype(float)
for index, row in data_.iterrows():
folium.CircleMarker(location=[row["LATITUDE (HIGH ACCURACY)"], row["LONGITUDE (HIGH ACCURACY)"]]).add_to(map_osm)
html = map_osm.save('osm.html')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment