Commit 91259e12 authored by Oscar Roisin's avatar Oscar Roisin
Browse files

add indicators to map

parent 042e25f0
import folium
import matplotlib.pyplot as plt
from cassandra.cluster import Cluster
from datetime import datetime
import numpy as np
from kmeans import verifyDateInPeriod
import loading
......@@ -60,7 +57,10 @@ def mapIndicator(date, indicators):
m = folium.Map(location=[64.2815, 27.6753])
# Add Marker for each station
for d in data:
folium.Marker([d['lat'], d['lon']], popup=f"{d['station']}").add_to(m)
text = ''
for key, value in d.items():
text = text+'<br><b>'+key+'</b> : '+str(value)
folium.Marker([d['lat'], d['lon']], popup=f"{text}").add_to(m)
# Save map
print(f"La carte a été enregistrée à {file_name}")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment