waypoint V1 can invoke calculateTotalDistance to get the total distance of the mission and calculateTotalTime to get its total time.
There is no corresponding API for waypoint V2, but the estimated value can be obtained by calculation. The route length can be obtained by calculating the distance between waypoints and then adding them together. The estimated time can be obtained by dividing the waypoint distance by the aircraft speed. Because the aircraft has the process of accelerating and decelerating and performing waypoint maneuvers, this estimated time may have a large deviation and can only be used as a reference.