Merge branch 'route_detail' into develop

This commit is contained in:
Sem van der Hoeven
2021-01-06 17:18:02 +01:00
3 changed files with 34 additions and 31 deletions

View File

@@ -18,6 +18,7 @@ public class Route implements Parcelable {
private String description;
private List<Location> locations;
private float totalDistance;
private String imageURL;
private int totalTime;
public Route(@NotNull String name) {
@@ -69,6 +70,10 @@ public class Route implements Parcelable {
return totalDistance;
}
public String getImageURL(){
return this.imageURL;
}
public int getTotalTime() {
//TODO calculate total time according to all locations in list