<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with World Routing Service. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278613#M25697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the error when you specify more than seven stops?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Honestly, you'll probably be able to get a faster answer by contacting tech support. Can you open a ticket with them?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Sep 2012 13:39:13 GMT</pubDate>
    <dc:creator>derekswingley1</dc:creator>
    <dc:date>2012-09-20T13:39:13Z</dc:date>
    <item>
      <title>Problem with World Routing Service.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278612#M25696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I posted this question earlier, where we seem to hit a limit on the number of stops in a routing request.&amp;nbsp; I was just trying out the following sample from the help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/routetask/routetask_multiple_stops.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/routetask/routetask_multiple_stops.html&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After 10 stops, it will not route anymore.&amp;nbsp; When I copy the sample to my server and try it, the limit is 7.&amp;nbsp; Which is odd.&amp;nbsp; Anyway after some digging, it turns out that the regular routing engine is limited to 10 stops.&amp;nbsp; I needed to get the world routing service which has a higher limit on the stops.&amp;nbsp; I think 25.&amp;nbsp; Anyway, its a paid service, which we purchased and followed the steps for getting a token.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then to test it out, in the same example above,&amp;nbsp; replaced the line &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; routeTask = new esri.tasks.RouteTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route" rel="nofollow" target="_blank"&gt;http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the following line, which is supposedly what we are to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; routeTask = new esri.tasks.RouteTask("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://premiumtasks.arcgisonline.com/server/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Long_Route?token=tLOWRfqQnYPzlRhSw6fXNJ7qAEGhCUYP4o22sgaNP64fkmjwzlbxxbezxnlApVPEqo88" rel="nofollow" target="_blank"&gt;http://premiumtasks.arcgisonline.com/server/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Long_Route?token=tLOWRfqQnYPzlRhSw6fXNJ7qAEGhCUYP4o22sgaNP64fkmjwzlbxxbezxnlApVPEqo88&lt;/A&gt;&lt;SPAN&gt;...........");&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only a part of the token is listed above.&amp;nbsp; However, we seem to have the same 7 stop limit.&amp;nbsp; When we don't include the token, we get an access denied error.&amp;nbsp; If the token is incorrect, we get an invalid token error.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, its appears that it is accepting the token when it is correct, just not performing anymore than 7 stops.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone else here knows anything about the world routing engine and how to get it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 13:08:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278612#M25696</guid>
      <dc:creator>FredHejazi</dc:creator>
      <dc:date>2012-09-20T13:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with World Routing Service.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278613#M25697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the error when you specify more than seven stops?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Honestly, you'll probably be able to get a faster answer by contacting tech support. Can you open a ticket with them?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 13:39:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278613#M25697</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-20T13:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with World Routing Service.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278614#M25698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was going to try this avenue first.&amp;nbsp; If not, I will try tech support next.&amp;nbsp; There is no error message at all.&amp;nbsp; That is the part that is puzzling.&amp;nbsp; It just seems to ignore the request once we hit 7.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 14:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278614#M25698</guid>
      <dc:creator>FredHejazi</dc:creator>
      <dc:date>2012-09-20T14:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with World Routing Service.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278615#M25699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post a simple test page that shows the problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 15:22:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278615#M25699</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-20T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with World Routing Service.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278616#M25700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did call tech support and they figured it out.&amp;nbsp; Since it was a tricky I am posting the answer here.&amp;nbsp; The problem was the samples use an ESRI proxy.&amp;nbsp; You need a proxy because the request can get bigger than 2048 characters.&amp;nbsp; The following is the line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.config.defaults.io.proxyUrl = "/arcgisserver/apis/javascript/proxy/proxy.ashx";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is why it stopped working at 7 stops.&amp;nbsp; The request was just bigger than 2048 and was getting cut off.&amp;nbsp; Since there were no error messages, it was tough to diagnose.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is information on how to setup a proxy page on this link &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if you install the php version, you will need cURL.&amp;nbsp; The instructions that come up if cURL is not installed are for windows.&amp;nbsp; They will not work for Linux and Apache.&amp;nbsp; Use the instructions from the following link&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://askubuntu.com/questions/9293/how-do-i-install-curl-in-php5" rel="nofollow" target="_blank"&gt;http://askubuntu.com/questions/9293/how-do-i-install-curl-in-php5&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 18:48:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278616#M25700</guid>
      <dc:creator>FredHejazi</dc:creator>
      <dc:date>2012-09-20T18:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with World Routing Service.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278617#M25701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad you got it figured out. I'm surprised you didn't see any errors. Usually, when requests are failing due to the URL being too large, you see this message in the browser's console:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;esri.config.defaults.io.proxyUrl is not set. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Along with several errors. Take a look at this sample on jsfiddle that tries to buffer a large polygon:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/xnWQC/"&gt;http://jsfiddle.net/xnWQC/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2012 19:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-world-routing-service/m-p/278617#M25701</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-09-20T19:17:07Z</dc:date>
    </item>
  </channel>
</rss>

