<?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: Get distance from source to destination via way-points in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248131#M2486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Jay,&amp;nbsp;gave wrong request. Updated the question with correct(4 stops) request payload.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the stop points are getting increased, the&amp;nbsp;&lt;STRONG style="color: #ff0000; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Total_Kilometers&lt;/STRONG&gt;&amp;nbsp;is also getting increased. Actual distance b/w source and destination is 33 KM. If I just give source and destination, I am getting correct result, 33 KM. If I add 4 stops(2 interim, 1 source, 1 destination), KM is getting increased to 83, If add 2 more stops, its getting increased to 126 KM. I don't know hot to get only 33 KM even if I add&amp;nbsp;interim points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2017 05:51:41 GMT</pubDate>
    <dc:creator>PrakashMani</dc:creator>
    <dc:date>2017-10-31T05:51:41Z</dc:date>
    <item>
      <title>Get distance from source to destination via way-points</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248129#M2484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using asynchronous &lt;A href="https://resources.arcgis.com/en/help/arcgis-rest-api/#/Route_service_with_asynchronous_execution/02r300000275000000/"&gt;routing service&lt;/A&gt; to find the distance between source and destination via way-points. When I give way-points, I am getting different value in the &lt;SPAN&gt;Total_Kilometers(83)&amp;nbsp;&lt;/SPAN&gt;field but the &lt;EM&gt;actual distance is only 33 KM&lt;/EM&gt;.&amp;nbsp;Can someone please tell to get the actual distance from source to destination via way-points?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "type": "features",&lt;BR /&gt; "LocationType": "1",&lt;BR /&gt; "features": [{&lt;BR /&gt; "geometry": {&lt;BR /&gt; "x": 80.1604766845703,&lt;BR /&gt; "y": 13.0624952316284&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "geometry": {&lt;BR /&gt; "x": 80.1640701293945,&lt;BR /&gt; "y": 13.1163520812988&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "geometry": {&lt;BR /&gt; "x": 80.2768020629883,&lt;BR /&gt; "y": 13.218768119812&lt;BR /&gt; }&lt;BR /&gt; },&lt;BR /&gt; {&lt;BR /&gt; "geometry": {&lt;BR /&gt; "x": 80.0792617797852,&lt;BR /&gt; "y": 12.8535680770874&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "paramName": "Output_Routes",&lt;BR /&gt; "dataType": "GPFeatureRecordSetLayer",&lt;BR /&gt; "value": {&lt;BR /&gt; "displayFieldName": "",&lt;BR /&gt; "geometryType": "esriGeometryPolyline",&lt;BR /&gt; "spatialReference": {&lt;BR /&gt; "wkid": 4326,&lt;BR /&gt; "latestWkid": 4326&lt;BR /&gt; }&lt;BR /&gt; ...&lt;BR /&gt; ...&lt;BR /&gt; "features": [{&lt;BR /&gt; "attributes": {&lt;BR /&gt; "OID": 1,&lt;BR /&gt; "Name": "Location 1 - Location 4",&lt;BR /&gt; "StopCount": 4,&lt;BR /&gt; "Total_Minutes": 124.55307562869066,&lt;BR /&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;"Total_Kilometers": 83.201435897857806,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt; "FirstStopOID": 1,&lt;BR /&gt; "LastStopOID": 4,&lt;BR /&gt; "Total_Miles": 51.698979999999999,&lt;BR /&gt; "Shape_Length": 0.75629657258452343&lt;BR /&gt; },&lt;BR /&gt; ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 14:46:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248129#M2484</guid>
      <dc:creator>PrakashMani</dc:creator>
      <dc:date>2017-10-30T14:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get distance from source to destination via way-points</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248130#M2485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should check your inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are sending in three points but the output response says four stops:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Name": "Location 1 - Location 4",&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;"StopCount": 4,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So there could be an extra "stop" being sent that is causing the path to be longer.&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 16:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248130#M2485</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2017-10-30T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Get distance from source to destination via way-points</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248131#M2486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Jay,&amp;nbsp;gave wrong request. Updated the question with correct(4 stops) request payload.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the stop points are getting increased, the&amp;nbsp;&lt;STRONG style="color: #ff0000; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;Total_Kilometers&lt;/STRONG&gt;&amp;nbsp;is also getting increased. Actual distance b/w source and destination is 33 KM. If I just give source and destination, I am getting correct result, 33 KM. If I add 4 stops(2 interim, 1 source, 1 destination), KM is getting increased to 83, If add 2 more stops, its getting increased to 126 KM. I don't know hot to get only 33 KM even if I add&amp;nbsp;interim points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 05:51:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248131#M2486</guid>
      <dc:creator>PrakashMani</dc:creator>
      <dc:date>2017-10-31T05:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get distance from source to destination via way-points</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248132#M2487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The route solver will solve a path through the stops in the order you give them in. So If you solve a path with the coordinates you provided, you get a path that is 83 KM. See the order in the screen shot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381927_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2017 16:21:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/get-distance-from-source-to-destination-via-way/m-p/248132#M2487</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2017-10-31T16:21:04Z</dc:date>
    </item>
  </channel>
</rss>

