SummaryEV
@available(*, message: "TT_API_PUBLIC_PREVIEW('byTheEndOf=2020.12', 'This is under Public Preview and subject to change until the end date. More information is available at: https://developer.tomtom.com/public-preview'﹚")
@objc
public class SummaryEV : NSObject
Public Preview
This is under Public Preview and subject to change by the end of 2020.12.
More information is available at: https://developer.tomtom.com/public-preview
Represents a summary of a route.
-
The route or leg length in meters.
Declaration
Swift
@objc public let lengthInMetersValue: Int -
The estimated travel time in seconds. Note that even when traffic=false travelTimeInSeconds still includes the delay due to traffic.
Declaration
Swift
@objc public let travelTimeInSecondsValue: TimeInterval -
Traffic delay is the difference between the travel time calculated using all available traffic information and travel time calculated without the influence of current and historic traffic data.
Declaration
Swift
@objc public let trafficDelayInSecondsValue: TimeInterval -
The estimated departure time for the route or leg. Specified as a dateTime.
Declaration
Swift
@objc public let departureTime: Date? -
The estimated arrival time for the route or leg. Specified as a dateTime.
Declaration
Swift
@objc public let arrivalTime: Date? -
Estimated electric energy consumption in kilowatt hours (kWh). Optional value. Returns -1 if unknown.
Declaration
Swift
@objc public let batteryConsumptionInkWhValue: Double -
The estimated battery charge in kWh upon arrival at the end of the leg or the route. Returns -1 if unknown.
Declaration
Swift
@objc public let remainingChargeAtArrivalInkWh: Double
SummaryEV Class Reference