Added route picture, text and total distance in routeDetail
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user