main.py
CHANGED
@@ -61,6 +61,7 @@ var rec_list = res['recommendations']
|
|
61 |
console.log(rec_list);
|
62 |
|
63 |
rec_list.forEach((elem) => addElem(elem));
|
|
|
64 |
avg_lat = lat_sum / marker_count;
|
65 |
avg_lng = lng_sum / marker_count;
|
66 |
|
@@ -79,8 +80,8 @@ function addElem(elem)
|
|
79 |
marker.bindPopup(elem['name'])
|
80 |
|
81 |
marker_count++;
|
82 |
-
lat_sum +=
|
83 |
-
lng_sum +=
|
84 |
}
|
85 |
|
86 |
|
|
|
61 |
console.log(rec_list);
|
62 |
|
63 |
rec_list.forEach((elem) => addElem(elem));
|
64 |
+
|
65 |
avg_lat = lat_sum / marker_count;
|
66 |
avg_lng = lng_sum / marker_count;
|
67 |
|
|
|
80 |
marker.bindPopup(elem['name'])
|
81 |
|
82 |
marker_count++;
|
83 |
+
lat_sum += elem['latitude'];
|
84 |
+
lng_sum += elem['longitude'];
|
85 |
}
|
86 |
|
87 |
|