Object representing the full context of a trip.
Nested Class Summary
@interface | TripInfo.TripStatus | Status of the trip. | |
@interface | TripInfo.TripType | Type of trip. |
Public Constructor Summary
TripInfo()
|
Public Method Summary
abstract Integer |
getActiveRouteRemainingDistanceMeters()
The remaining distance in meters from vehicle location to trip's next waypoint.
|
abstract int |
getCurrentTripStatus()
Status of the trip.
|
abstract int |
getCurrentTripType()
Trips can be
TripInfo.TripType.SHARED or
TripInfo.TripType.EXCLUSIVE .
|
abstract TerminalLocation |
getDropoffPoint()
Location of the dropoff point.
|
abstract Long |
getDropoffTimeMillis()
Timestamp of the dropoff time in milliseconds.
|
abstract Integer |
getIntermediateDestinationIndex()
The intermediate destination index.
|
abstract List<TerminalLocation> |
getIntermediateDestinations()
List of the intermediate destinations that will be visited as part of this
trip, excluding the pickup point and dropoff point.
|
abstract TripWaypoint |
getNextTripWaypoint()
The first waypoint in the remaining waypoints list that belongs to the trip.
|
abstract TripWaypoint |
getNextWaypoint()
The next waypoint to be visited; may not belong to this trip if this trip is
chained or shared.
|
abstract Integer |
getNumberOfPassengers()
The number of passengers in the vehicle.
|
abstract TerminalLocation |
getPickupPoint()
Location of the pickup point.
|
abstract Long |
getPickupTimeMillis()
Timestamp of the pickup time in milliseconds.
|
abstract List<TripWaypoint> |
getRemainingWaypoints()
List of all the waypoints that will be visited before the trip is complete.
|
abstract Route |
getTripActiveRoute()
The active leg route points for the trip.
|
abstract TrafficData | |
abstract String |
getTripName()
Name of the trip in the format "providers/{provider_id}/trips/{trip_id}"
|
abstract Route |
getTripRemainingRoute()
The remaining leg route points for the trip.
|
abstract Integer |
getTripRemainingRouteDistanceMeters()
The distance in meters for the remaining leg of the trip.
|
abstract TrafficData |
getTripRemainingRouteTraffic()
The traffic data for the remaining leg of the trip.
|
abstract int |
getTripStatus()
This method is deprecated. Use
getCurrentTripStatus() instead. This method will be removed in the
next major release.
|
abstract int |
getTripType()
This method is deprecated. Use
getCurrentTripType() instead. This method will be removed in the
major release.
|
abstract String |
getVehicleId()
The ID of the vehicle.
|
abstract VehicleLocation |
getVehicleLocation()
The location of the vehicle.
|
Inherited Method Summary
Public Constructors
public TripInfo ()
Public Methods
public abstract Integer getActiveRouteRemainingDistanceMeters ()
The remaining distance in meters from vehicle location to trip's next waypoint.
public abstract int getCurrentTripStatus ()
Status of the trip.
public abstract int getCurrentTripType ()
Trips can be
TripInfo.TripType.SHARED
or
TripInfo.TripType.EXCLUSIVE
.
public abstract TerminalLocation getDropoffPoint ()
Location of the dropoff point.
public abstract Long getDropoffTimeMillis ()
Timestamp of the dropoff time in milliseconds.
public abstract Integer getIntermediateDestinationIndex ()
The intermediate destination index.
public abstract List<TerminalLocation> getIntermediateDestinations ()
List of the intermediate destinations that will be visited as part of this trip, excluding the pickup point and dropoff point.
public abstract TripWaypoint getNextTripWaypoint ()
The first waypoint in the remaining waypoints list that belongs to the trip.
public abstract TripWaypoint getNextWaypoint ()
The next waypoint to be visited; may not belong to this trip if this trip is chained or shared.
public abstract Integer getNumberOfPassengers ()
The number of passengers in the vehicle.
public abstract TerminalLocation getPickupPoint ()
Location of the pickup point.
public abstract Long getPickupTimeMillis ()
Timestamp of the pickup time in milliseconds.
public abstract List<TripWaypoint> getRemainingWaypoints ()
List of all the waypoints that will be visited before the trip is complete. This may include waypoints that belong to other trips for chained or carpool rides.
public abstract Route getTripActiveRoute ()
The active leg route points for the trip.
public abstract TrafficData getTripActiveRouteTraffic ()
The traffic data for the active leg of the trip.
public abstract String getTripName ()
Name of the trip in the format "providers/{provider_id}/trips/{trip_id}"
public abstract Route getTripRemainingRoute ()
The remaining leg route points for the trip.
public abstract Integer getTripRemainingRouteDistanceMeters ()
The distance in meters for the remaining leg of the trip.
public abstract TrafficData getTripRemainingRouteTraffic ()
The traffic data for the remaining leg of the trip.
public abstract int getTripStatus ()
This method is deprecated.
Use
getCurrentTripStatus()
instead. This method will be removed in the next major
release.
Status of the trip.
public abstract int getTripType ()
This method is deprecated.
Use
getCurrentTripType()
instead. This method will be removed in the major
release.
Trips can be
Trip.TripType.SHARED
or
Trip.TripType.EXCLUSIVE
.
public abstract String getVehicleId ()
The ID of the vehicle.
public abstract VehicleLocation getVehicleLocation ()
The location of the vehicle.