I am currently working on a request using the HereMap Calculate Route API. Waypoint 0 does not have any stopOver time, but waypoints 1 and 2 do have stopOver times. Below is an example of the request:
https://route.ls.hereapi.com/routing/7.2/calculateroute.json?xnlp=CL_JSMv3.1.18.1&apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&mode=fastest;truck;traffic:enabled&truckType=truck&representation=display&routeattributes=summary,shape,legs&legAttributes=travelTime,trafficTime&height=14&limitedWeight=7.25&trailersCount=0&alternatives=0&waypoint0=geo!41.978130,-88.232100&departure=2020-08-17T06%3A00%3A00%2B5&waypoint1=geo!stopOver,2880!41.91621,-87.99025;;03558029&waypoint2=geo!stopOver,3120!41.91621,-87.99025;;03559825&waypoint3=geo!stopOver,840!41.721474,-87.679846;;03561582&waypoint4=geo!stopOver,780!41.719577,-87.793070;;03561720&waypoint5=geo!stopOver,1800!41.690945,-87.741590;;03561712&waypoint6=geo!stopOver,1320!41.691,-87.74274;;03561312&waypoint7=geo!stopOver,780!41.839228,-88.000...
As waypoint 1 has a stopOver of 48 minutes, when I receive the response from the Calculate Route call, leg0 of the route includes the travel time along with the stop over time for waypoint1.
{travelTime: 6184, maneuver: Array(13), trafficTime: 6184}
The 6184 seconds indicated represent 55 minutes of travel time plus the 48 minutes of stop over time. In this case, it is unexpected to have stop over time included in the first leg since the truck is not stopping until waypoint1. The API documentation does not provide much information about how stopOver works. Why, in my scenario, is stopOver time included in the first leg of the route?