sdk-routing / com.tomtom.online.sdk.routing.data / Summary

Summary

open class Summary : Serializable

The route summary. It contains basic information about the route, e.g., length, travel time, etc.

Constructors

<init>

Summary()

The route summary. It contains basic information about the route, e.g., length, travel time, etc.

Properties

arrivalTime

var arrivalTime: String!

Raw string representation of arrival time with timezone.

batteryConsumptionInkWh

var batteryConsumptionInkWh: Float

The Estimated electric energy consumption in kilowatt hours (kWh). Valid for the electric engine type.

departureTime

var departureTime: String!

deviationDistance

var deviationDistance: Int

The distance (in meters) from the origin point to the first point where this route forks off from the reference route.

deviationPoint

var deviationPoint: LatLng!

The coordinates of the first point following the origin point of the calculateRoute request where this route forks off from the reference route.

deviationTime

var deviationTime: Int

The travel time (in seconds) from the origin point to the first point where this route forks off from the reference route.

fuelConsumptionInLiters

var fuelConsumptionInLiters: Float

The Estimated fuel consumption in liters. Valid for the combustion engine type.

historicTrafficTravelTimeInSeconds

var historicTrafficTravelTimeInSeconds: Int

The estimated travel time in seconds calculated using time-dependent historic traffic data. Included if requested using the computeTravelTimeFor parameter.

lengthInMeters

var lengthInMeters: Int

The route or leg length in meters.

liveTrafficIncidentsTravelTimeInSeconds

var liveTrafficIncidentsTravelTimeInSeconds: Int

The estimated travel time in seconds calculated using real-time speed data. Included if requested using the computeTravelTimeFor parameter.

noTrafficTravelTimeInSeconds

var noTrafficTravelTimeInSeconds: Int

The estimated travel time in seconds calculated as if there are no delays on the route due to traffic conditions (e.g., congestion). Included if requested using the computeTravelTimeFor parameter.

trafficDelayInSeconds

var trafficDelayInSeconds: Int

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.

travelTimeInSeconds

var travelTimeInSeconds: Int

The estimated travel time in seconds. Note that even when traffic=false, travelTimeInSeconds still includes the delay due to traffic.

Functions

getArrivalTimeWithZone

open fun getArrivalTimeWithZone(): DateTime?

The estimated arrival time for the route or leg. Specified as a dateTime. Returns null if not available. Information with timezone.

getDepartureTimeWithZone

open fun getDepartureTimeWithZone(): DateTime?

The estimated departure time for the route or leg. Specified as a dateTime. Returns null if not available. Information with timezone.

getRawArrivalTime

open fun getRawArrivalTime(): String!

getRawDepartureTime

open fun getRawDepartureTime(): String!