<?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 How to get distance between geometries in ArcGIS JS 4.10? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-distance-between-geometries-in-arcgis/m-p/429115#M39423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Feature Layer that contains polyline geometries and&amp;nbsp;I have a point. I am trying to find the closest polyline to that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked for a way to do this and I have found FindNearest and it looks like it can accomplish what I need to do:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink2" href="https://developers.arcgis.com/javascript/3/jsapi/findnearest-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/findnearest-amd.html"&gt;https://developers.arcgis.com/javascript/3/jsapi/findnearest-amd.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it doesn't look like&amp;nbsp;this exists&amp;nbsp;in&amp;nbsp;ArcGIS API for JS 4.10. Has this been replaced with something else? Is there anything I can use in 4.10 instead of FindNearest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2018 19:59:47 GMT</pubDate>
    <dc:creator>VincentLantaca1</dc:creator>
    <dc:date>2018-12-14T19:59:47Z</dc:date>
    <item>
      <title>How to get distance between geometries in ArcGIS JS 4.10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-distance-between-geometries-in-arcgis/m-p/429115#M39423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Feature Layer that contains polyline geometries and&amp;nbsp;I have a point. I am trying to find the closest polyline to that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked for a way to do this and I have found FindNearest and it looks like it can accomplish what I need to do:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink2" href="https://developers.arcgis.com/javascript/3/jsapi/findnearest-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/findnearest-amd.html"&gt;https://developers.arcgis.com/javascript/3/jsapi/findnearest-amd.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, it doesn't look like&amp;nbsp;this exists&amp;nbsp;in&amp;nbsp;ArcGIS API for JS 4.10. Has this been replaced with something else? Is there anything I can use in 4.10 instead of FindNearest?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 19:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-distance-between-geometries-in-arcgis/m-p/429115#M39423</guid>
      <dc:creator>VincentLantaca1</dc:creator>
      <dc:date>2018-12-14T19:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get distance between geometries in ArcGIS JS 4.10?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-distance-between-geometries-in-arcgis/m-p/429116#M39424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vincent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As of yet the analysis library is not part of the 4.x API. The closest thing available is&amp;nbsp;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;nearestVertex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestVertex" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html#nearestVertex"&gt;geometryEngine | API Reference | ArcGIS API for JavaScript 4.10&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this method only&amp;nbsp;take&amp;nbsp;a simple geometry and a Point as input and returns the nearest point from the input geometry.&amp;nbsp; Meaning you would have to loop through each of the layer geometries to find the one with the least distance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2018 20:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-get-distance-between-geometries-in-arcgis/m-p/429116#M39424</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-12-14T20:19:53Z</dc:date>
    </item>
  </channel>
</rss>

