AnsweredAssumed Answered

Facility Input for Closest Facility Analysis

Question asked by askewwa on Dec 14, 2013
Latest reply on Jul 23, 2014 by Diomedes275
I am new to ArcGIS for JavaScript and am having trouble performing a closest facility analysis.  I have a feature layer from a REST feature service that I would like to be the facility layer input.  The sample that my code is based on is located here:  https://developers.arcgis.com/en/javascript/jssamples/routetask_closest_facility.html.  This sample uses manually input lat/long info to draw graphics, which is then converted to a feature set.   What is the best way that I should go about obtaining a  feature set from my feature layer?  I have tried multiple methods but all have failed.  Thanks in advance.

Outcomes