VehicleProfile for planTours (xTour 2)
Posted: Tue Apr 09, 2019 12:00 pm
Hi,
I recently tested out the xTour 2 API and I have not been able to find a way to set the VehicleProfile successfully. It does not affect the result when I change the VehicleProfile in the RequestBase.RequestProfile of the PlanToursRequest. When I do the same thing with the xRoute 2 API it does take effect.
Also it might be required for us to set different VehicleProfiles for each set of Vehicles of the Fleet. With that I mean things like maximumSpeed etc... that are avaiable in VehicleProfile and not the Touring specific attributes to set in the Vehicle class (like maximumQuantityScenarios).
Another question is why the results of travelTime and distance of a xRoute 2 request are any different from the result of a very simple PlanToursRequest (xTour 2)(with same start and end points of course (even same times))(without startLocation of the Vehicle so that the start point is the first location) with 1 vehicle and 1 pickupanddelivery order. Shouldn't in this case the travelTime and distance be equal to the result of the xRoute 2 result. Am I missing something? Are the effecive Vehicle-calculation-properties used in xTour and xRoute not the same (and how to change them effectively in xTour 2 as above...)(Thats how I did come to my primary question above)?
Thanks in advance !
I recently tested out the xTour 2 API and I have not been able to find a way to set the VehicleProfile successfully. It does not affect the result when I change the VehicleProfile in the RequestBase.RequestProfile of the PlanToursRequest. When I do the same thing with the xRoute 2 API it does take effect.
Also it might be required for us to set different VehicleProfiles for each set of Vehicles of the Fleet. With that I mean things like maximumSpeed etc... that are avaiable in VehicleProfile and not the Touring specific attributes to set in the Vehicle class (like maximumQuantityScenarios).
Another question is why the results of travelTime and distance of a xRoute 2 request are any different from the result of a very simple PlanToursRequest (xTour 2)(with same start and end points of course (even same times))(without startLocation of the Vehicle so that the start point is the first location) with 1 vehicle and 1 pickupanddelivery order. Shouldn't in this case the travelTime and distance be equal to the result of the xRoute 2 result. Am I missing something? Are the effecive Vehicle-calculation-properties used in xTour and xRoute not the same (and how to change them effectively in xTour 2 as above...)(Thats how I did come to my primary question above)?
Thanks in advance !