I'm using ArcGIS Network Analyst's (Enterprise server, not AGOL) Routing service:
https://developers.arcgis.com/rest/services-reference/route-sync-services.htm
I have 2 issues I'm missing:
1. 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.
For instance, I'm using a "cost_length" attribute for the impedanceAttributeName 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 outputlines=esriNAOutputLineTrueShapeWithMeasure, 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 impedanceAttributeName ). Is there any way to get an accumulated value of any other attribute, which is not the impedance attribute?
2. The resulting route is given as a line geometry (list of vertices).
This is not enough for me. I need to know the actual sequence of the network's underlying line features, which have been traversed to create the calculated route - i.e. feature class + ObjectIDs.
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?
If the above is not available - any suggestions how those can be implemented?