<?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 Calculate drive time polygons using ArcGIS Online and ArcGIS JavaScript API in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-drive-time-polygons-using-arcgis-online/m-p/189140#M17512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our office wishes to create a public web map (using the JavaScript API) that allows users to determine drive time polygons from a given location.&amp;nbsp; The free ESRI service (&lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer&lt;/A&gt;&lt;SPAN&gt;) only allows a user to calculate 15 minute drive time polygons.&amp;nbsp; Our office has an ArcGIS Online account, so I want to use the Network Analysis Services and the Service Area Service (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-online-network-analysis-rest-api/#/Service_Area_Service_with_Synchronous_Execution/02s500000004000000/"&gt;http://resources.arcgis.com/en/help/arcgis-online-network-analysis-rest-api/#/Service_Area_Service_with_Synchronous_Execution/02s500000004000000/&lt;/A&gt;&lt;SPAN&gt;) to create these polygons. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I am not sure how to generate a token for the application so we can use the Network Analysis Services.&amp;nbsp; End users should not be required to enter the credentials. Instead, the credentials should be stored on the server so a token can be generated automatically for each user that visits the web map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried requesting a token in my browser with this URL (&lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/sharing/generateToken?username=yourUserName&amp;amp;password=yourPassword&amp;amp;referer=http://myserver/mywebapp&amp;amp;expiration=15&amp;amp;f=json"&gt;https://www.arcgis.com/sharing/generateToken?username=yourUserName&amp;amp;password=yourPassword&amp;amp;referer=http://myserver/mywebapp&amp;amp;expiration=15&amp;amp;f=json&lt;/A&gt;&lt;SPAN&gt;) and my ArcGIS Online credentials, but the returned JSON response says �??Invalid username or password�?�.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong and how can I generate a token so I can use the Network Analysis Services available through ArcGIS online?&amp;nbsp; Any help would be greatly appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2013 15:03:46 GMT</pubDate>
    <dc:creator>RyanStanley1</dc:creator>
    <dc:date>2013-05-02T15:03:46Z</dc:date>
    <item>
      <title>Calculate drive time polygons using ArcGIS Online and ArcGIS JavaScript API</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-drive-time-polygons-using-arcgis-online/m-p/189140#M17512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our office wishes to create a public web map (using the JavaScript API) that allows users to determine drive time polygons from a given location.&amp;nbsp; The free ESRI service (&lt;/SPAN&gt;&lt;A href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Network/ESRI_DriveTime_US/GPServer&lt;/A&gt;&lt;SPAN&gt;) only allows a user to calculate 15 minute drive time polygons.&amp;nbsp; Our office has an ArcGIS Online account, so I want to use the Network Analysis Services and the Service Area Service (&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-online-network-analysis-rest-api/#/Service_Area_Service_with_Synchronous_Execution/02s500000004000000/"&gt;http://resources.arcgis.com/en/help/arcgis-online-network-analysis-rest-api/#/Service_Area_Service_with_Synchronous_Execution/02s500000004000000/&lt;/A&gt;&lt;SPAN&gt;) to create these polygons. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I am not sure how to generate a token for the application so we can use the Network Analysis Services.&amp;nbsp; End users should not be required to enter the credentials. Instead, the credentials should be stored on the server so a token can be generated automatically for each user that visits the web map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried requesting a token in my browser with this URL (&lt;/SPAN&gt;&lt;A href="https://www.arcgis.com/sharing/generateToken?username=yourUserName&amp;amp;password=yourPassword&amp;amp;referer=http://myserver/mywebapp&amp;amp;expiration=15&amp;amp;f=json"&gt;https://www.arcgis.com/sharing/generateToken?username=yourUserName&amp;amp;password=yourPassword&amp;amp;referer=http://myserver/mywebapp&amp;amp;expiration=15&amp;amp;f=json&lt;/A&gt;&lt;SPAN&gt;) and my ArcGIS Online credentials, but the returned JSON response says �??Invalid username or password�?�.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong and how can I generate a token so I can use the Network Analysis Services available through ArcGIS online?&amp;nbsp; Any help would be greatly appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 15:03:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/calculate-drive-time-polygons-using-arcgis-online/m-p/189140#M17512</guid>
      <dc:creator>RyanStanley1</dc:creator>
      <dc:date>2013-05-02T15:03:46Z</dc:date>
    </item>
  </channel>
</rss>

