Select to view content in your preferred language

Adding routing to web application

1345
5
03-08-2012 08:43 AM
JarrettSpurgeon
Deactivated User
Hi,
I have created an application and want to add the routing service to the application.  I don't have ArcGIS server is this possible?  If so how do i do it?
Tags (2)
0 Kudos
5 Replies
MikeMinami
Esri Notable Contributor
0 Kudos
JarrettSpurgeon
Deactivated User
I can't add the layer to the map it keeps giving me an error.  What I�??m trying to do is, have others using my app use their current location, then select a feature on my map and get directions to the feature from their current location.  Is this possible with ArcGIS online?  If so is there something wrong with the link?  How would I go about making this happen?

Thanks for your help.
0 Kudos
MikeMinami
Esri Notable Contributor
This is not a layer you can add to a web map. They are services you could use to write your own applications.

Thanks,

Mike
0 Kudos
JarrettSpurgeon
Deactivated User
I see they are not layers, but services.  How do I go about doing this do I copy some code I have read all there is to read about this service and there is not real definitive way to add this service to an app I have already created.  There also are no instructions how to add this service to a web app. that I could find.

http://www.arcgis.com/apps/OnePane/basicviewer/index.html?appid=3dfe5cc2ec4142e287b41613309a5bfd

This is the URL to the web app that I want to add the services to

And this is the link to the web app that created the web app.

http://bit.ly/GEcRwC

How would I add the service to one or both of these?

Thanks    
Thanks  
�??
0 Kudos
MikeMinami
Esri Notable Contributor
If you want to modify the templates, you'll need to download the template, modify it by writing your own JavaScript code, then host it on your own web server.  There is no way to customize a template that is 'published' to ArcGIS Online.

Here's a link to the JavaScript API. There are lots of code samples, some of which illustrate geocoding.

http://help.arcgis.com/en/webapi/javascript/arcgis/index.html

I'd also suggest looking at the JavaScript API forum. This is the best forum to use for API questions (developers don't really monitor the ArcGIS Online forum).

http://forums.arcgis.com/forums/15-ArcGIS-API-for-JavaScript

Hope this helps,

Mike
0 Kudos