public interface Trip
extends android.os.Parcelable
Modifier and Type | Method and Description |
---|---|
double |
getCo2()
The co2 produced during this trip
|
java.lang.String |
getDestination()
The destination of the trip
|
double |
getDistance()
The distance of the trip in meters
|
double |
getDuration() |
TmdActivity |
getLeg(int position) |
java.util.List<TmdActivity> |
getLegs()
Get the list of legs for this trip
|
java.lang.String |
getMainMode() |
MapData |
getMapData() |
java.lang.String |
getMetadata()
The metadata for the trip
|
java.lang.String |
getOrigin()
The name of the origin for the trip
|
java.lang.String |
getReason()
The reason for the trip
|
long |
getTimestampEnd() |
long |
getTimestampStart() |
boolean |
hasLegs()
Check whether the trip has legs
|
boolean |
isCompleted()
This fields tells if the trip is completed and thus, may be not be modified without the user's input
|
boolean |
isValidated()
This field is important for reporting
|
static java.lang.String |
marshall(Trip trip) |
static boolean |
sameTrip(Trip first,
Trip second) |
static boolean |
sameTrips(java.util.List<Trip> first,
java.util.List<Trip> second) |
int |
size()
The size of the trip
|
static Trip |
unmarshall(java.lang.String trip) |
static final Trip EMPTY
long getTimestampStart()
long getTimestampEnd()
double getDuration()
boolean hasLegs()
int size()
java.util.List<TmdActivity> getLegs()
TmdActivity getLeg(int position)
java.lang.String getMainMode()
double getDistance()
double getCo2()
java.lang.String getOrigin()
java.lang.String getDestination()
java.lang.String getReason()
java.lang.String getMetadata()
boolean isValidated()
boolean isCompleted()
MapData getMapData()
static boolean sameTrips(@NonNull java.util.List<Trip> first, @NonNull java.util.List<Trip> second)
static Trip unmarshall(java.lang.String trip)
static java.lang.String marshall(Trip trip)