How can the "rounds" setting be used in the 'tours' endpoint?


#1

On the main page I can go to “Options” and select a value for ‘rounds’, which seems to split my route up in multiple smaller, I guess, “rounds”? :stuck_out_tongue: How can I set a value for the “rounds” parameter in the API when making a call to the “tours” endpoint?


#2

The current API does not support rounds, but our next API v2 does.

See: https://www.routexl.com/blog/routexl-api-v2/


#3

@RouteXL how exactly do you use the parameters array? There’s no example for it.

When I send the following string as data in my post request it seems to ignore the ‘rounds’ in the parameter object:

parameters={"type": "car", "rounds": 3}&locations=[...]

#4

The parameters should not be JSON encoded. Try this:

parameters[type]=car&parameters[rounds]=3&locations=[...]