Too many vehicles error

Hi,

I am trying the ApiPlayground for optimization and added two more vehicles to the vehicles field instead of 2 in the example and I get error 413 "Too many vehicles ( 4 ) in query, maximum is set to 3".

Why Am I getting this error and how can I overcome this?

Original request https://openrouteservice.org/dev/#/api-docs/optimization/post
My updated request

  curl -X POST \
  'https://api.openrouteservice.org/optimization' \
  -H 'Content-Type: application/json; charset=utf-8' \
  -H 'Accept: application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8' \
  -H 'Authorization: <your-api-key>' \
  -d '{"jobs":[{"id":1,"service":300,"amount":[1],"location":[1.98935,48.701],"skills":[1],"time_windows":[[32400,36000]]},{"id":2,"service":300,"amount":[1],"location":[2.03655,48.61128],"skills":[1]},{"id":3,"service":300,"amount":[1],"location":[2.39719,49.07611],"skills":[2]},{"id":4,"service":300,"amount":[1],"location":[2.41808,49.22619],"skills":[2]},{"id":5,"service":300,"amount":[1],"location":[2.28325,48.5958],"skills":[14]},{"id":6,"service":300,"amount":[1],"location":[2.89357,48.90736],"skills":[14]}],"vehicles":[{"id":1,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[1,14],"time_window":[28800,43200]},{"id":2,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[2,14],"time_window":[28800,43200]},{"id":3,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[1,14],"time_window":[28800,43200]},{"id":4,"profile":"driving-car","start":[2.35044,48.71764],"end":[2.35044,48.71764],"capacity":[4],"skills":[1,14],"time_window":[28800,43200]}]}'

Hi, Have you found any solution for this? Even I am getting this error for more than 3 vehicles.

Hi,

in order to control the resource consumption of our services the following API restrictions are in place
https://openrouteservice.org/restrictions/

Best regards

Hello, could you please point towards the indicated configuration file to change to set up our own server instance in order to implement with more than 3 vehicles?

Hey,

you’d need your own instance of VROOM and ors for that.
Search in the forum along the lines of “own vroom instance” as there should be quite a few topics on that.

Best regards

1 Like