OptionalchargingInformationAtEndOfLeg?: ChargingStopCharging 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.
OptionalstopTimeInSeconds?: numberTime in seconds the vehicle stands still at the stop this leg arrives at.
One number for the whole stop, whatever it is spent on — a
WaypointProps.pauseDurationSeconds the caller asked for, charging the routing service
planned on an EV route, or both at one stop. It is what the service actually planned rather
than an echo of the request: the gap between this leg's arrivalTime and the next leg's
departureTime.
For the breakdown, LegSummary.chargingInformationAtEndOfLeg carries the charging part; whatever is left is waiting.
travelTimeInSeconds is driving only and excludes the stop, while the
route's total includes every stop. So driving time is the sum of the legs, and the time
spent standing still is the difference.
Summary information for a single route leg.
A leg is the portion of the route between two consecutive waypoints.