<?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 DistanceGeodetic not working in QuickCapture in ArcGIS QuickCapture Questions</title>
    <link>https://community.esri.com/t5/arcgis-quickcapture-questions/distancegeodetic-not-working-in-quickcapture/m-p/1583388#M1383</link>
    <description>&lt;P&gt;DistanceGeodetic isn't working in QuickCapture. Will trigger in the designer, but blank on actual capture. The Distance function does work, but is not what I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unsure if it's related to the same issue listed here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/distancegeodetic-not-working-in-fieldmaps/m-p/1523237#M9323" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/distancegeodetic-not-working-in-fieldmaps/m-p/1523237#M9323&amp;nbsp;&lt;/A&gt;Figured I would throw it out there as an issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - the help resource for the function within the Arcade editor has a different capitalization format than the current function.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2025 00:10:57 GMT</pubDate>
    <dc:creator>Moff</dc:creator>
    <dc:date>2025-02-08T00:10:57Z</dc:date>
    <item>
      <title>DistanceGeodetic not working in QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/distancegeodetic-not-working-in-quickcapture/m-p/1583388#M1383</link>
      <description>&lt;P&gt;DistanceGeodetic isn't working in QuickCapture. Will trigger in the designer, but blank on actual capture. The Distance function does work, but is not what I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unsure if it's related to the same issue listed here:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-field-maps-questions/distancegeodetic-not-working-in-fieldmaps/m-p/1523237#M9323" target="_blank"&gt;https://community.esri.com/t5/arcgis-field-maps-questions/distancegeodetic-not-working-in-fieldmaps/m-p/1523237#M9323&amp;nbsp;&lt;/A&gt;Figured I would throw it out there as an issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - the help resource for the function within the Arcade editor has a different capitalization format than the current function.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 00:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/distancegeodetic-not-working-in-quickcapture/m-p/1583388#M1383</guid>
      <dc:creator>Moff</dc:creator>
      <dc:date>2025-02-08T00:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: DistanceGeodetic not working in QuickCapture</title>
      <link>https://community.esri.com/t5/arcgis-quickcapture-questions/distancegeodetic-not-working-in-quickcapture/m-p/1583511#M1384</link>
      <description>&lt;P&gt;The following worked for me:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;var facilities = FeatureSetByName($map, "Medical");&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;var point_fs = Intersects(facilities, Buffer($feature, 2000, "meters"));&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;var min_dist = 99999;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;var nearest_medicalName = null;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;var geo = Geometry($feature);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;for (var point in point_fs) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; var point_geo = Geometry(point);&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; var dist = DistanceGeodetic(geo, point_geo, "meters");&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; if (dist &amp;lt; min_dist) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; min_dist = dist;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; nearest_medicalName = point.name;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&amp;nbsp; }&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;return nearest_medicalName;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Note that following:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- DistanceGeodetic function only works between 2 points, not lines,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;- The designer will run the expression on the first feature in the feature layer you are targetting.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please share your expression if you need assistance in troubleshooting this.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 10 Feb 2025 06:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-quickcapture-questions/distancegeodetic-not-working-in-quickcapture/m-p/1583511#M1384</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2025-02-10T06:09:30Z</dc:date>
    </item>
  </channel>
</rss>

