<?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: How to create AGSJob and use it  in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-agsjob-and-use-it/m-p/691121#M6147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although we don't have an OD Cost Matrix specific API, the OD Cost Matrix service looks like a regular GP Service. You should be able to&amp;nbsp;use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geoprocessing_task.html"&gt;&lt;STRONG&gt;AGSGeoprocessingTask&lt;/STRONG&gt;&lt;/A&gt; and create a &lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geoprocessing_job.html"&gt;&lt;STRONG&gt;AGSGeoprocessingJob&lt;/STRONG&gt;&lt;/A&gt;. Here's an example:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/swift/sample-code/viewshed-geoprocessing/" title="https://developers.arcgis.com/ios/latest/swift/sample-code/viewshed-geoprocessing/"&gt;Viewshed (Geoprocessing) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime will&amp;nbsp;just make use of the cached credentials to run the GP job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, a quick plug for the &lt;A href="https://github.com/Esri/arcgis-runtime-toolkit-ios/tree/master/Documentation/JobManager"&gt;Job Manager toolkit component&lt;/A&gt;, in case you weren't familiar with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Dec 2019 23:03:28 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2019-12-16T23:03:28Z</dc:date>
    <item>
      <title>How to create AGSJob and use it</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-agsjob-and-use-it/m-p/691120#M6146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are trying to fetch origin cost matrix using this API&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-service.htm" title="https://developers.arcgis.com/rest/network/api-reference/origin-destination-cost-matrix-service.htm"&gt;Origin Destination Cost Matrix service—ArcGIS REST API: Directions and Routing Services | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However as this is not there in the SDK we are calling rest api to fetch the data.&amp;nbsp;This API results in a Job and we have to poll for the job status. Instead of writing our own code for it, we would like to create AGSJob and use the default functionality, however we do not see any mechanism to create AGSJob from an URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2019 10:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-agsjob-and-use-it/m-p/691120#M6146</guid>
      <dc:creator>RAMESHBACHIRAJU</dc:creator>
      <dc:date>2019-12-12T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create AGSJob and use it</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-agsjob-and-use-it/m-p/691121#M6147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although we don't have an OD Cost Matrix specific API, the OD Cost Matrix service looks like a regular GP Service. You should be able to&amp;nbsp;use the&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geoprocessing_task.html"&gt;&lt;STRONG&gt;AGSGeoprocessingTask&lt;/STRONG&gt;&lt;/A&gt; and create a &lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geoprocessing_job.html"&gt;&lt;STRONG&gt;AGSGeoprocessingJob&lt;/STRONG&gt;&lt;/A&gt;. Here's an example:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/swift/sample-code/viewshed-geoprocessing/" title="https://developers.arcgis.com/ios/latest/swift/sample-code/viewshed-geoprocessing/"&gt;Viewshed (Geoprocessing) | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime will&amp;nbsp;just make use of the cached credentials to run the GP job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, a quick plug for the &lt;A href="https://github.com/Esri/arcgis-runtime-toolkit-ios/tree/master/Documentation/JobManager"&gt;Job Manager toolkit component&lt;/A&gt;, in case you weren't familiar with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2019 23:03:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-create-agsjob-and-use-it/m-p/691121#M6147</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2019-12-16T23:03:28Z</dc:date>
    </item>
  </channel>
</rss>

