Select to view content in your preferred language

New direction widget in 3.4

515
2
03-25-2013 01:19 PM
BrettGreenfield__DNR_
Occasional Contributor II
The new direction widget looks fantastic - I love how easy it is to code!  There doesn't seem to be a page in the API reference for this widget yet so I wasn't able to research more into it, though.  Is there a way to automatically populate the ending address?  I have a map with several sites on it and I'd like to allow users to click on a site, click a link to get directions, and have the address (which would be saved into a field in the layer) automatically show up as the ending address.  Is this possible?
0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
Looks like there was a glitch when publishing the help and the link to the directions api reference info wasn't added to the table of contents. Until we resolve the issue you can access the document using this link:

http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/directions.html

Note that there is a stops constructor option and an addStop method that can be used to populate the start and/or end locations.
0 Kudos
BrettGreenfield__DNR_
Occasional Contributor II
Great.  Thanks Kelly!
0 Kudos