TomTom Maps for JavaScript
    Preparing search index...

    Type Alias LegSummary

    LegSummary: SummaryWithConsumption & {
        chargingInformationAtEndOfLeg?: ChargingStop;
    }

    Summary information for a single route leg.

    A leg is the portion of the route between two consecutive waypoints.

    Type Declaration

    • OptionalchargingInformationAtEndOfLeg?: ChargingStop

      Charging information at the end of this leg.

      Present only if this leg ends at a charging stop, indicating the vehicle will charge at this waypoint before continuing to the next leg.

      Contains details about:

      • Charging park location and facilities
      • Required charging time
      • Target charge level after charging
      chargingInformationAtEndOfLeg: {
      chargingParkId: 'park-123',
      chargingTimeInSeconds: 1200, // 20 minutes
      targetChargeInkWh: 80,
      targetChargeInPCT: 80
      }
    • An A→B route has 1 leg
    • An A→B→C route has 2 legs (A→B, B→C)
    • Circle waypoints don't create new legs