<?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: route.solve() - RouteEdges does not give expected output in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241686#M8145</link>
    <description>&lt;P&gt;When you use the Dissolve Tool, rather than using Min/Max statistics, try First and Last as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaySandhu_0-1671132471907.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58665i0D3CFFEB85EF67FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JaySandhu_0-1671132471907.png" alt="JaySandhu_0-1671132471907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Perhaps this will give you the expected results.&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 19:28:47 GMT</pubDate>
    <dc:creator>JaySandhu</dc:creator>
    <dc:date>2022-12-15T19:28:47Z</dc:date>
    <item>
      <title>route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1240992#M8128</link>
      <description>&lt;P&gt;RouteEdges do gives multiple entries for single SourceOID when solving route through route.solve().&lt;BR /&gt;Reference URL - &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/route.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/route.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;SourceOID &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;FromPosition &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;ToPosition&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;28760116&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0.210675&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;28760116&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0.210675&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0.672682&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;28760116&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0.672682&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expected Output:&lt;/STRONG&gt;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;SourceOID &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;FromPosition&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;ToPosition&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;28760116&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find attached sample route solve result "io.gdb.zip" for clear understanding and analysis.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 09:43:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1240992#M8128</guid>
      <dc:creator>ManishGohil</dc:creator>
      <dc:date>2022-12-14T09:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241185#M8129</link>
      <description>&lt;P&gt;The source features when made into a network dataset may get split into many features based on the connectivity policy to deal with other crossing roads. The route solve will return a single line for the route and then the Copy Traversed Source Features tool can return back the underlying edges. And in this case it will return back all the pieces of an original feature with the from/to positions. That is the expected result as that is what is contained in the network dataset.&lt;/P&gt;&lt;P&gt;You could run the Dissolve tool on the RouteEdges, dissolving on the SourceOID to return back one edge per SourceOID. You will probably want to uncheck the Return Multipart and check on the Unsplit Lines options when you use this tool.&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 17:25:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241185#M8129</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2022-12-14T17:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241418#M8136</link>
      <description>&lt;P&gt;Thank you for your quick response. We can't use the Dissolve tool as we are using the SMP network dataset and I am not seeing any property in the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/route.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/network-analyst/route.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 23:53:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241418#M8136</guid>
      <dc:creator>ManishGohil</dc:creator>
      <dc:date>2022-12-14T23:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241420#M8137</link>
      <description>&lt;P&gt;You run the dissolve tool on the output of the solve. Not on the input network dataset.&lt;/P&gt;&lt;P&gt;Where do you see the multiple SourceOIDs that make up the route? It is in the routeedges feature class in the data you uploaded. So that is what you dissolve.&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 23:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241420#M8137</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2022-12-14T23:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241424#M8138</link>
      <description>&lt;P&gt;The problem is I don't want to dissolve multiple segments/edges into one single segment/edge. Here, the problem we are facing is that a single edge/segment from the network dataset (for example&amp;nbsp;&lt;SPAN&gt;28760116 is a segment)&lt;/SPAN&gt; is split into multiple segments/edges (3 entries for a&amp;nbsp;&lt;SPAN&gt;28760116 segment).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We will try the dissolve tool and update you with the result.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 00:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241424#M8138</guid>
      <dc:creator>ManishGohil</dc:creator>
      <dc:date>2022-12-15T00:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241425#M8139</link>
      <description>&lt;P&gt;I guess I do not understand your issue.&lt;/P&gt;&lt;P&gt;Where are you seeing the split multiple segments. How are they being generated. What do you need to accomplish? Perhaps some more details may help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 00:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241425#M8139</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2022-12-15T00:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241613#M8142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1137"&gt;@JaySandhu&lt;/a&gt;&amp;nbsp; - Thank you for your quick response. I am attaching an Excel file to make it more clear.&lt;/P&gt;&lt;P&gt;One worksheet has 3 parts.&lt;/P&gt;&lt;P&gt;1) Tool output&lt;/P&gt;&lt;P&gt;2) Run the dissolve tool on the tool output&lt;/P&gt;&lt;P&gt;3) Expected output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you see the difference between 1 &amp;amp; 3, tool output(1) is returning unnecessarily breaking the single edge into multiple edges though the vehicle is going to travel the whole edge.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need these edges to implement some business functions and it's having performance issues so we are looking for an OOB solution to get the expected out (3).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ManishGohil_0-1671124289565.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58651i06B4BD8F469A9448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ManishGohil_0-1671124289565.png" alt="ManishGohil_0-1671124289565.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:16:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241613#M8142</guid>
      <dc:creator>ManishGohil</dc:creator>
      <dc:date>2022-12-15T17:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241686#M8145</link>
      <description>&lt;P&gt;When you use the Dissolve Tool, rather than using Min/Max statistics, try First and Last as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaySandhu_0-1671132471907.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58665i0D3CFFEB85EF67FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JaySandhu_0-1671132471907.png" alt="JaySandhu_0-1671132471907.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Perhaps this will give you the expected results.&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1241686#M8145</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2022-12-15T19:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1243307#M8148</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1137"&gt;@JaySandhu&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;We also discussed this with ESR and the split route segment was due to network junctions.&lt;/P&gt;&lt;P&gt;The solution you provided works but there are two requirements that is missing with this approach,&lt;/P&gt;&lt;P&gt;1)Maintain sequence of street segments and&lt;/P&gt;&lt;P&gt;2)it does not does not dissolve segment if,&amp;nbsp; same segment come more then once e.g. in case of return route.&lt;/P&gt;&lt;P&gt;So, the only way is to build some custom code to merge continuous route segments.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 14:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1243307#M8148</guid>
      <dc:creator>ManishGohil</dc:creator>
      <dc:date>2022-12-22T14:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: route.solve() - RouteEdges does not give expected output</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1243389#M8149</link>
      <description>&lt;P&gt;When you say return route, do you mean that you have multiple routes? That is, RouteID 1 has a segment that also occurs in RouteID 2?&lt;/P&gt;&lt;P&gt;If that is the case, then in the Dissolve tool, Add the RouteID as the second dissolve field. Now, RouteID 1 and 2 will dissolve separately.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaySandhu_0-1671732458426.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59180i513929F93EB67F44/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JaySandhu_0-1671732458426.png" alt="JaySandhu_0-1671732458426.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Jay Sandhu&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 18:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/route-solve-routeedges-does-not-give-expected/m-p/1243389#M8149</guid>
      <dc:creator>JaySandhu</dc:creator>
      <dc:date>2022-12-22T18:08:29Z</dc:date>
    </item>
  </channel>
</rss>

