TripInfo

public abstract class TripInfo extends Object

Object representing the full context of a trip.

Public Constructor Summary

Public Method Summary

abstract Integer
getActiveRouteRemainingDistanceMeters()
The remaining distance in meters from vehicle location to trip's next waypoint.
abstract TerminalLocation
getDropoffPoint()
Location of the dropoff point.
abstract Long
getDropoffTime()
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
getPickupTime()
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 List<LatLng>
getTripActiveRoute()
The active leg route points for the trip.
abstract TrafficData
getTripActiveRouteTraffic()
The traffic data for the active leg of the trip.
abstract String
getTripName()
Name of the trip in the format "providers/{provider_id}/trips/{trip_id}"
abstract List<LatLng>
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()
Status of the trip.
abstract int
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 TerminalLocation getDropoffPoint ()

Location of the dropoff point.

public abstract Long getDropoffTime ()

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 getPickupTime ()

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 List<LatLng> 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 List<LatLng> 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 ()

Status of the trip.

public abstract int getTripType ()

public abstract String getVehicleId ()

The ID of the vehicle.

public abstract VehicleLocation getVehicleLocation ()

The location of the vehicle.