<?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: Extracting Road Names for Beginning and End Locations in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208440#M59350</link>
    <description>&lt;P&gt;That happened when I deleted identicals, where streets turn from E to W or S to N. It left those in.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2022 20:41:01 GMT</pubDate>
    <dc:creator>ChrisSpadi</dc:creator>
    <dc:date>2022-08-31T20:41:01Z</dc:date>
    <item>
      <title>Extracting Road Names for Beginning and End Locations</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208363#M59335</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I have a network of roads with street names. I created point features of beginning and end vertices of the lines to get the road names of intersecting roads. Then I spatial joined them back to the original dataset.&lt;/P&gt;&lt;P&gt;I tried using split function and it worked but in some cases (row 2) where the road names have a third or fourth name- this solution doesn't work.&lt;/P&gt;&lt;P&gt;What I would like is for the 2nd row to have:&lt;/P&gt;&lt;P&gt;BegLocation_New equal Chapala St&lt;/P&gt;&lt;P&gt;EndLocation_New equal State St&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChrisSpadi_1-1661970014216.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50039iFD1487CAC92DEB31/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChrisSpadi_1-1661970014216.png" alt="ChrisSpadi_1-1661970014216.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I was thinking I could wildcard query the field that has more than one '&amp;amp;' delimiter and remove text before it?&lt;/P&gt;&lt;P&gt;Looking for solution in python or arcade within the field calculator.&lt;/P&gt;&lt;P&gt;OR if there is a model or some script starting from scratch I am open to that as well. Have found some solutions but many are either out dated or don't specifically offer what I am looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any feedback or input. Best Regards.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 18:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208363#M59335</guid>
      <dc:creator>ChrisSpadi</dc:creator>
      <dc:date>2022-08-31T18:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Road Names for Beginning and End Locations</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208381#M59341</link>
      <description>&lt;P&gt;If there are more than two streets in the EndLocation attribute, how do you know which one to select? If it's always the second to last one, take the length - 2 array value of the split.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var string = 'Chapala St &amp;amp; Bath St &amp;amp; E Spring St &amp;amp; West St';
var arr = split(string, '&amp;amp;')
return arr[Count(arr)- 2]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 19:07:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208381#M59341</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-08-31T19:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Road Names for Beginning and End Locations</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208426#M59346</link>
      <description>&lt;P&gt;I don't think this will work because I am realizing the BegLocation and EndLocation have the intersecting street name but they vary in placement in the string base off the original fc beg and end vertices.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Work Example.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/50057i2860C06A20FE4CB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Work Example.png" alt="Work Example.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Is there a way to use the NAME_ALF field to remove it from the BegLocation and EndLocation fields? That way the remaining string would in most cases be the intersection road names?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 20:12:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208426#M59346</guid>
      <dc:creator>ChrisSpadi</dc:creator>
      <dc:date>2022-08-31T20:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Road Names for Beginning and End Locations</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208433#M59348</link>
      <description>&lt;P&gt;You can cycle through the Split array items and discard the ones that equal the NAME_ALF value. The next problem would be picking the right one for your second row in this example. Why would it be State and not E Anapamu?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var street = 'Bath St';
var string = 'Chapala St &amp;amp; Bath St';
var arr = split(string, '&amp;amp;')
var output
for (var i in arr) {
    if (Trim(arr[i]) != street) return Trim(arr[i])
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 20:35:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208433#M59348</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-08-31T20:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Road Names for Beginning and End Locations</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208440#M59350</link>
      <description>&lt;P&gt;That happened when I deleted identicals, where streets turn from E to W or S to N. It left those in.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 20:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/extracting-road-names-for-beginning-and-end/m-p/1208440#M59350</guid>
      <dc:creator>ChrisSpadi</dc:creator>
      <dc:date>2022-08-31T20:41:01Z</dc:date>
    </item>
  </channel>
</rss>

