public abstract class RideLocation extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RideLocation() |
Modifier and Type | Method and Description |
---|---|
static RideLocation |
create(String rideId,
LatLng vehicleLocation,
Long estimatedPickupTime,
Long estimatedDropOffTime,
Integer estimatedPickupTimeSeconds,
Integer estimatedDropOffTimeSeconds,
Long lastUpdateTime)
Create a new ride location.
|
abstract Long |
getEstimatedDropOffTime()
Deprecated.
This field is deprecated, please use
RideLocation.getEstimatedDropOffTimeSeconds() instead
to avoid timezone differences issues. |
abstract Integer |
getEstimatedDropOffTimeSeconds()
Estimated drop-off time, if available, in seconds, relative to now.
|
abstract Long |
getEstimatedPickupTime()
Deprecated.
This field is deprecated, please use
RideLocation.getEstimatedPickupTimeSeconds() instead
to avoid timezone differences issues. |
abstract Integer |
getEstimatedPickupTimeSeconds()
Estimated pickup time, if available, in seconds, relative to now.
|
abstract Long |
getLastUpdateTime()
Timestamp of this update, in milliseconds since Epoch.
|
abstract String |
getRideId()
The ride ID.
|
abstract LatLng |
getVehicleLocation()
Current location of the vehicle, if available.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract String getRideId()
public abstract LatLng getVehicleLocation()
@Deprecated public abstract Long getEstimatedPickupTime()
RideLocation.getEstimatedPickupTimeSeconds()
instead
to avoid timezone differences issues.@Deprecated public abstract Long getEstimatedDropOffTime()
RideLocation.getEstimatedDropOffTimeSeconds()
instead
to avoid timezone differences issues.public abstract Integer getEstimatedPickupTimeSeconds()
null
if can't calculate.
If the passenger was already picked up, will return 0.
For example:
String pickupTime = "The driver will pick you up in: " + RideLocation.getEstimatedPickupTimeSeconds()
+ " seconds"
public abstract Integer getEstimatedDropOffTimeSeconds()
String dropoffTime = "The driver will arrive in: " + RideLocation.getEstimatedDropOffTimeSeconds()
+ " seconds"
public abstract Long getLastUpdateTime()