-
- 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 classTravelEstimation.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integerdistanceprivate final Longtimeprivate final IntegertrafficDelayprivate final DoubleenergyConsumptionprivate final StringarrivalTimeprivate final TimeZoneInfotimeZoneInfo
-
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 IntegergetDistance()final LonggetTime()final IntegergetTrafficDelay()final DoublegetEnergyConsumption()final StringgetArrivalTime()final TimeZoneInfogetTimeZoneInfo()IntegerdescribeContents()UnitwriteToParcel(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)
-
-
-
-