Make request to “v2/tour” endpoint
with body:
{“locations”:[{“name”:“00c3c753-52c6-4bed-ab9a-0aacb6879d04”,“lat”:“50.4049728”,“lng”:“30.6115912”,“servicetime”:5,“restrictions”:{“demand”:0}},{“name”:“0”,“lat”:“50.4377164”,“lng”:“30.4996084”,“servicetime”:0,“restrictions”:{“ready”:0,“due”:500,“demand”:0}},{“name”:“1”,“lat”:“49.839683”,“lng”:“24.029717”,“servicetime”:0,“restrictions”:{“ready”:0,“due”:500,“demand”:0}}],“parameters[type]”:“car”,“parameters[rounds]”:2,“parameters[balance]”:0,“parameters[endAtMostDistantLocation]”:false}
And get response with
- Remarks - “Infeasible: round 1 is too long”
- Point 2 without name
Full response:
{“id”:“jV6Tl1ZjC25jj0FIZybj”,“remarks”:“Infeasible: round 1 is too long”,“count”:3,“feasible”:false,“route”:{“0”:{“name”:“00c3c753-52c6-4bed-ab9a-0aacb6879d04”,“arrival”:0,“distance”:0.0},“1”:{“name”:null,“arrival”:17,“distance”:12.7},“2”:{“name”:“00c3c753-52c6-4bed-ab9a-0aacb6879d04”,“arrival”:34,“distance”:24.4},“3”:{“name”:“1”,“arrival”:435,“distance”:573.5},“4”:{“name”:“00c3c753-52c6-4bed-ab9a-0aacb6879d04”,“arrival”:870,“distance”:1120.8}}}
if change due time to less than 500 - works fine.
Questions:
- How I can use “Due” parameter more than 500?
- Is it some limit on Due parameter?