<?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: Using pull data to looking up closest point in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1090681#M36617</link>
    <description>&lt;P&gt;Hi, have you figured this out? Please let me know, I'm struggling with the same thing&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 02:45:37 GMT</pubDate>
    <dc:creator>YuliaMamonova</dc:creator>
    <dc:date>2021-08-20T02:45:37Z</dc:date>
    <item>
      <title>Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810276#M13122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone tried&amp;nbsp;using the pull data to identify the closest point of another dataset to the geopoint and retrieve a value something like the near toolbox function in arcmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a bit like using the pulldata function and a calculation in one go that takes the current location of the geopoint and calculates the distance to a list of points within a csv file and then returns their site name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 14:47:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810276#M13122</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2017-05-25T14:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810277#M13123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stuart,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pulldata function is an attribute only function. &amp;nbsp;We have a set of enhancements we are considering to perform spatial-type searches; I'll add the 'nearest point' case to it (it's mostly been proposed as point in poly).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 May 2017 19:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810277#M13123</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-05-26T19:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810278#M13124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Adding the nearest point function would be useful for my workflow too.&amp;nbsp; Any idea as to when this might be available, even in the beta version?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jun 2019 20:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810278#M13124</guid>
      <dc:creator>AlisonFischer</dc:creator>
      <dc:date>2019-06-03T20:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810279#M13125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alison,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A form of this is available now using the in-beta custom JavaScript functions. &amp;nbsp;Please check the &lt;A href="https://bit.ly/S123beta"&gt;Early Adopter Community&lt;/A&gt; for more information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 20:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810279#M13125</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-06-04T20:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810280#M13126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&lt;DIV class=""&gt;&lt;DIV style="color: #222222; background-color: #ffffff;"&gt;&lt;DIV class=""&gt;&lt;SPAN class="" data-ved="2ahUKEwibttWZz_vnAhWsz4UKHVg2BnEQ7zQwAHoECAwQDA"&gt;&lt;SPAN class="" style="border: 1px solid transparent;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 1px solid transparent;" title="Traduire avec la voix"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;SPAN class="" data-ved="2ahUKEwibttWZz_vnAhWsz4UKHVg2BnEQxZgCMAB6BAgMEA0"&gt;&lt;SPAN class="" style="border: 1px solid transparent;" title="Effacer le texte source"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff;"&gt;&lt;DIV class="" style="background-color: rgba(0, 0, 0, 0.1); margin: 0px auto;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;PRE data-placeholder="Traduction" dir="ltr"&gt;&lt;SPAN lang="en"&gt;Hello James Have you made progress with regard to this subject to find in a list the GPS position closest to the measurement point? Thank you A + J&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;SPAN class="" data-ved="2ahUKEwibttWZz_vnAhWsz4UKHVg2BnEQxZgCMAB6BAgMEA0" style="color: rgba(0, 0, 0, 0.54);"&gt;&lt;SPAN class="" style="border: 1px solid transparent; padding: 10px;" title="Effacer le texte source"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&lt;DIV class="" style="background-color: rgba(0, 0, 0, 0.1); margin: 0px auto;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;&lt;DIV style="background-color: #f8f9fa; font-size: 0px; margin: 0px -16px;"&gt;&lt;DIV class="" style="font-size: 0px; padding: 10px 16px 52px;"&gt;&lt;DIV class=""&gt;&lt;PRE class="" data-placeholder="Traduction" dir="ltr" style="background-color: transparent; border: none; font-size: 28px; margin: -2px 0px; padding: 2px 0.14em 2px 0px;"&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 10:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/810280#M13126</guid>
      <dc:creator>JulienCHARBONNAUD</dc:creator>
      <dc:date>2020-03-02T10:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1086881#M36376</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;, is there an example for a "closest point" (or line)? I've seen only examples of an intersecting polygon and was trying to figure it out for points and lines as well. Thank you...&lt;/P&gt;</description>
      <pubDate>Sat, 07 Aug 2021 20:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1086881#M36376</guid>
      <dc:creator>chaims</dc:creator>
      <dc:date>2021-08-07T20:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1090681#M36617</link>
      <description>&lt;P&gt;Hi, have you figured this out? Please let me know, I'm struggling with the same thing&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 02:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1090681#M36617</guid>
      <dc:creator>YuliaMamonova</dc:creator>
      <dc:date>2021-08-20T02:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1093548#M36791</link>
      <description>&lt;P&gt;Yes, a nearest feature example using a Javascript pulldata function would be awesome to see.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 12:26:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1093548#M36791</guid>
      <dc:creator>PeterMacKenzie2</dc:creator>
      <dc:date>2021-08-30T12:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1155400#M41406</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/IsmaelInRedlands/Survey123-Tricks-of-the-Trade/blob/main/getNearestRecord" target="_blank"&gt;https://github.com/IsmaelInRedlands/Survey123-Tricks-of-the-Trade/blob/main/getNearestRecord&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IsmaelChivite_0-1647639717528.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/36762iB306F2052789D919/image-size/large?v=v2&amp;amp;px=999" role="button" title="IsmaelChivite_0-1647639717528.png" alt="IsmaelChivite_0-1647639717528.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 21:42:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1155400#M41406</guid>
      <dc:creator>IsmaelChivite</dc:creator>
      <dc:date>2022-03-18T21:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1155482#M41414</link>
      <description>&lt;P&gt;This looks really great, if I ever have the need again and implement it I promise to post. Thank you for sharing the example!!&lt;/P&gt;</description>
      <pubDate>Sat, 19 Mar 2022 20:21:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1155482#M41414</guid>
      <dc:creator>ChaimSchwartzIroads</dc:creator>
      <dc:date>2022-03-19T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1275431#M48423</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;Can this be use in a public survey?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 19:03:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1275431#M48423</guid>
      <dc:creator>utenalarosa</dc:creator>
      <dc:date>2023-04-04T19:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1276297#M48472</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After using your script and mimicking the fields in your screenshot, the 'city_json' field returns the feature layer feature service link, and the 'closest_city' field respectively returns a blank. Any idea why this might be happening?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 18:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1276297#M48472</guid>
      <dc:creator>oribecco_SMJV</dc:creator>
      <dc:date>2023-04-06T18:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1324895#M51513</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;Is this still the best way to accomplish the closest feature search? Are there any options for a public survey like the "?distance=" search? Not sure in what order those records are returned or if they could be sorted by distance.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 18:49:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1324895#M51513</guid>
      <dc:creator>Tim-Woodfield</dc:creator>
      <dc:date>2023-09-01T18:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1494349#M57435</link>
      <description>&lt;P&gt;Is this still the best solution to get a nearest record?&lt;/P&gt;&lt;P&gt;Trying to get the nearest polyline from a geopoint question.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 13:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1494349#M57435</guid>
      <dc:creator>mikaël</dc:creator>
      <dc:date>2024-06-18T13:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1509107#M58075</link>
      <description>&lt;P&gt;Since 2017, have there been any updates on this feature?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pulldata not sufficient&lt;/STRONG&gt;&lt;BR /&gt;Currently, we are getting suboptimal results using de pulldata() function, because it returns the first found feature rather than the closest feature. This compromises our data quality.&lt;/P&gt;&lt;P&gt;In this instance I am using pulldata() in a Survey 123 application in which residents can report an issue to us. I (need to) use an Arcade expression in Field Maps for the people who work on the issue. Field Maps produces a different (in this case: more accurate) result. Hence, the streetname we use differs for the same location.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Javascript is not an option, Arcade is?&lt;/STRONG&gt;&lt;BR /&gt;Sadly, Javascript is not an option in our case because we apply this functionality in publicly shared surveys. Using ArcGIS Arcade there are some great examples out there to actually find the closest feature. For example: &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/from-the-smart-editor-to-smart-forms/#Address" target="_blank"&gt;From the Smart Editor to Smart Forms (esri.com)&lt;/A&gt;. It would be great if there are enhancements through which we can use Arcade in publicly shared surveys.&lt;/P&gt;&lt;P&gt;Lastly, it would be great if different Esri products would work closer together.&lt;/P&gt;&lt;P&gt;Any updates would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 07:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1509107#M58075</guid>
      <dc:creator>Erwinvan_Veen1</dc:creator>
      <dc:date>2024-07-24T07:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1681253#M65320</link>
      <description>&lt;P&gt;Has anyone else been able to expand on this conundrum? I'm using Survey123 Connect and am trying to pull attribute data from the nearest point to another point that I'm plotting on a survey. I tried the script that&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp;posted, but it hasn't populated in the way that I've hoped yet. Any input would be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jan 2026 23:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1681253#M65320</guid>
      <dc:creator>IGTLab_Empress</dc:creator>
      <dc:date>2026-01-30T23:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using pull data to looking up closest point</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1681266#M65321</link>
      <description>&lt;P&gt;Far from ideal and far from accurate, I currently use the below calculation. Although it does not get the actual nearest point, it does provide an indication of the nearest by limiting the search distance. For our usecase this is sufficient to give an indication of the nearest street name. This is purely to provide an indication, not important for the actual data.&lt;/P&gt;&lt;P&gt;pulldata("@layer", "getValueAt", "attributes.&lt;FONT color="#FF9900"&gt;&amp;lt;ATTRIBUTE&amp;gt;&lt;/FONT&gt;", "https://&lt;FONT color="#FF9900"&gt;&amp;lt;URL&amp;gt;&lt;/FONT&gt;/arcgis/rest/services/&lt;FONT color="#FF9900"&gt;&amp;lt;SERVICE&amp;gt;&lt;/FONT&gt;/FeatureServer/&lt;FONT color="#FF9900"&gt;&amp;lt;LAYERID&amp;gt;&lt;/FONT&gt;?distance=&lt;FONT color="#FF9900"&gt;25&lt;/FONT&gt;&amp;amp;units=esriSRUnit_Meter", ${&lt;FONT color="#FF9900"&gt;GEOMETRY_NAME&lt;/FONT&gt;})&lt;/P&gt;&lt;P&gt;What I use as a better solution is in a web map use an Arcade expression to find the actual nearest feature. Admittedly, I have the advantage we only use Survey123 to get reports which ArcGIS Online users then edit using a web map. So I am lucky I can use Arcade expressions in a Form. That Arcade expression is adapted from&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/from-the-smart-editor-to-smart-forms" target="_blank"&gt;From the Smart Editor to Smart Forms&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/from-the-smart-editor-to-smart-forms/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/from-the-smart-editor-to-smart-forms/&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;wegvak&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;FeatureSetByName&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$map&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;&lt;FONT color="#FF9900"&gt;POLYGONLAYER_STREETNAMES&lt;/FONT&gt;&amp;gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;bufferedLocation&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Buffer&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;500&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'meters'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;candidateWegvakken&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Intersects&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;wegvak&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;bufferedLocation&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;featuresWithDistances&lt;/SPAN&gt;&lt;SPAN&gt; = []&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;candidateWegvakken&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Push&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;featuresWithDistances&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'distance'&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;Distance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'feet'&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'feature'&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Sort the candidates by distance using a custom function&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;function&lt;/SPAN&gt; &lt;SPAN&gt;sortByDistance&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'distance'&lt;/SPAN&gt;&lt;SPAN&gt;] - &lt;/SPAN&gt;&lt;SPAN&gt;b&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'distance'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;sorted&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Sort&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;featuresWithDistances&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;sortByDistance&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Get the closest candidate&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;closestFeatureWithDistance&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;First&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;sorted&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// If there was no candidate, return null&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;IsEmpty&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;closestFeatureWithDistance&lt;/SPAN&gt;&lt;SPAN&gt;)) { &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;null&lt;/SPAN&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// Return the candidate name attribute value&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;`&lt;/SPAN&gt;&lt;SPAN&gt;${&lt;/SPAN&gt;&lt;SPAN&gt;closestFeatureWithDistance&lt;/SPAN&gt;&lt;SPAN&gt;[&lt;/SPAN&gt;&lt;SPAN&gt;'feature'&lt;/SPAN&gt;&lt;SPAN&gt;][&lt;/SPAN&gt;&lt;SPAN&gt;'&amp;lt;&lt;FONT color="#FF9900"&gt;STREET_NAME&lt;/FONT&gt;&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt;]}&lt;/SPAN&gt;&lt;SPAN&gt;`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frankly, it's great and all we can use AI in Survey123, but we still cannot properly use Arcade expressions and use other coordinate systems in Survey123. I think the priorities are mixed up here..&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jan 2026 08:05:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/using-pull-data-to-looking-up-closest-point/m-p/1681266#M65321</guid>
      <dc:creator>Erwinvan_Veen1</dc:creator>
      <dc:date>2026-01-31T08:05:21Z</dc:date>
    </item>
  </channel>
</rss>

