<?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: Get route m-value at point-clicked using Arcade? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1632108#M97157</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Updating this old thread for tracking and community documentation.&amp;nbsp;&lt;/SPAN&gt;Get route m-value at point-clicked is out of the box Pro function and doesn't require any custom code.&lt;/P&gt;&lt;P&gt;At&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ArcGIS Pro 2.4&lt;/STRONG&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Navigation&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Explore&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tool included this enhancement.&amp;nbsp;&amp;nbsp;You can view m-values in a pop-up for a feature that contains measured values (m-values) in their geometries. The coordinate display at the bottom of the pop-up includes the m-value closest to the clicked location in the map or scene. For linear geometries, the value is calculated by interpolating between the nearest vertices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Pop-ups for&amp;nbsp;M-aware features" href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/pop-ups.htm" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;Pop-ups for&amp;nbsp;M-aware features&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Related thread&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Identify Measures in ArcPro" href="https://community.esri.com/t5/roads-and-highways-questions/identify-measures-in-arcpro-similar-to-arcmap-where-you-can/m-p/1035647" target="_self"&gt;Link&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with Screenshots.&lt;/P&gt;&lt;P&gt;There is also&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/experience-builder/11.5/configure-widgets/lrs-identify-widget.htm" target="_blank" rel="noopener"&gt;LRS Identify widget&lt;/A&gt; in Experience Builder for web apps.&lt;/P&gt;&lt;P&gt;FYI&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/786884"&gt;@KatyLewis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jul 2025 17:12:40 GMT</pubDate>
    <dc:creator>AyanPalit</dc:creator>
    <dc:date>2025-07-10T17:12:40Z</dc:date>
    <item>
      <title>Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542031#M23831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All - I see that it is possible to access x,y,z, &amp;amp; m values for a custom pop-up using Arcade. The code below appears to be working in ArcGIS Pro 2.5.0 per my route layer:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var line = Geometry($feature)
var paths = line.paths;
var startingpoint = paths[0][0];
return text(startingpoint)‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I'm not yet understanding how to return the m-value for any point along the route that was clicked, rather than the centroid or endpoints.&amp;nbsp; The m-value I'm looking for appears in the pop-up panel at lower right in ArcGIS Pro 2.5.0 (see pic below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any assistance appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="484155" alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/484155_mvalueinpopup.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:30:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542031#M23831</guid>
      <dc:creator>NickHarvey</dc:creator>
      <dc:date>2021-12-11T23:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542032#M23832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/21856"&gt;Nick Harvey&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var line = Geometry($feature)&lt;BR /&gt;var paths = line.paths;&lt;BR /&gt;var startingpoint = paths[0][0]["x"];&lt;BR /&gt;return text(startingpoint)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;EM&gt;If this answer has helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 23:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542032#M23832</guid>
      <dc:creator>BenTurrell</dc:creator>
      <dc:date>2020-03-05T23:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542033#M23833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for chiming in Ben - You're right...I can get to the m-value for the starting point of the route by replacing "x" with "m" for example...But I'm chasing the m-value for &lt;EM&gt;any&lt;/EM&gt; point along the route, as it appears at the bottom of the pop-up panel at 2.5.0 where the route is clicked.&amp;nbsp; My idea was to build a calculation(expression) in the pop-up which uses this m-value as a variable.&amp;nbsp; The m-value is being populated at the bottom of the pop-up panel.&amp;nbsp; I'm not understanding how to reference it into the pop-up body though (?).&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 13:39:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542033#M23833</guid>
      <dc:creator>NickHarvey</dc:creator>
      <dc:date>2020-03-09T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542034#M23834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;BR /&gt;Did you make any progress with this?&lt;BR /&gt;I'm writing the same expression for start, end and current m values.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var line = Geometry($feature)&lt;BR /&gt;var paths = line.paths;&lt;BR /&gt;var firstpoint = paths[0][0]["m"];&lt;BR /&gt;var lastpoint = paths[0][Count(paths[0])-1]["m"];&lt;BR /&gt;var currentpoint = paths&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;["m"]&lt;BR /&gt;return text(currentpoint)&lt;/LI&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But have no idea what to put in place of the * shown above.&lt;BR /&gt;Is this even the correct approach to using M-values in pop-ups?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 10:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542034#M23834</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-05-13T10:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542035#M23835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey thanks for responding Nicholas - No progress sorry to say...Yeah, my guess is that it is not the right approach for retrieving m-values dynamically along the line because our Arcade expressions above each refer to a specific vertex (?).&amp;nbsp; As my picture above depicts - m-values do show up in the standard popup though (at bottom right)...I wonder about SDK (?) &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 18:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542035#M23835</guid>
      <dc:creator>NickHarvey</dc:creator>
      <dc:date>2020-05-13T18:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542036#M23836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/339975"&gt;Nicholas Flett&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.esri.com/people/nickharvey"&gt;nickharvey&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The limitation with Arcade is that you start off with the geometry you clicked on (you M-enabled line) and not the point location of where you clicked. Therefore, it is not possible to determine at which location of the line feature you clicked when using Arcade. The SDK&amp;nbsp;should allow you to do this, although the complexity of the implementation will increase.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 13:37:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/542036#M23836</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-05-15T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1147038#M51875</link>
      <description>&lt;P&gt;Hello Nick,&lt;/P&gt;&lt;P&gt;Hello everybody. I am trying to do the same dynamically in Argis Online&lt;EM&gt;.&lt;FONT color="#999999"&gt;(my point geometry change, my m value change in the map context windows)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I want to use the cut function to get the left length of an intersecting (or nearest) line with M value in a field.&lt;/P&gt;&lt;P&gt;I will write more after testing all that.&lt;/P&gt;&lt;P&gt;i have got to 90° rotate the result of a clip between the buffer of my point and the line.&lt;/P&gt;&lt;P&gt;not easy...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it quite works...&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;récupérer le cumul par intersection du point avec l'arc.&lt;BR /&gt;*/&lt;BR /&gt;var CurDep = $feature.ROUTE&lt;BR /&gt;var CurBuffGeom =Extent(Buffer($feature, 2, 'meters'))&lt;BR /&gt;var CurArcGeom = Back(Filter(FeatureSetById($map, /* tests_arcade - Test li */ "17f27378b8d-layer-3"),'route=@CurDep'))&lt;BR /&gt;var CUTTER = rotate(Clip(CurArcGeom,CurBuffGeom),90)&lt;BR /&gt;return LengthGeodetic(first(Cut(CurArcGeom, CUTTER)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note : replaced first with back (when i flip the cutter, 90° the left part is the end part of the line.)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 08:24:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1147038#M51875</guid>
      <dc:creator>DISIG</dc:creator>
      <dc:date>2022-02-24T08:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1337440#M73956</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;Working on the same sort of workflow. I guess what would be handy is a "$clickedlocation" profile variabele.&amp;nbsp; We could create the geometry object for that location and hopefully extract M and Z-values from "$feature"..&lt;BR /&gt;&lt;BR /&gt;I try to create a popup for route segments exposing some route statistics. Id also would like to show the progress (M) and elevation (Z) of the clicked location. Only way I can think of to achieve this, is to convert vertices to points and do the popup on that layer.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 19:01:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1337440#M73956</guid>
      <dc:creator>BartvanderWolf</dc:creator>
      <dc:date>2023-10-12T19:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1338101#M74018</link>
      <description>&lt;P&gt;this final code work fine for me.&lt;/P&gt;&lt;P&gt;i pre calculate the "M" value.&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;// CALCUL DU CUMUL POUR UNE LIGNE&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// version 1.0 2023-03-16&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;// variables utilisateur&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;CAS&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &lt;SPAN&gt;0&lt;/SPAN&gt; ;&lt;SPAN&gt;//mettre 0 pour point de début et -1 point de fin&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;console&lt;/SPAN&gt;(&lt;SPAN&gt;"cas choisis : "&lt;/SPAN&gt;+ &lt;SPAN&gt;CAS&lt;/SPAN&gt; )&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;SearchingLayer&lt;/SPAN&gt; = &lt;SPAN&gt;FeatureSetByName&lt;/SPAN&gt;(&lt;SPAN&gt;$map&lt;/SPAN&gt;,&lt;SPAN&gt;"ROUTE"&lt;/SPAN&gt;);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;TOLERANCE&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &lt;SPAN&gt;20&lt;/SPAN&gt; ;&lt;SPAN&gt;// la variable TOLERANCE de capture fixée à 5 mètres peut être ajustée si nécessaire&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;console&lt;/SPAN&gt;(&lt;SPAN&gt;"tolérance choisie : "&lt;/SPAN&gt;+&lt;SPAN&gt;TOLERANCE&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;// 1 - Extraction du point de calcul et recherche&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;myPoint&lt;/SPAN&gt; &amp;nbsp; = &lt;SPAN&gt;Point&lt;/SPAN&gt;({&lt;SPAN&gt;x&lt;/SPAN&gt;: &lt;SPAN&gt;Geometry&lt;/SPAN&gt;(&lt;SPAN&gt;$feature&lt;/SPAN&gt;)[&lt;SPAN&gt;'paths'&lt;/SPAN&gt;][&lt;SPAN&gt;CAS&lt;/SPAN&gt;][&lt;SPAN&gt;CAS&lt;/SPAN&gt;][&lt;SPAN&gt;'x'&lt;/SPAN&gt;],&lt;SPAN&gt;y&lt;/SPAN&gt;: &lt;SPAN&gt;Geometry&lt;/SPAN&gt;(&lt;SPAN&gt;$feature&lt;/SPAN&gt;)[&lt;SPAN&gt;'paths'&lt;/SPAN&gt;][&lt;SPAN&gt;CAS&lt;/SPAN&gt;][&lt;SPAN&gt;CAS&lt;/SPAN&gt;][&lt;SPAN&gt;'y'&lt;/SPAN&gt;],&lt;SPAN&gt;spatialReference&lt;/SPAN&gt;: { &lt;SPAN&gt;wkid&lt;/SPAN&gt;: &lt;SPAN&gt;102100&lt;/SPAN&gt; }})&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;console&lt;/SPAN&gt;(&lt;SPAN&gt;"coordonnées de mon point : "&lt;/SPAN&gt;+ &lt;SPAN&gt;myPoint&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;buff&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;= &lt;SPAN&gt;Extent&lt;/SPAN&gt;(&lt;SPAN&gt;bufferGeodetic&lt;/SPAN&gt;(&lt;SPAN&gt;myPoint&lt;/SPAN&gt;,&lt;SPAN&gt;TOLERANCE&lt;/SPAN&gt;,&lt;SPAN&gt;'meters'&lt;/SPAN&gt;));&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;myGeom&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp;= &lt;SPAN&gt;myPoint&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;MySearch&lt;/SPAN&gt; = &lt;SPAN&gt;Intersects&lt;/SPAN&gt;(&lt;SPAN&gt;BufferGeodetic&lt;/SPAN&gt;(&lt;SPAN&gt;myGeom&lt;/SPAN&gt;, &lt;SPAN&gt;TOLERANCE&lt;/SPAN&gt;, &lt;SPAN&gt;"meters"&lt;/SPAN&gt;),&lt;SPAN&gt;SearchingLayer&lt;/SPAN&gt;);&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;// le calcul renvoit -1 pour signifier absence de rd à proximité&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;(&lt;SPAN&gt;isempty&lt;/SPAN&gt;(&lt;SPAN&gt;Mysearch&lt;/SPAN&gt;)){&lt;SPAN&gt;return&lt;/SPAN&gt; -&lt;SPAN&gt;1&lt;/SPAN&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;// dans les autres cas on calcul pour le cas choisi.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;(&lt;SPAN&gt;count&lt;/SPAN&gt;(&lt;SPAN&gt;Mysearch&lt;/SPAN&gt;)==&lt;SPAN&gt;1&lt;/SPAN&gt;){&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;console&lt;/SPAN&gt;(&lt;SPAN&gt;"cas une seule rd"&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;Arc&lt;/SPAN&gt; = &lt;SPAN&gt;first&lt;/SPAN&gt;(&lt;SPAN&gt;Mysearch&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;{&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;SPAN&gt;console&lt;/SPAN&gt;(&lt;SPAN&gt;"cas plusieurs rd"&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;EvDistance&lt;/SPAN&gt; = &lt;SPAN&gt;Infinity&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;MyNearest&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &lt;SPAN&gt;for&lt;/SPAN&gt; (&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;listing&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;MySearch&lt;/SPAN&gt;){&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;DynDistance&lt;/SPAN&gt; = &lt;SPAN&gt;Distance&lt;/SPAN&gt;(&lt;SPAN&gt;listing&lt;/SPAN&gt;,&lt;SPAN&gt;myGeom&lt;/SPAN&gt;, &lt;SPAN&gt;"meters"&lt;/SPAN&gt;);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;if&lt;/SPAN&gt;(&lt;SPAN&gt;DynDistance&lt;/SPAN&gt; &amp;lt; &lt;SPAN&gt;EvDistance&lt;/SPAN&gt;){&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;EvDistance&lt;/SPAN&gt; = &lt;SPAN&gt;DynDistance&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;MyNearest&lt;/SPAN&gt; = &lt;SPAN&gt;listing&lt;/SPAN&gt;;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;Arc&lt;/SPAN&gt; = &lt;SPAN&gt;MyNearest&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/DIV&gt;&lt;DIV&gt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SPAN&gt;(&lt;SPAN&gt;Arc&lt;/SPAN&gt;,&lt;SPAN&gt;buff&lt;/SPAN&gt;),&lt;SPAN&gt;90&lt;/SPAN&gt;);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt; (&lt;SPAN&gt;p&lt;/SPAN&gt; &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;newLine&lt;/SPAN&gt;.&lt;SPAN&gt;paths&lt;/SPAN&gt;){&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;segment&lt;/SPAN&gt; &amp;nbsp;= &lt;SPAN&gt;Polyline&lt;/SPAN&gt;({&lt;SPAN&gt;paths&lt;/SPAN&gt;: [&lt;SPAN&gt;newLine&lt;/SPAN&gt;.&lt;SPAN&gt;paths&lt;/SPAN&gt;[&lt;SPAN&gt;p&lt;/SPAN&gt;]],&lt;SPAN&gt;spatialReference&lt;/SPAN&gt;:{&lt;SPAN&gt;latestWkid&lt;/SPAN&gt;:&lt;SPAN&gt;3857&lt;/SPAN&gt;,&lt;SPAN&gt;wkid&lt;/SPAN&gt;:&lt;SPAN&gt;102100&lt;/SPAN&gt;}})&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;segLongueur&lt;/SPAN&gt; = &lt;SPAN&gt;lengthGeodetic&lt;/SPAN&gt;(&lt;SPAN&gt;segment&lt;/SPAN&gt;,&lt;SPAN&gt;'meters'&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;if&lt;/SPAN&gt; (&lt;SPAN&gt;intersects&lt;/SPAN&gt;(&lt;SPAN&gt;segment&lt;/SPAN&gt;,&lt;SPAN&gt;cutter&lt;/SPAN&gt;)==&lt;SPAN&gt;true&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;round&lt;/SPAN&gt;(&lt;SPAN&gt;longueur&lt;/SPAN&gt;+&lt;SPAN&gt;reste&lt;/SPAN&gt;)}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;else&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;SPAN&gt;longueur&lt;/SPAN&gt; += &lt;SPAN&gt;segLongueur&lt;/SPAN&gt;;}&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Oct 2023 06:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1338101#M74018</guid>
      <dc:creator>DISIG</dc:creator>
      <dc:date>2023-10-16T06:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1555187#M89764</link>
      <description>&lt;P&gt;This is FINALLY possible, with the addition of the $userInput profile variable!&amp;nbsp; Try this:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var geom=Geometry($feature)&lt;BR /&gt;var densegeom=Densify(geom, 1)&lt;BR /&gt;var PTC=PointToCoordinate(densegeom, $userInput)&lt;BR /&gt;var SegNum=PTC.segmentID&lt;BR /&gt;var paths=densegeom.paths&lt;BR /&gt;var POI = paths[0][SegNum];&lt;BR /&gt;return round(POI.m,4)&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=dddZTpsOjY0" target="_blank"&gt;https://www.youtube.com/watch?v=dddZTpsOjY0&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1555187#M89764</guid>
      <dc:creator>JosephJordan</dc:creator>
      <dc:date>2024-11-04T18:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1631987#M97140</link>
      <description>&lt;P&gt;This is gold!!! Thank you so much. Now users can click along a line and get the nearest m value.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 13:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1631987#M97140</guid>
      <dc:creator>KatyLewis</dc:creator>
      <dc:date>2025-07-10T13:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1632103#M97156</link>
      <description>&lt;P&gt;Right??! You bet!&amp;nbsp; I think ESRI has made experience widgets that work if you have Roads &amp;amp; Highways too....but this is nice because you don't have to click a special widget....can just make the Road ID and M value show in the regular pop up.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 16:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1632103#M97156</guid>
      <dc:creator>JosephJordan</dc:creator>
      <dc:date>2025-07-10T16:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1632108#M97157</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Updating this old thread for tracking and community documentation.&amp;nbsp;&lt;/SPAN&gt;Get route m-value at point-clicked is out of the box Pro function and doesn't require any custom code.&lt;/P&gt;&lt;P&gt;At&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ArcGIS Pro 2.4&lt;/STRONG&gt;, the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Navigation&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Explore&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tool included this enhancement.&amp;nbsp;&amp;nbsp;You can view m-values in a pop-up for a feature that contains measured values (m-values) in their geometries. The coordinate display at the bottom of the pop-up includes the m-value closest to the clicked location in the map or scene. For linear geometries, the value is calculated by interpolating between the nearest vertices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Pop-ups for&amp;nbsp;M-aware features" href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/navigation/pop-ups.htm" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;Pop-ups for&amp;nbsp;M-aware features&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Related thread&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Identify Measures in ArcPro" href="https://community.esri.com/t5/roads-and-highways-questions/identify-measures-in-arcpro-similar-to-arcmap-where-you-can/m-p/1035647" target="_self"&gt;Link&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with Screenshots.&lt;/P&gt;&lt;P&gt;There is also&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/experience-builder/11.5/configure-widgets/lrs-identify-widget.htm" target="_blank" rel="noopener"&gt;LRS Identify widget&lt;/A&gt; in Experience Builder for web apps.&lt;/P&gt;&lt;P&gt;FYI&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/786884"&gt;@KatyLewis&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 17:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1632108#M97157</guid>
      <dc:creator>AyanPalit</dc:creator>
      <dc:date>2025-07-10T17:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1641203#M98099</link>
      <description>&lt;P&gt;Now that the m value is exposed in arcade the code is&amp;nbsp; a bit more easy &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;the video show how to dynamically get a distance relative to a landmark.&lt;/P&gt;&lt;DIV&gt;&lt;H6&gt;&lt;SPAN&gt;// &lt;A href="https://www.youtube.com/watch?v=dddZTpsOjY0" target="_blank"&gt;https://www.youtube.com/watch?v=dddZTpsOjY0&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;click&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;$userinput&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// step2 : get cumul from segment&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;geom&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN&gt;Geometry&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;$feature&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;RD&l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t;.&lt;/SPAN&gt;&lt;SPAN&gt;PR&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;' + '&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;diff&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;pr&lt;/SPAN&gt;&lt;/H6&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Aug 2025 12:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1641203#M98099</guid>
      <dc:creator>DISIG</dc:creator>
      <dc:date>2025-08-12T12:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Get route m-value at point-clicked using Arcade?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1658393#M99587</link>
      <description>&lt;P&gt;I'm with Katy - Thanks for posting this Joseph!&amp;nbsp; &amp;nbsp;So, this question/post (as titled) was about &lt;STRONG&gt;using Arcade to get the m value&lt;/STRONG&gt; and this appears to work well.&amp;nbsp; I am leaving all three marked solutions on the thread as valid bits of information, but yours wins 'Author's Choice'.&amp;nbsp; In 2020, Xander Bakker's response was accurate, so thanks for updating this thread and for sharing your other solutions too.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nick&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Oct 2025 12:43:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/get-route-m-value-at-point-clicked-using-arcade/m-p/1658393#M99587</guid>
      <dc:creator>NickHarvey</dc:creator>
      <dc:date>2025-10-16T12:43:24Z</dc:date>
    </item>
  </channel>
</rss>

