-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class TravelEstimation implements Parcelable
Contains estimations about the travel time, by taking into consideration the distance, time and time zone
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TravelEstimation.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integer
distance
private final Long
time
private final Integer
trafficDelay
private final Double
energyConsumption
private final String
arrivalTime
private final TimeZoneInfo
timeZoneInfo
-
Constructor Summary
Constructors Constructor Description TravelEstimation(Parcel source)
TravelEstimation(Integer distance, Long time, Integer trafficDelay, Double energyConsumption, String arrivalTime, TimeZoneInfo timeZoneInfo)
-
Method Summary
Modifier and Type Method Description final Integer
getDistance()
final Long
getTime()
final Integer
getTrafficDelay()
final Double
getEnergyConsumption()
final String
getArrivalTime()
final TimeZoneInfo
getTimeZoneInfo()
Integer
describeContents()
Unit
writeToParcel(Parcel dest, Integer flags)
-
-
Constructor Detail
-
TravelEstimation
TravelEstimation(Parcel source)
-
TravelEstimation
TravelEstimation(Integer distance, Long time, Integer trafficDelay, Double energyConsumption, String arrivalTime, TimeZoneInfo timeZoneInfo)
- Parameters:
distance
- distance to way point or destination.time
- time to way point or destination.trafficDelay
- traffic delay to way point or destination, in seconds.energyConsumption
- energy consumption to way point or destination, with the same unit as consumption in vehicle profile.arrivalTime
- readable string ofr arrival time based on destination time zone.timeZoneInfo
- waypoint or destination time zone
-
-
Method Detail
-
getDistance
final Integer getDistance()
-
getTrafficDelay
final Integer getTrafficDelay()
-
getEnergyConsumption
final Double getEnergyConsumption()
-
getArrivalTime
final String getArrivalTime()
-
getTimeZoneInfo
final TimeZoneInfo getTimeZoneInfo()
-
describeContents
Integer describeContents()
-
writeToParcel
Unit writeToParcel(Parcel dest, Integer flags)
-
-
-
-