AI-generated Key Takeaways
-
TripWaypointis an abstract class in Java representing a point on a trip route, containing information like location, ETA, and distance from the previous waypoint. -
It provides methods to access details such as the waypoint's location (
getTerminalLocation), estimated time of arrival (getETAMillis), and distance from the previous waypoint (getDistanceMeters). -
TripWaypointincludes aWaypointTypeto define the role of the waypoint in the trip (e.g., pickup, dropoff) andTrafficDatafor the path to the waypoint. -
The path to the waypoint from the previous one is represented as a polyline accessible via
getPathToWaypoint. -
Each
TripWaypointis associated with a specific trip, identified bygetTripId.
Object representing a TripWaypoint.
Nested Class Summary
| @interface | TripWaypoint.WaypointType | Constant describing the role a waypoint plays on a trip route. | |
Public Constructor Summary
Public Method Summary
| abstract Integer |
getDistanceMeters()
Returns the distance, in meters, to this waypoint from the previous waypoint
(if there is one).
|
| abstract Long |
getETAMillis()
Returns the ETA to this waypoint as a timestamp in milliseconds.
|
| abstract List<LatLng> |
getPathToWaypoint()
Polyline representing the path to this waypoint from the previous waypoint.
|
| abstract TerminalLocation |
getTerminalLocation()
Location of this waypoint.
|
| abstract TrafficData |
getTrafficData()
Returns the
TrafficData for the path leading to this waypoint.
|
| abstract String |
getTripId()
The trip this waypoint is part of.
|
| abstract int |
getWaypointType()
Describes the role this waypoint plays for the trip; for example, pickup or
dropoff.
|
Inherited Method Summary
Public Constructors
public TripWaypoint ()
Public Methods
public abstract Integer getDistanceMeters ()
Returns the distance, in meters, to this waypoint from the previous waypoint (if there is one).
public abstract Long getETAMillis ()
Returns the ETA to this waypoint as a timestamp in milliseconds.
public abstract List<LatLng> getPathToWaypoint ()
Polyline representing the path to this waypoint from the previous waypoint.
public abstract TerminalLocation getTerminalLocation ()
Location of this waypoint.
public abstract TrafficData getTrafficData ()
Returns the
TrafficData for the path leading to this waypoint.
public abstract String getTripId ()
The trip this waypoint is part of.
public abstract int getWaypointType ()
Describes the role this waypoint plays for the trip; for example, pickup or dropoff.