I am finding a limit of 7 stops when setting findBestSequence to true, when using Routetask in a simple javascript routing application. Has any one else run into this? Is this a permanent limitation, or just on the free version of the ArcGIS online? I seem to be able to route more than 7 points if the parameter is false.
The solution had nothing to do with findbestSequence. Rather it was the size of the request. Since it was a tricky I am posting the answer here. The problem was the samples use an ESRI proxy. You need a proxy because the request can get bigger than 2048 characters. The following is the line.
Which is why it stopped working at 7 stops. The request was just bigger than 2048 and was getting cut off. Since there were no error messages, it was tough to diagnose.
There is information on how to setup a proxy page on this link
However, if you install the php version, you will need cURL. The instructions that come up if cURL is not installed are for windows. They will not work for Linux and Apache. Use the instructions from the following link
I'm not all that familiar with our routing functionality but what's the specific error you're seeing? Can you post a simple test page that shows the problem?
The sample works exactly the same, of course it resequences the stops, but after 7 stops, it does not function. No errors are generated. At least none that show up.
The solution had nothing to do with findbestSequence. Rather it was the size of the request. Since it was a tricky I am posting the answer here. The problem was the samples use an ESRI proxy. You need a proxy because the request can get bigger than 2048 characters. The following is the line.
Which is why it stopped working at 7 stops. The request was just bigger than 2048 and was getting cut off. Since there were no error messages, it was tough to diagnose.
There is information on how to setup a proxy page on this link
However, if you install the php version, you will need cURL. The instructions that come up if cURL is not installed are for windows. They will not work for Linux and Apache. Use the instructions from the following link