ESRI Route Service for Locate Widget

5629
28
03-04-2013 06:27 AM
MichaelVolz
Esteemed Contributor
To All FlexViewer Users and Developers:

By default from the Locate Widget download, I am using the follower routing service:

<routetasksolver>http://tasks.arcgisonline.com/ArcGIS/rest/services/NetworkAnalysis/ESRI_Route_NA/NAServer/Route</routetasksolver>

According to the following url:

http://www.arcgis.com/home/item.html?id=4078fece745140d7af17bf74b5f300fd

The above routing service is on extended support and I should use the newer World Route service instead

http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer

but when I try to access this URL or just http://route.arcgis.com/arcgis/rest/services

I get Error: Services Directory has been disabled Code:403

Does anyone know the proper URL to access this newer routing service?

Any help or hints are greatly appreciated.  Thank you.
Tags (2)
0 Kudos
28 Replies
RobertScheitlin__GISP
MVP Emeritus
Michael,

   The http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer url is fine, but you will not be able to see the rest service directory for this page by just typing it into a browser as the service directory has been disabled. It will still work in your widget though.
0 Kudos
BjornSvensson
Esri Regular Contributor
FYI - The documentation for the ArcGIS Online Network Analysis Services is available at http://route.arcgis.com/, while the documentation for the ArcGIS Online Geocoding Service is at http://geocode.arcgis.com/.
0 Kudos
MichaelVolz
Esteemed Contributor
I incorrectly posted this as the Locate Widget when I should have referred to it as the Route Widget, which both of you understood.  Sorry about that.

This is the first line in my modified RouteWidget.xml file.

<routetasksolver>http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route</routetasksolver>

When I use this URL in the route widget, I get a sign in screen which I populate with my AGOL for Organizations account.

Unfortunately, I get the error 9004$LAYER_NOT_EXIST. Clear and start again or add another valid stop.

If I click the reset button and add 2 more points, I still get the same error message.

Robert:

Can you try using this URL in a test flexviewer app that has the route widget in it to see if you get the same results?

Any help or hints are greatly appreciated.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   When I get a chance I will test against this new service but in the mean time just use the one that comes default in the widget.
0 Kudos
MichaelVolz
Esteemed Contributor
Will do Robert.

I was just looking to get a route service that might have had more up-to-date data as I know of places where the road alignment has changed in the past couple of years and these are not included in the default route service data.
0 Kudos
MichaelVolz
Esteemed Contributor
Robert:

Could it be that this is a secured service, as it requires AGOL for Organization credentials, and both the OOTB and your modified Route Widgets do not support the use of a secured service as the widgets are currently coded?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   That seems to be the case using the old URL did not require authentication and the new one does. As I do not have an AGOL account I am now unable to test/develop using the new url, so I guess this widget will become obsolete.
0 Kudos
BjornSvensson
Esri Regular Contributor
Could it be that this is a secured service, as it requires AGOL for Organization credentials, and both the OOTB ... Route Widgets


I'm not sure what you mean with the OOTB Route Widget?

This isn't released yet... but in version 3.2 we will add a new Directions (as in driving directions) Widget for this purpose.
0 Kudos
MichaelVolz
Esteemed Contributor
Thanks Robert.

Does anyone know where I would change the uncompiled code on the Route Widget to allow the use of secured services?
0 Kudos