fix lat and long invert

This commit is contained in:
Florian Bezannier
2021-05-05 09:20:53 +02:00
parent c0e2c23742
commit d245e3f2f8
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ def get_figures(trips: Trips, charging: List[dict]):
names = []
for trip in trips:
for points in trip.positions:
lats = np.append(lats, points.longitude)
lons = np.append(lons, points.latitude)
lats = np.append(lats, points.latitude)
lons = np.append(lons, points.longitude)
names = np.append(names, [str(trip.start_at)])
lats = np.append(lats, None)
lons = np.append(lons, None)