<?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: Use custom Route service in application in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/use-custom-route-service-in-application/m-p/1569513#M7365</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/429116"&gt;@massimo&lt;/a&gt;- An API key generated on ArcGIS Online will not work on your instance of ArcGIS Enterprise. You will have to generate a key on your server to access that servers resources. API keys were introduced on ArcGIS Enterprise at 11.4. In order to authenticate against your services, you will have to use a different authentication method, either user authentication or application authentication. See &lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/types-of-authentication/" target="_blank"&gt;https://developers.arcgis.com/documentation/security-and-authentication/types-of-authentication/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2024 19:59:36 GMT</pubDate>
    <dc:creator>John-Foster</dc:creator>
    <dc:date>2024-12-17T19:59:36Z</dc:date>
    <item>
      <title>Use custom Route service in application</title>
      <link>https://community.esri.com/t5/developers-questions/use-custom-route-service-in-application/m-p/1569397#M7364</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;I built and published with ArcGIS Server (v. 10.9.1), installed on a server in our University GIS lab, a NAServer/Route service for route search and I would like to use it within a web application (written in js).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; To perform a test I created, as indicated in the Esri help, an 'API key' in ArcGIS Online.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; I copied the code of an example written for Leaflet, always taken from the Esri site, and assigned its value to the variable (accessToken) indicated in the code.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; Using the route service present in the code&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;A href="https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve" target="_blank" rel="noopener"&gt;https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve&lt;/A&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;the execution of the app worked correctly, identifying the path between the indicated points.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; When I entered the url of the route service active on our ArcGIS Server, the execution produced more errors and warnings.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;At this point my question is the following:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;How can I use, within an application, the Route service that resides on our ArcGIS Server?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thank you for your help.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Best regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Massimo&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 16:43:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-custom-route-service-in-application/m-p/1569397#M7364</guid>
      <dc:creator>massimo</dc:creator>
      <dc:date>2024-12-17T16:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use custom Route service in application</title>
      <link>https://community.esri.com/t5/developers-questions/use-custom-route-service-in-application/m-p/1569513#M7365</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/429116"&gt;@massimo&lt;/a&gt;- An API key generated on ArcGIS Online will not work on your instance of ArcGIS Enterprise. You will have to generate a key on your server to access that servers resources. API keys were introduced on ArcGIS Enterprise at 11.4. In order to authenticate against your services, you will have to use a different authentication method, either user authentication or application authentication. See &lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/types-of-authentication/" target="_blank"&gt;https://developers.arcgis.com/documentation/security-and-authentication/types-of-authentication/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 19:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-custom-route-service-in-application/m-p/1569513#M7365</guid>
      <dc:creator>John-Foster</dc:creator>
      <dc:date>2024-12-17T19:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Use custom Route service in application</title>
      <link>https://community.esri.com/t5/developers-questions/use-custom-route-service-in-application/m-p/1569525#M7366</link>
      <description>&lt;P&gt;Thank you very much John for your reply. With your instructions I hope to complete the work.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;massimo&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 20:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/use-custom-route-service-in-application/m-p/1569525#M7366</guid>
      <dc:creator>massimo</dc:creator>
      <dc:date>2024-12-17T20:12:22Z</dc:date>
    </item>
  </channel>
</rss>

