This commit is contained in:
Sem van der Hoeven
2021-01-06 20:59:48 +01:00
parent 23beac0cf0
commit f062b1915c

View File

@@ -74,9 +74,9 @@ public class Route implements Parcelable {
return this.imageURL;
}
public int calculateTotalTimeMinutes() {
public double calculateTotalTimeMinutes() {
// 5 km / h walking speed
return (int) ((totalDistance / 1000) / 5) * 60;
return ((totalDistance / 1000) / 5) * 60;
}