TomTom Maps for JavaScript
    Preparing search index...

    Type Alias RouteSummary

    RouteSummary: SummaryWithConsumption & { totalChargingTimeInSeconds?: number }

    Complete summary information for an entire route.

    Includes all journey statistics from origin to destination, including any intermediate charging stops for electric vehicles.

    Type Declaration

    • OptionaltotalChargingTimeInSeconds?: number

      Total time in seconds spent at all charging stops during the route.

      • Only present for electric vehicle routes with charging stops (LDEVR)
      • The route's travelTimeInSeconds includes this charging time
      • To get driving time only: travelTimeInSeconds - totalChargingTimeInSeconds
      // Route with 2 charging stops of 20 and 25 minutes
      totalChargingTimeInSeconds: 2700 // 45 minutes total