<?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: Find Nearest features from an input location in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260631#M24142</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Pepatosp&lt;BR /&gt;thank you very much for quick turnaround. The closest facility task would only work with point&amp;nbsp; features (in the near feature layer),&lt;BR /&gt; not sure whether it would work for lines and polygons. Correct me, If I am wrong. In my case, I would like to calculate distance between the input location and near features ( which can&amp;nbsp; be point, line and polygons). If the near feature is a line or polygon, then, it should&amp;nbsp; calculate the distance of the nearest vertices from the line or polygon rather than the centroid of the near line or polygon features. &lt;BR /&gt;&lt;BR /&gt;I think, for this kind of analysis, We should use Generate Near Table in Arctoolbox and publish them as a Geoprocessing service. &lt;BR /&gt;&lt;BR /&gt;this should help me solve the problem. Just wondering, if anyone, has published geoprocessing service like this and use them in their application. If so, can you point me to the right link, please. Or If there is any other better way of doing this, would also be of great help.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ganesh&lt;BR /&gt;&lt;BR /&gt;I&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh, you're right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I misunderstood your requirements. When you said that you want to use any kind of feature, I've thought about using the polygon centroids (in case of polygons) and the line middle points. If you need the closest vertices, this solution won't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know the how the arctoolbox tool that you talk works, so I think that I can't help here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Feb 2014 10:04:22 GMT</pubDate>
    <dc:creator>RobertoPepato</dc:creator>
    <dc:date>2014-02-21T10:04:22Z</dc:date>
    <item>
      <title>Find Nearest features from an input location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260628#M24139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to find the nearest features (it can be point, line and polygon layers) from an user input or search location and identify 5 nearest locations along with their distances. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have anybody worked on this link below. If so, can anyone point me to the right sample application, please.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/findnearest-amd.html"&gt;https://developers.arcgis.com/javascript/jsapi/findnearest-amd.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/rest/analysis/api-reference/find-nearest.htm"&gt;https://developers.arcgis.com/rest/analysis/api-reference/find-nearest.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On the above link,&amp;nbsp; there is no sample application or code to show how this works. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, there should be a way to do without using FindNearest class, as this class has only been introduced with V3.7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is the case, then how GIS developers across the world would have created application without this class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think, some one should really have an answer to this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 17:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260628#M24139</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-02-20T17:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Find Nearest features from an input location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260629#M24140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that you're looking for the closest facility task. Take a look at &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/routetask_closest_facility.html"&gt;this link&lt;/A&gt;&lt;SPAN&gt; and see if it helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About performing a remote geoprocessing operation without using the client APIs, you can always talk directly to the REST API but I do not recommend this approach, unless you have good reasons to consider it. Remember that, if you talk directly with the REST API the de/serialization functions (and some other functions) are entirely on you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 00:05:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260629#M24140</guid>
      <dc:creator>RobertoPepato</dc:creator>
      <dc:date>2014-02-21T00:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find Nearest features from an input location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260630#M24141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I think that you're looking for the closest facility task. Take a look at &lt;A href="https://developers.arcgis.com/javascript/jssamples/routetask_closest_facility.html"&gt;this link&lt;/A&gt; and see if it helps.&lt;BR /&gt;&lt;BR /&gt;About performing a remote geoprocessing operation without using the client APIs, you can always talk directly to the REST API but I do not recommend this approach, unless you have good reasons to consider it. Remember that, if you talk directly with the REST API the de/serialization functions (and some other functions) are entirely on you.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Pepatosp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much for quick turnaround. The closest facility task would only work with point&amp;nbsp; features (in the near feature layer),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; not sure whether it would work for lines and polygons. Correct me, If I am wrong. In my case, I would like to calculate distance between the input location and near features ( which can&amp;nbsp; be point, line and polygons). If the near feature is a line or polygon, then, it should&amp;nbsp; calculate the distance of the nearest vertices from the line or polygon rather than the centroid of the near line or polygon features. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think, for this kind of analysis, We should use Generate Near Table in Arctoolbox and publish them as a Geoprocessing service. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this should help me solve the problem. Just wondering, if anyone, has published geoprocessing service like this and use them in their application. If so, can you point me to the right link, please. Or If there is any other better way of doing this, would also be of great help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 09:37:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260630#M24141</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-02-21T09:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find Nearest features from an input location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260631#M24142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Pepatosp&lt;BR /&gt;thank you very much for quick turnaround. The closest facility task would only work with point&amp;nbsp; features (in the near feature layer),&lt;BR /&gt; not sure whether it would work for lines and polygons. Correct me, If I am wrong. In my case, I would like to calculate distance between the input location and near features ( which can&amp;nbsp; be point, line and polygons). If the near feature is a line or polygon, then, it should&amp;nbsp; calculate the distance of the nearest vertices from the line or polygon rather than the centroid of the near line or polygon features. &lt;BR /&gt;&lt;BR /&gt;I think, for this kind of analysis, We should use Generate Near Table in Arctoolbox and publish them as a Geoprocessing service. &lt;BR /&gt;&lt;BR /&gt;this should help me solve the problem. Just wondering, if anyone, has published geoprocessing service like this and use them in their application. If so, can you point me to the right link, please. Or If there is any other better way of doing this, would also be of great help.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ganesh&lt;BR /&gt;&lt;BR /&gt;I&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh, you're right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I misunderstood your requirements. When you said that you want to use any kind of feature, I've thought about using the polygon centroids (in case of polygons) and the line middle points. If you need the closest vertices, this solution won't work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know the how the arctoolbox tool that you talk works, so I think that I can't help here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 10:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260631#M24142</guid>
      <dc:creator>RobertoPepato</dc:creator>
      <dc:date>2014-02-21T10:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find Nearest features from an input location</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260632#M24143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Ganesh, you're right.&lt;BR /&gt;&lt;BR /&gt;I misunderstood your requirements. When you said that you want to use any kind of feature, I've thought about using the polygon centroids (in case of polygons) and the line middle points. If you need the closest vertices, this solution won't work. &lt;BR /&gt;&lt;BR /&gt;I don't know the how the arctoolbox tool that you talk works, so I think that I can't help here.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;HI GIS folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you anyone give me a clue on this or point me the right sample application to work on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ganesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 17:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/find-nearest-features-from-an-input-location/m-p/260632#M24143</guid>
      <dc:creator>GaneshSolai_Sambandam</dc:creator>
      <dc:date>2014-02-25T17:21:59Z</dc:date>
    </item>
  </channel>
</rss>

