<?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 Re: Run Directions widget from my own Points in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114848#M75193</link>
    <description>&lt;P&gt;Hi Many thanks, Will try it&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 12:04:20 GMT</pubDate>
    <dc:creator>benchikh</dc:creator>
    <dc:date>2021-11-08T12:04:20Z</dc:date>
    <item>
      <title>Run Directions widget from my own Points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1113995#M75161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working with Directions widget under arcgis api js 3.38, and I want to start and run my directions from some points (lat, long) coming from my database.&lt;/P&gt;&lt;P&gt;so I need to pass the points to the directions widget and get the points rendered with route on the map.&lt;/P&gt;&lt;P&gt;Could you please help me with a sample or a code details that would be much appreciated.&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 11:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1113995#M75161</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-04T11:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Run Directions widget from my own Points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114087#M75163</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/529708"&gt;@benchikh&lt;/a&gt;, offhand, I don't think we have a sample that does this, but you could use the locationToAddress method on the Locator class to generate an address from each of the point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/locator-amd.html#locationtoaddress" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/locator-amd.html#locationtoaddress&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And then pass these to the Directions widget using the addStops method.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#addstops" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/directions-amd.html#addstops&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 15:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114087#M75163</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-11-04T15:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run Directions widget from my own Points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114103#M75165</link>
      <description>&lt;P&gt;Hi Many thanks for your feedback.&lt;/P&gt;&lt;P&gt;I did the below work, but I get just lat and lon coordinates on the source and destination inputs and did not got a label of the points &lt;EM&gt;" Looks like the locator did not work correctly!"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var adr = locator.addressesToLocations(new Point(-760817.9, 4031811, new SpatialReference({ wkid: 102100 })));&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;directionsW.addStop((adr, 100), 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;could you please help ?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 15:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114103#M75165</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-04T15:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Run Directions widget from my own Points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114509#M75181</link>
      <description>&lt;P&gt;You should try the&amp;nbsp;&lt;SPAN&gt;locationToAddress() method, not the addressesToLocations() method like in your code snippet above.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114509#M75181</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2021-11-05T15:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Run Directions widget from my own Points</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114848#M75193</link>
      <description>&lt;P&gt;Hi Many thanks, Will try it&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 12:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/run-directions-widget-from-my-own-points/m-p/1114848#M75193</guid>
      <dc:creator>benchikh</dc:creator>
      <dc:date>2021-11-08T12:04:20Z</dc:date>
    </item>
  </channel>
</rss>

