<?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 JAVASCRIPT function to find nearest feature of a coordinate in ArcGIS Server with JavaScript API Questions</title>
    <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/javascript-function-to-find-nearest-feature-of-a/m-p/771123#M79</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Dears&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I have set of different coordinates in an excel file. I am processing this excel file&amp;nbsp;through java script API. I am trying to find the nearest feature(using ESRI javascript API)&amp;nbsp;corresponding to each coordinate in excel sheet.&amp;nbsp;the nearest feature&amp;nbsp; I am looking for is in a map service(layer) published in arcgis server and accessible through it's rest API url.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Is there any ESRI javascript API function available for finding the nearest feature of the selected coordinate?&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I am using the arcgis javascript API version 3.14 (js.arcgis.com/3.14compact).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2020 11:35:45 GMT</pubDate>
    <dc:creator>AdeebFarhan</dc:creator>
    <dc:date>2020-07-03T11:35:45Z</dc:date>
    <item>
      <title>JAVASCRIPT function to find nearest feature of a coordinate</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/javascript-function-to-find-nearest-feature-of-a/m-p/771123#M79</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Dears&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I have set of different coordinates in an excel file. I am processing this excel file&amp;nbsp;through java script API. I am trying to find the nearest feature(using ESRI javascript API)&amp;nbsp;corresponding to each coordinate in excel sheet.&amp;nbsp;the nearest feature&amp;nbsp; I am looking for is in a map service(layer) published in arcgis server and accessible through it's rest API url.&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;Is there any ESRI javascript API function available for finding the nearest feature of the selected coordinate?&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0in; font-size: 11.0pt;"&gt;I am using the arcgis javascript API version 3.14 (js.arcgis.com/3.14compact).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 11:35:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/javascript-function-to-find-nearest-feature-of-a/m-p/771123#M79</guid>
      <dc:creator>AdeebFarhan</dc:creator>
      <dc:date>2020-07-03T11:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: JAVASCRIPT function to find nearest feature of a coordinate</title>
      <link>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/javascript-function-to-find-nearest-feature-of-a/m-p/1002078#M738</link>
      <description>&lt;P&gt;From my understanding neither 3.X or 4.X have the ability to do this (proximity analysis) client side out of the box. I have the same problem as you, and will likely used the REST API's Find Nearest functionality:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/analysis/api-reference/find-nearest.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/analysis/api-reference/find-nearest.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: In your case the following may be of interest, I haven't used 3.X so I can't be sure but it sounds close to what you are looking for: &lt;A href="https://developers.arcgis.com/javascript/3/jssamples/routetask_closest_facility.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jssamples/routetask_closest_facility.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2020 08:38:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-server-with-javascript-api-questions/javascript-function-to-find-nearest-feature-of-a/m-p/1002078#M738</guid>
      <dc:creator>Scanny</dc:creator>
      <dc:date>2020-11-17T08:38:52Z</dc:date>
    </item>
  </channel>
</rss>

