Added route picture, text and total distance in routeDetail

This commit is contained in:
RemoMeijer
2021-01-06 16:54:15 +01:00
parent d67d78b385
commit c921a76dc4
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