sdk-routing / com.tomtom.online.sdk.routing.data.longDistanceEV.response / NativeLegSummary

NativeLegSummary

open class NativeLegSummary : NativeSummary, Serializable

Represents the summary of a route leg.

Constructors

<init>

NativeLegSummary()
NativeLegSummary(lengthInMeters: Int!, travelTime: Seconds!, trafficDelay: Seconds!, departureTime: String!, arrivalTime: String!, batteryConsumptionInkWh: Double!, remainingChargeAtArrivalInkWh: Double!, chargingInformationAtEndOfLeg: NativeChargingInformationAtEndOfLeg!)

Functions

getChargingInformationAtEndOfLeg

open fun getChargingInformationAtEndOfLeg(): Optional<NativeChargingInformationAtEndOfLeg!>!

Returns the details about the charging stop.

toString

open fun toString(): String

Inherited Functions

getArrivalTime

open fun getArrivalTime(): Optional<String!>!

The estimated arrival time.

getBatteryConsumptionInkWh

open fun getBatteryConsumptionInkWh(): Optional<Double!>!

The estimated electric energy consumption in kilowatt hours (kWh).

getDepartureTime

open fun getDepartureTime(): Optional<String!>!

The estimated departure time.

getLengthInMeters

open fun getLengthInMeters(): Optional<Int!>!

The route or leg length in meters.

getRemainingChargeAtArrivalInkWh

open fun getRemainingChargeAtArrivalInkWh(): Optional<Double!>!

The estimated battery charge in kWh upon arrival at the end of the leg or the route.

getTrafficDelay

open fun getTrafficDelay(): Optional<Seconds!>!

The delay in seconds compared to free-flow conditions according to real-time traffic information.

getTravelTime

open fun getTravelTime(): Optional<Seconds!>!

The estimated travel time in seconds.