<?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 Facility Input for Closest Facility Analysis in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facility-input-for-closest-facility-analysis/m-p/179312#M16615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to ArcGIS for JavaScript and am having trouble performing a closest facility analysis.&amp;nbsp; I have a feature layer from a REST feature service that I would like to be the facility layer input.&amp;nbsp; The sample that my code is based on is located here:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/routetask_closest_facility.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jssamples/routetask_closest_facility.html&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; This sample uses manually input lat/long info to draw graphics, which is then converted to a feature set.&amp;nbsp;&amp;nbsp; What is the best way that I should go about obtaining a&amp;nbsp; feature set from my feature layer?&amp;nbsp; I have tried multiple methods but all have failed.&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Dec 2013 14:40:51 GMT</pubDate>
    <dc:creator>WesAskew</dc:creator>
    <dc:date>2013-12-14T14:40:51Z</dc:date>
    <item>
      <title>Facility Input for Closest Facility Analysis</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facility-input-for-closest-facility-analysis/m-p/179312#M16615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to ArcGIS for JavaScript and am having trouble performing a closest facility analysis.&amp;nbsp; I have a feature layer from a REST feature service that I would like to be the facility layer input.&amp;nbsp; The sample that my code is based on is located here:&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jssamples/routetask_closest_facility.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jssamples/routetask_closest_facility.html&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; This sample uses manually input lat/long info to draw graphics, which is then converted to a feature set.&amp;nbsp;&amp;nbsp; What is the best way that I should go about obtaining a&amp;nbsp; feature set from my feature layer?&amp;nbsp; I have tried multiple methods but all have failed.&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 14:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facility-input-for-closest-facility-analysis/m-p/179312#M16615</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2013-12-14T14:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Facility Input for Closest Facility Analysis</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facility-input-for-closest-facility-analysis/m-p/179313#M16616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have a feature layer from a REST feature service that I would like to be the facility layer input.&amp;nbsp; ...What is the best way that I should go about obtaining a&amp;nbsp; feature set from my feature layer?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The input can be either a FeatureSet OR a DataLayer, so you can point it straight to your feature service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the API Reference at &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/en/javascript/jsapi/closestfacilityparameters.html#facilities" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/en/javascript/jsapi/closestfacilityparameters.html#facilities&lt;/A&gt;&lt;SPAN&gt; for something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;//Requires ArcGIS Server 10.1 or greater params.facilities = new esri.tasks.DataFile({ &amp;nbsp; url: "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/MapServer/3/query?where=1%3D1&amp;amp;returnGeometry=true&amp;amp;outFields=*&amp;amp;f=json" });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Dec 2013 18:08:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facility-input-for-closest-facility-analysis/m-p/179313#M16616</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2013-12-15T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Facility Input for Closest Facility Analysis</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facility-input-for-closest-facility-analysis/m-p/179314#M16617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having the same problem as Wesley, where exactly does the substitution happen?&amp;nbsp; I tried it in several places without success.&amp;nbsp; Do I need to use a map service or a feature service?&amp;nbsp; I'm kind of at a loss of what a feature set is.&amp;nbsp; Main point is I don't want to write a list of all my facilities with their coordinates in the code, I would like to draw that from a data set such as a feature service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 07:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/facility-input-for-closest-facility-analysis/m-p/179314#M16617</guid>
      <dc:creator>JohnPapageorgiou</dc:creator>
      <dc:date>2014-07-23T07:21:44Z</dc:date>
    </item>
  </channel>
</rss>

