<?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 ESRI API function (REST/JAVASCRIPT) to find nearest feature of a coordinate in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-api-function-rest-javascript-to-find-nearest/m-p/330607#M1610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Dears&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;I have a an array of coordinates in my JavaScript program. I am processing these coordinates in a loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;I need to find the nearest feature of each of these coordinate. The feature I am looking for is available in a map service published in our local server. I need to find the nearest feature in the JavaScript loop itself without manual interventions.&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Is there any ESRI JavaScript or REST API function available for finding the nearest feature of the selected coordinate?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Could you please provide the API functions and detailed steps to use it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;I am using the ArcGIS JavaScript API version 3.14 (js.arcgis.com/3.14compact).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Our ArcGIS server version is 10.2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2020 07:18:06 GMT</pubDate>
    <dc:creator>AdeebFarhan</dc:creator>
    <dc:date>2020-07-06T07:18:06Z</dc:date>
    <item>
      <title>ESRI API function (REST/JAVASCRIPT) to find nearest feature of a coordinate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-api-function-rest-javascript-to-find-nearest/m-p/330607#M1610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Dears&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;I have a an array of coordinates in my JavaScript program. I am processing these coordinates in a loop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;I need to find the nearest feature of each of these coordinate. The feature I am looking for is available in a map service published in our local server. I need to find the nearest feature in the JavaScript loop itself without manual interventions.&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Is there any ESRI JavaScript or REST API function available for finding the nearest feature of the selected coordinate?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Could you please provide the API functions and detailed steps to use it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;I am using the ArcGIS JavaScript API version 3.14 (js.arcgis.com/3.14compact).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #3d3d3d;"&gt;&lt;SPAN style="background: white;"&gt;Our ArcGIS server version is 10.2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 07:18:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-api-function-rest-javascript-to-find-nearest/m-p/330607#M1610</guid>
      <dc:creator>AdeebFarhan</dc:creator>
      <dc:date>2020-07-06T07:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI API function (REST/JAVASCRIPT) to find nearest feature of a coordinate</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-api-function-rest-javascript-to-find-nearest/m-p/330608#M1611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The latest version of the ArcGIS API for JavaScript version 3 (v3.32) has a method called "nearestVertex" - would that work for you?&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/esri.geometry.geometryengine-amd.html#nearestvertex" title="https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#nearestvertex"&gt;esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript 3.32&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(you may have to check that this exists at your version, or update to v3.32)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2020 13:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-api-function-rest-javascript-to-find-nearest/m-p/330608#M1611</guid>
      <dc:creator>GavinRehkemper</dc:creator>
      <dc:date>2020-07-07T13:00:45Z</dc:date>
    </item>
  </channel>
</rss>

