<?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 Get routing direction in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-routing-direction/m-p/1190217#M77862</link>
    <description>&lt;P&gt;How do I display routing directions on the map without clicking the mapView&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have the routing coordinates in my code which are dynamic&lt;/P&gt;&lt;P&gt;I just want to display it on the map without clicking the map&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2022 01:29:31 GMT</pubDate>
    <dc:creator>ElohoKennedy</dc:creator>
    <dc:date>2022-07-07T01:29:31Z</dc:date>
    <item>
      <title>Get routing direction</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-routing-direction/m-p/1190217#M77862</link>
      <description>&lt;P&gt;How do I display routing directions on the map without clicking the mapView&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already have the routing coordinates in my code which are dynamic&lt;/P&gt;&lt;P&gt;I just want to display it on the map without clicking the map&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 01:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-routing-direction/m-p/1190217#M77862</guid>
      <dc:creator>ElohoKennedy</dc:creator>
      <dc:date>2022-07-07T01:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get routing direction</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-routing-direction/m-p/1190357#M77866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/600782"&gt;@ElohoKennedy&lt;/a&gt;,&amp;nbsp;you have two options: RouteLayer and Directions widget, or just the RouteLayer.&lt;/P&gt;&lt;P&gt;You can dynamically update the Directions widget with programmatically created RouteLayers. Here's a blog and a demo covering this functionality. Routing directions are displayed inside the Directions widget:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/changing-directions/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/changing-directions/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://noashx.github.io/blog/ChangingDirections.html" target="_blank"&gt;https://noashx.github.io/blog/ChangingDirections.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You could also just use the RouteLayer, and then handle the display of the directions yourself.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-routelayer" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=layers-routelayer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;To display the directions, you'll want to work with the results of RouteLayer.solve():&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#solve" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#solve&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-RouteLayer.html#RouteLayerSolveResult&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-RouteInfo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 14:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-routing-direction/m-p/1190357#M77866</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2022-07-07T14:06:58Z</dc:date>
    </item>
  </channel>
</rss>

