<?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 Getting sequence of original network line features in route analysis &amp;amp; accumulating non-impedance attribute value for each resulting path vertex in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1054287#M7505</link>
    <description>&lt;P&gt;I'm using ArcGIS Network Analyst's (Enterprise server, not AGOL) Routing service:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/route-sync-services.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/route-sync-services.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have 2 issues I'm missing:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; I need to be able to accumulate some non-impedance attribute value per each vertex of the resulting calculated route and not only for each input/output stop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, I'm using a "&lt;SPAN&gt;cost_length&lt;/SPAN&gt;" attribute for the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;impedanceAttributeName&lt;/EM&gt; &lt;/STRONG&gt;parameter, but want to get an accumulated value of a "cost_seconds" attribute (which is another cost attribute defined in the network). If I specify &lt;EM&gt;&lt;STRONG&gt;outputlines=esriNAOutputLineTrueShapeWithMeasure&lt;/STRONG&gt;&lt;/EM&gt;, I do get a third value for each vertex in the resulting route, but that value represents an accumulated value of the "cost_length" attribute (which is the requested &lt;STRONG&gt;&lt;EM&gt;impedanceAttributeName&lt;/EM&gt; &lt;/STRONG&gt;). Is there any way to get an accumulated value of any other attribute, which is &lt;STRONG&gt;not&lt;/STRONG&gt; the impedance attribute?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; The resulting route is given as a line geometry (list of vertices).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is not enough for me. I need to know the actual sequence of the network's underlying line features,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;which have been traversed to create the calculated route - i.e. feature class + ObjectIDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I know that the behind-the-scenes algorithm traverses the line features, so is there any way to receive that sequence as a part of the routing service response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the above is not available - any suggestions how those can be implemented?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 16:50:17 GMT</pubDate>
    <dc:creator>GISTaldor</dc:creator>
    <dc:date>2021-05-04T16:50:17Z</dc:date>
    <item>
      <title>Getting sequence of original network line features in route analysis &amp; accumulating non-impedance attribute value for each resulting path vertex</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1054287#M7505</link>
      <description>&lt;P&gt;I'm using ArcGIS Network Analyst's (Enterprise server, not AGOL) Routing service:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/route-sync-services.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/route-sync-services.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have 2 issues I'm missing:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; I need to be able to accumulate some non-impedance attribute value per each vertex of the resulting calculated route and not only for each input/output stop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance, I'm using a "&lt;SPAN&gt;cost_length&lt;/SPAN&gt;" attribute for the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;impedanceAttributeName&lt;/EM&gt; &lt;/STRONG&gt;parameter, but want to get an accumulated value of a "cost_seconds" attribute (which is another cost attribute defined in the network). If I specify &lt;EM&gt;&lt;STRONG&gt;outputlines=esriNAOutputLineTrueShapeWithMeasure&lt;/STRONG&gt;&lt;/EM&gt;, I do get a third value for each vertex in the resulting route, but that value represents an accumulated value of the "cost_length" attribute (which is the requested &lt;STRONG&gt;&lt;EM&gt;impedanceAttributeName&lt;/EM&gt; &lt;/STRONG&gt;). Is there any way to get an accumulated value of any other attribute, which is &lt;STRONG&gt;not&lt;/STRONG&gt; the impedance attribute?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; The resulting route is given as a line geometry (list of vertices).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is not enough for me. I need to know the actual sequence of the network's underlying line features,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;which have been traversed to create the calculated route - i.e. feature class + ObjectIDs.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I know that the behind-the-scenes algorithm traverses the line features, so is there any way to receive that sequence as a part of the routing service response?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the above is not available - any suggestions how those can be implemented?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 16:50:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1054287#M7505</guid>
      <dc:creator>GISTaldor</dc:creator>
      <dc:date>2021-05-04T16:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sequence of original network line features in route analysis &amp; accumulating non-impedance attribute value for each resulting path vert</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1055867#M7512</link>
      <description>&lt;P data-unlink="true"&gt;For issue 2, you could use &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/route-async-services.htm" target="_self"&gt;async GP Service&lt;/A&gt; published on your enterprise if you use &lt;A href="https://enterprise.arcgis.com/en/server/latest/develop/windows/publishing-routing-services.htm" target="_self"&gt;publish routing services utility&lt;/A&gt; to publish.&amp;nbsp; Async gp service supports&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/route-async-services.htm#ESRI_SECTION2_7BA954DB7B4248EC893007E6AE0F5955" target="_self"&gt;populate_route_edges&amp;nbsp;&amp;nbsp;&lt;/A&gt;parameter which would give you back the traversed edges. By default, publish routing services publish the geoprocessing service as async service, but you could also go to server manager to change it to sync geoprocessing service, so you get better performance. The &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/route-sync-services.htm" target="_self"&gt;sync service (NAServer service)&lt;/A&gt; as you pointed out doesn't support returning traversal result.&lt;/P&gt;&lt;P data-unlink="true"&gt;For issue 1, there are ways to do it. If this is something you do on the client side, then you could use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/feature-vertices-to-points.htm#" target="_self"&gt;Feature Vertices To Points tool&lt;/A&gt;&amp;nbsp;to get the from vertex and to vertex of each route. Then you need to set the from vertex (the first vertex) 's Total_cost_seconds to 0. Then you could run &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/linear-referencing/calibrate-routes.htm" target="_self"&gt;Calibrate Routes&lt;/A&gt; to recalculate the M value to come from Total_cost_seconds field. The&amp;nbsp;&lt;SPAN&gt;in_route_features would be your route, the&amp;nbsp;in_point_features would be the vertices point, and&amp;nbsp;measure_field would be Total_cost_seconds. Also make sure the point_id_field matches the&amp;nbsp;route_id_field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;If this is something you want to do on the server side, then you will publish your own geoprocessing service that does routing, and then call those arcpy tools and write the routes with altered M value. &lt;A href="https://enterprise.arcgis.com/en/server/10.8/publish-services/windows/gettraveldirections-geoprocessing-service-example.htm" target="_self"&gt;Here&lt;/A&gt; is a doc that gives an example of writing a script tool and publish as geoprocessing service.&lt;/P&gt;&lt;P data-unlink="true"&gt;Hope this helps.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 20:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1055867#M7512</guid>
      <dc:creator>MaxZeng</dc:creator>
      <dc:date>2021-05-07T20:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sequence of original network line features in route analysis &amp; accumulating non-impedance attribute value for each resulting path vert</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1063165#M7537</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; Max.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. It looks very promising.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find the option to publish the routing service as asynchronous.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have version 10.7.1 of ArcGIS Server, no option to upgrade right now (it's in production).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 17:46:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1063165#M7537</guid>
      <dc:creator>GISTaldor</dc:creator>
      <dc:date>2021-05-30T17:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sequence of original network line features in route analysis &amp; accumulating non-impedance attribute value for each resulting path vert</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1064212#M7547</link>
      <description>&lt;P&gt;Here is the doc for &lt;A href="https://enterprise.arcgis.com/en/server/10.7/administer/windows/publishing-routing-services.htm" target="_self"&gt;using publish routing services utility in Enterprise 10.7&lt;/A&gt;. Once you run the publish routing services utility, you will have a folder with these four services.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Routing Services.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14871i79942C54C20DBF0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Routing Services.jpg" alt="Routing Services.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The NetworkAnalysis map service (second service in the screenshot) has network analysis capabilities turned on. And it corresponds to the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/route-sync-services.htm" target="_self"&gt;NAServer synchronous service&lt;/A&gt;. The NetworkAnalysis geoprocessing service (the first service in the screensho), is published as asynchronous geoprocessing service by publish routing services utility. And it corresponds to &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/route-async-services.htm" target="_self"&gt;GPServer asynchronous service&lt;/A&gt;. You could potentially go into the service parameters (by clicking the pencil next to the service) and change it to synchronous geoprocessing service. By doing this, instead of using submitJob on the geoprocessing service and query the job id for the job status, you will use execute on the geoprocessing service and wait for the job to finish. Here are some more information about &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/execute-gp-task.htm" target="_self"&gt;executing sync geoprocessing service&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MaxZeng_0-1622657907481.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14873i4C6791E3582C87F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MaxZeng_0-1622657907481.png" alt="MaxZeng_0-1622657907481.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this answer your question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 18:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1064212#M7547</guid>
      <dc:creator>MaxZeng</dc:creator>
      <dc:date>2021-06-02T18:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sequence of original network line features in route analysis &amp; accumulating non-impedance attribute value for each resulting path vert</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1064521#M7548</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Another question though.&lt;/P&gt;&lt;P&gt;The documentation states that one of the conditions is that my network dataset is "stored in a file geodatabase". But in my case it is stored in an enterprise geodatabase (SDE for SQL Server).&lt;/P&gt;&lt;P&gt;Is there any chance of publishing this kind of service vs a network dataset inside an enterprise geodatabase?&lt;/P&gt;&lt;P&gt;It seems like later versions (10.8 &amp;amp; later) have removed this condition..&lt;/P&gt;&lt;P&gt;But my client is using 10.7.1 and cannot perform an upgrade for some internal reason.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 07:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1064521#M7548</guid>
      <dc:creator>GISTaldor</dc:creator>
      <dc:date>2021-06-03T07:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting sequence of original network line features in route analysis &amp; accumulating non-impedance attribute value for each resulting path vert</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1085518#M7607</link>
      <description>&lt;P&gt;I am so sorry that I missed your message somehow. Unfortunately publish routing services in 10.7.1 doesn't support network dataset in enterprise geodatabase. It is supported in 10.8 and later. We also have a major performance improvement to routing services published using publish routing services in 10.8 and later.&lt;/P&gt;&lt;P&gt;Is it still the case that the client cannot move to 10.8 and later? If that's the case, there are other ways you could potentially publish a geoprocessing service in 10.7.1 with network dataset in enterprise geodatabase.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2021 21:27:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/getting-sequence-of-original-network-line-features/m-p/1085518#M7607</guid>
      <dc:creator>MaxZeng</dc:creator>
      <dc:date>2021-08-03T21:27:00Z</dc:date>
    </item>
  </channel>
</rss>

