<?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 Issue in Finding  routes between locations in xamarin in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/issue-in-finding-routes-between-locations-in/m-p/62180#M343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; I am facing issue with finding routes between two location in ARCGIS xamarin. I have tried the example &lt;A href="https://developers.arcgis.com/xamarin/quartz/android/guide/find-a-route.htm" title="https://developers.arcgis.com/xamarin/quartz/android/guide/find-a-route.htm"&gt;https://developers.arcgis.com/xamarin/quartz/android/guide/find-a-route.htm&lt;/A&gt; . But in the example the URI used is&amp;nbsp; &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But i need to access the URI &lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World" title="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&amp;nbsp; which requires authenticated call.So i registered my App by referring the link :&lt;A href="https://developers.arcgis.com/authentication/accessing-arcgis-online-services/#getting-a-token" title="https://developers.arcgis.com/authentication/accessing-arcgis-online-services/#getting-a-token"&gt;Implementing App Login | ArcGIS for Developers. &lt;/A&gt;and generated the Token&amp;nbsp; and tried :"&lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=nEqLscMTMlYIhnzwJOF1lDcAk5HCpEpdgPw1aBzc7LICPx2Mhxpgpi71pgAmIxQvSmJFW2sPrTWtyHQrvgAK69A1Q0_xnlCIrFUxSScG_oosvXlDh3kGUSxMCpscgM595922p374ANtYS2XmKRYifA&amp;amp;stops=-122.4079,37.78356;-122.404,37.782&amp;amp;f=json" title="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=nEqLscMTMlYIhnzwJOF1lDcAk5HCpEpdgPw1aBzc7LICPx2Mhxpgpi71pgAmIxQvSmJFW2sPrTWtyHQrvgAK69A1Q0_xnlCIrFUxSScG_oosvXlDh3kGUSxMCpscgM595922p374ANtYS2XmKRYifA&amp;amp;stops=-122.4079,37.78356;-122.404,37.782&amp;amp;f=json"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=&amp;lt;Token&amp;gt;&amp;amp;stops=-122.4079,37.78356;-122.404,37.782&amp;amp;f=json"&lt;/A&gt; in Postman and is working fine, but not working in my App.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the example the route task is fetched as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var routeSourceUri= new Uri("&lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World" title="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"&gt;&lt;SPAN style="color: #eb7a3d;"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/SPAN&gt;&lt;/A&gt; ");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var routeTask = await RouteTask.CreateAsync(routeSourceUri);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #505050;"&gt;I tried appending the uri with token, but it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a workaround &lt;STRONG&gt;to get the routeTask &lt;/STRONG&gt;in xamarin with token authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jul 2016 11:35:10 GMT</pubDate>
    <dc:creator>MobleJoseph</dc:creator>
    <dc:date>2016-07-01T11:35:10Z</dc:date>
    <item>
      <title>Issue in Finding  routes between locations in xamarin</title>
      <link>https://community.esri.com/t5/developers-questions/issue-in-finding-routes-between-locations-in/m-p/62180#M343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt; I am facing issue with finding routes between two location in ARCGIS xamarin. I have tried the example &lt;A href="https://developers.arcgis.com/xamarin/quartz/android/guide/find-a-route.htm" title="https://developers.arcgis.com/xamarin/quartz/android/guide/find-a-route.htm"&gt;https://developers.arcgis.com/xamarin/quartz/android/guide/find-a-route.htm&lt;/A&gt; . But in the example the URI used is&amp;nbsp; &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;But i need to access the URI &lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World" title="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/A&gt;&amp;nbsp; which requires authenticated call.So i registered my App by referring the link :&lt;A href="https://developers.arcgis.com/authentication/accessing-arcgis-online-services/#getting-a-token" title="https://developers.arcgis.com/authentication/accessing-arcgis-online-services/#getting-a-token"&gt;Implementing App Login | ArcGIS for Developers. &lt;/A&gt;and generated the Token&amp;nbsp; and tried :"&lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=nEqLscMTMlYIhnzwJOF1lDcAk5HCpEpdgPw1aBzc7LICPx2Mhxpgpi71pgAmIxQvSmJFW2sPrTWtyHQrvgAK69A1Q0_xnlCIrFUxSScG_oosvXlDh3kGUSxMCpscgM595922p374ANtYS2XmKRYifA&amp;amp;stops=-122.4079,37.78356;-122.404,37.782&amp;amp;f=json" title="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=nEqLscMTMlYIhnzwJOF1lDcAk5HCpEpdgPw1aBzc7LICPx2Mhxpgpi71pgAmIxQvSmJFW2sPrTWtyHQrvgAK69A1Q0_xnlCIrFUxSScG_oosvXlDh3kGUSxMCpscgM595922p374ANtYS2XmKRYifA&amp;amp;stops=-122.4079,37.78356;-122.404,37.782&amp;amp;f=json"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=&amp;lt;Token&amp;gt;&amp;amp;stops=-122.4079,37.78356;-122.404,37.782&amp;amp;f=json"&lt;/A&gt; in Postman and is working fine, but not working in my App.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the example the route task is fetched as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var routeSourceUri= new Uri("&lt;A href="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World" title="http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World"&gt;&lt;SPAN style="color: #eb7a3d;"&gt;http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World&lt;/SPAN&gt;&lt;/A&gt; ");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #eb7a3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var routeTask = await RouteTask.CreateAsync(routeSourceUri);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #505050;"&gt;I tried appending the uri with token, but it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a workaround &lt;STRONG&gt;to get the routeTask &lt;/STRONG&gt;in xamarin with token authentication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 11:35:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/issue-in-finding-routes-between-locations-in/m-p/62180#M343</guid>
      <dc:creator>MobleJoseph</dc:creator>
      <dc:date>2016-07-01T11:35:10Z</dc:date>
    </item>
  </channel>
</rss>

