In the case of a POST tour request, it is my understanding that each location in the result is supposed to get an arrival time relative to the departure location of the route.
Using the V2 API however it seems that when a stop in the middle of the route has the exact same coordinates as the departure and arrival locations, the arrival time can be somehow less than the previous and subsequent location in the route. If the coordinates are slightly different this doesn’t happen. It also doesn’t happen in the V1 API.
V2 Post tour request:
[{“address”:“EF6A15D9-2130-4CFC-A2AF-E4CB0151E534”,“lat”:“50.9756106”,“lng”:“3.0841914”,“servicetime”:0},{“address”:“1E85FA93-F47E-49E3-AB22-3DB917A7D272”,“lat”:“50.5986684”,“lng”:“5.5116751”,“servicetime”:0},{“address”:“0B2C9862-E1E2-4973-AC7C-B73672A1A273”,“lat”:“50.598208”,“lng”:“5.511173”,“servicetime”:0},{“address”:“137125”,“lat”:“50.9756106”,“lng”:“3.0841914”,“servicetime”:0},{“address”:“30D86C72-4240-4E26-A932-CA196C1AF30C”,“lat”:“51.2154694”,“lng”:“2.8859405”,“servicetime”:0},{“address”:“3A36D348-6451-4ECA-B655-C08ADB0014E2”,“lat”:“50.9756106”,“lng”:“3.0841914”,“servicetime”:0}]
skipOptimisation: 1
parameters[type]: smalltruck
parameters[speed]: 85
V2 Post tour response:
{
“id”: “HRGhIOlFyIodTsK8840v”,
“count”: 6,
“feasible”: true,
“remarks”: “”,
“route”: {
“0”: {
“name”: “EF6A15D9-2130-4CFC-A2AF-E4CB0151E534”,
“lat”: “50.9756106”,
“lng”: “3.0841914”,
“arrival”: 0,
“distance”: 0
},
“1”: {
“name”: “1E85FA93-F47E-49E3-AB22-3DB917A7D272”,
“lat”: “50.5986684”,
“lng”: “5.5116751”,
“arrival”: 152,
“distance”: 204.7
},
“2”: {
“name”: “0B2C9862-E1E2-4973-AC7C-B73672A1A273”,
“lat”: “50.598208”,
“lng”: “5.511173”,
“arrival”: 152,
“distance”: 204.8
},
“3”: {
“name”: “137125”,
“lat”: “50.9756106”,
“lng”: “3.0841914”,
“arrival”: 300,
“distance”: 407.3
},
“4”: {
“name”: “30D86C72-4240-4E26-A932-CA196C1AF30C”,
“lat”: “51.2154694”,
“lng”: “2.8859405”,
“arrival”: 43,
“distance”: 463.1
},
“5”: {
“name”: “3A36D348-6451-4ECA-B655-C08ADB0014E2”,
“lat”: “50.9756106”,
“lng”: “3.0841914”,
“arrival”: 83,
“distance”: 516.4
}
}
}