<?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 ArcGIS for Android: Getting route from route service in street level in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-for-android-getting-route-from-route/m-p/552221#M3788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I am currently developing an application using ArcGIS runtime SDK for Android. I used the ArcGIS' routing service from this URL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"&gt;&lt;SPAN style="color: #303030;"&gt;&lt;CODE class="hljs java"&gt;&lt;SPAN class="hljs-string"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;and so far, I've managed to retrieve and draw a route between 2 or more stops.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;The problem is, each time I resolve a route search, it appears to always include highways and big streets in the route. Each stops in the app can be reachable by foot (app design constraint), and thus, I would like to resolve a route that prefers small streets and avoid highways whenever possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;What I've done:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;Getting the list of &lt;SPAN style="font-family: courier new,courier;"&gt;CostAttributes&lt;/SPAN&gt; from &lt;SPAN style="font-family: courier new,courier;"&gt;routeTask.getNetworkDescription()&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;.getCostAttributes();&lt;/SPAN&gt; and set the impedance to 'walkTime', 'distance', etc. by calling &lt;SPAN style="font-family: courier new,courier;"&gt;RouteParameters.setImpedanceAttributeName(); &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Not working, still getting the same route&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;Followed the example from:&lt;/SPAN&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;&lt;A href="https://developers.arcgis.com/android/guide/find-a-route.htm" title="https://developers.arcgis.com/android/guide/find-a-route.htm"&gt;Finding a Route—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;Followed another example: &lt;A href="https://developers.arcgis.com/android/sample-code/routing/" title="https://developers.arcgis.com/android/sample-code/routing/"&gt;Routing | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;Set &lt;SPAN style="font-family: courier new,courier;"&gt;setFindBestSequence(true)&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;. I noticed later that it uses Travelling Salesman Problem and is not what I'm looking for.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #606060;"&gt;Is there other options in route parameters, which I am unaware of, which can be used to set the travel mode? or other things that may solve my problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #606060;"&gt;Thanks before&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 May 2016 13:13:40 GMT</pubDate>
    <dc:creator>JasonChristian</dc:creator>
    <dc:date>2016-05-19T13:13:40Z</dc:date>
    <item>
      <title>ArcGIS for Android: Getting route from route service in street level</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-for-android-getting-route-from-route/m-p/552221#M3788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I am currently developing an application using ArcGIS runtime SDK for Android. I used the ArcGIS' routing service from this URL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"&gt;&lt;SPAN style="color: #303030;"&gt;&lt;CODE class="hljs java"&gt;&lt;SPAN class="hljs-string"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;and so far, I've managed to retrieve and draw a route between 2 or more stops.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;The problem is, each time I resolve a route search, it appears to always include highways and big streets in the route. Each stops in the app can be reachable by foot (app design constraint), and thus, I would like to resolve a route that prefers small streets and avoid highways whenever possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;What I've done:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030;"&gt;Getting the list of &lt;SPAN style="font-family: courier new,courier;"&gt;CostAttributes&lt;/SPAN&gt; from &lt;SPAN style="font-family: courier new,courier;"&gt;routeTask.getNetworkDescription()&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;.getCostAttributes();&lt;/SPAN&gt; and set the impedance to 'walkTime', 'distance', etc. by calling &lt;SPAN style="font-family: courier new,courier;"&gt;RouteParameters.setImpedanceAttributeName(); &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;Not working, still getting the same route&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;Followed the example from:&lt;/SPAN&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;&lt;A href="https://developers.arcgis.com/android/guide/find-a-route.htm" title="https://developers.arcgis.com/android/guide/find-a-route.htm"&gt;Finding a Route—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;Followed another example: &lt;A href="https://developers.arcgis.com/android/sample-code/routing/" title="https://developers.arcgis.com/android/sample-code/routing/"&gt;Routing | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="hljs-string" style="color: #303030; font-family: arial,helvetica,sans-serif;"&gt;Set &lt;SPAN style="font-family: courier new,courier;"&gt;setFindBestSequence(true)&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;. I noticed later that it uses Travelling Salesman Problem and is not what I'm looking for.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #606060;"&gt;Is there other options in route parameters, which I am unaware of, which can be used to set the travel mode? or other things that may solve my problem&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="hljs-string" style="color: #606060;"&gt;Thanks before&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 May 2016 13:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/arcgis-for-android-getting-route-from-route/m-p/552221#M3788</guid>
      <dc:creator>JasonChristian</dc:creator>
      <dc:date>2016-05-19T13:13:40Z</dc:date>
    </item>
  </channel>
</rss>

