← API Index


TourPlan (v4)

Optimised order of the stops of a tour, with the metres and minutes of the sequence as given for comparison

Change Note: opt=no calculates the given sequence without optimising (status CALCULATED); before_* fields carry the given sequence's metres and hours next to the optimised plan

# Field Type Description
0 status string OPTIMIZED, or CALCULATED when the sequence was taken as given (opt=no)
1 optimized int[] the address or customer ids in the order to drive them; the first is where the tour starts (-1: the shop location)
2 distance double length of the whole tour in km
3 drivingtime double driving time of the whole tour in hours
4 traveltime double driving time plus time spent at the stops, in hours
5 legs_m int[] metres driven to reach each stop of optimized from the one before; 0 for the first
6 return_m int metres driven from the last stop back to the start on a round trip, otherwise 0
7 before_distance double length of the tour in km when driven in the sequence as given; -1 when not calculated
8 before_drivingtime double driving time in hours in the sequence as given; -1 when not calculated
9 before_legs_m int[] metres driven to reach each stop in the sequence as given; empty when not calculated
10 before_return_m int metres from the last stop back to the start in the sequence as given, 0 if not a round trip or not calculated

Used in endpoints

Other versions