<?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: ArcGIS Server geoprocessing service to return distance? in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/arcgis-server-geoprocessing-service-to-return/m-p/773405#M92</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm ... i totally didn't think about the geometryservice at all!!!! &amp;nbsp; thanks for the suggestion!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: &amp;nbsp;i forgot... the reason why i was thinking of using an ArcGIS Server GP service was that... I'm looking to create a REST Endpoint that returns the distance of a point from a polygon.&lt;/P&gt;&lt;P&gt;I'll look into Node.js and see if I&amp;nbsp;can use that to create a JSAPI service which I can call from another JS Client....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Nov 2016 22:28:46 GMT</pubDate>
    <dc:creator>DerekLoi</dc:creator>
    <dc:date>2016-11-14T22:28:46Z</dc:date>
    <item>
      <title>ArcGIS Server geoprocessing service to return distance?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/arcgis-server-geoprocessing-service-to-return/m-p/773403#M90</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;What is the best way to create an ArcGIS Server Geoprocessing Service that accepts an address (such as a json object or text from the JSAPI) to geocode a point, then... find the distance to a polygon and have that service return the distance ?&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I've been reading up on creating a model in model builder and then use that result to publish to ArcGIS Server. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Would that be the correct way of achieving this? &amp;nbsp; If so, are there any examples of creating a model that utilizes the "Geocode Address" tool to accept an address/zone text string instead of an input table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Any help would be very much appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;Derek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 21:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/arcgis-server-geoprocessing-service-to-return/m-p/773403#M90</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2016-11-14T21:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server geoprocessing service to return distance?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/arcgis-server-geoprocessing-service-to-return/m-p/773404#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Derek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Yes that is the correct route. But I would not waste time with a GP. Just use the Locate task in JS API and then you have a point for the address then you can use GeometryService &amp;nbsp;distance to find the distance between the point and the polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/locator-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/locator-amd.html"&gt;Locator | API Reference | ArcGIS API for JavaScript 3.18&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html#distance" title="https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html#distance"&gt;GeometryService | API Reference | ArcGIS API for JavaScript 3.18 | distance&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 21:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/arcgis-server-geoprocessing-service-to-return/m-p/773404#M91</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-11-14T21:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server geoprocessing service to return distance?</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/arcgis-server-geoprocessing-service-to-return/m-p/773405#M92</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hmmm ... i totally didn't think about the geometryservice at all!!!! &amp;nbsp; thanks for the suggestion!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: &amp;nbsp;i forgot... the reason why i was thinking of using an ArcGIS Server GP service was that... I'm looking to create a REST Endpoint that returns the distance of a point from a polygon.&lt;/P&gt;&lt;P&gt;I'll look into Node.js and see if I&amp;nbsp;can use that to create a JSAPI service which I can call from another JS Client....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 22:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/arcgis-server-geoprocessing-service-to-return/m-p/773405#M92</guid>
      <dc:creator>DerekLoi</dc:creator>
      <dc:date>2016-11-14T22:28:46Z</dc:date>
    </item>
  </channel>
</rss>

