initial attempt - not working yet
This commit is contained in:
@@ -2049,7 +2049,20 @@ def leaflet_chart(lat,lon,name=""):
|
||||
|
||||
return script,div
|
||||
|
||||
def leaflet_chart_compare(latlondf,name=""):
|
||||
def leaflet_chart_compare(workoutids,labeldict={},startenddict={}):
|
||||
data = []
|
||||
for id in workoutids:
|
||||
w = Workout.objects.get(id=id)
|
||||
rowdata = rdata(w.csvfilename)
|
||||
df = pd.DataFrame({
|
||||
'id':id,
|
||||
'latitude':rowdata.df[' latitude'],
|
||||
'longitude':rowdata.df[' longitude']
|
||||
})
|
||||
data.append(f)
|
||||
|
||||
df = pd.concat(data,axis=0)
|
||||
|
||||
if lat.empty or lon.empty:
|
||||
return [0,"invalid coordinate data"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user