public class Trip extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Trip.Destination
Encapsulates data related to trip destination.
|
static class |
Trip.Estimate
Encapsulates data related to estimated arrival at destination for current trip.
|
static class |
Trip.Point2D
Represents point on map.
|
static class |
Trip.Route
Route to trip's destination, that was assumed during estimation.
|
static class |
Trip.Views |
Modifier and Type | Field and Description |
---|---|
static String |
ARRIVAL_DELAYED |
static String |
COMPLETED |
static String |
DESTINATION_ARRIVAL |
static String |
DESTINATION_EXIT |
static String |
GEOFENCE_ENTERED |
static String |
GEOFENCE_EXIT |
static String |
METADATA_CHANGED |
static String |
REMAINING_DURATION_UPDATE |
static String |
ROUTE_RECALCULATED |
Constructor and Description |
---|
Trip(String tripId,
String startedAt,
String completedAt,
String status,
Trip.Destination destination,
Trip.Estimate estimate,
String metadata,
Summary summary,
Trip.Views views,
List<GeofenceMarkerData.Geofence> geofences,
String lastChangeReason) |
Modifier and Type | Method and Description |
---|---|
String |
getCompletedAt() |
Trip.Destination |
getDestination() |
Date |
getEndDate() |
Trip.Estimate |
getEstimate() |
String |
getMetadata() |
Date |
getStartDate() |
String |
getStartedAt() |
String |
getStatus() |
Summary |
getSummary() |
String |
getTripChangeReason() |
String |
getTripId() |
Trip.Views |
getViews() |
String |
toString() |
public static final String DESTINATION_ARRIVAL
public static final String DESTINATION_EXIT
public static final String ROUTE_RECALCULATED
public static final String METADATA_CHANGED
public static final String COMPLETED
public static final String ARRIVAL_DELAYED
public static final String REMAINING_DURATION_UPDATE
public static final String GEOFENCE_ENTERED
public static final String GEOFENCE_EXIT
public Trip(String tripId, String startedAt, String completedAt, String status, Trip.Destination destination, Trip.Estimate estimate, String metadata, Summary summary, Trip.Views views, List<GeofenceMarkerData.Geofence> geofences, String lastChangeReason)
public Trip.Views getViews()
public String getTripId()
public String getStartedAt()
getStartDate()
public Date getStartDate()
getStartedAt()
public String getCompletedAt()
getEndDate()
public Date getEndDate()
getCompletedAt()
public String getStatus()
public Trip.Destination getDestination()
Trip.Destination
object otherwise.public Trip.Estimate getEstimate()
Trip.Estimate
object otherwise.public String getMetadata()
public Summary getSummary()
public String getTripChangeReason()
DESTINATION_ARRIVAL
, DESTINATION_EXIT
,
ROUTE_RECALCULATED
, COMPLETED
, ARRIVAL_DELAYED
,
GEOFENCE_ENTERED
, GEOFENCE_EXIT
, METADATA_CHANGED
,
REMAINING_DURATION_UPDATE
constants otherwise.