We’ve added the optional requested_capabilities parameter to Optimize Route1
and Submit a route optimization2. Pass the capabilities3 of the
vehicle that will drive the route — the same object Estimate route time of arrival and distance4 already
takes — and the stop order, distance and duration are calculated for that vehicle.
When it is left out, or does not select a vehicle, the vehicle is still derived from the stops being optimized. Invalid capabilities3 are rejected with a validation error.