<?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 Fixing geocoding in XML using velocity in ArcGIS Velocity Questions</title>
    <link>https://community.esri.com/t5/arcgis-velocity-questions/fixing-geocoding-in-xml-using-velocity/m-p/1316825#M249</link>
    <description>&lt;P&gt;My organization recently gave me access to ArcGIS Velocity and I am working to pull some data from an external XML file. Within the XML schema, the geocoding for location is shown like this "36.63610131 -81.9392393". I'm trying to find if there is a calculation in Velocity that will allow me to fix the geocoding so that it matches the needed schema for the feature service to map the point. This is my first time using Velocity so any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 12:48:43 GMT</pubDate>
    <dc:creator>Bryan_Wade</dc:creator>
    <dc:date>2023-08-09T12:48:43Z</dc:date>
    <item>
      <title>Fixing geocoding in XML using velocity</title>
      <link>https://community.esri.com/t5/arcgis-velocity-questions/fixing-geocoding-in-xml-using-velocity/m-p/1316825#M249</link>
      <description>&lt;P&gt;My organization recently gave me access to ArcGIS Velocity and I am working to pull some data from an external XML file. Within the XML schema, the geocoding for location is shown like this "36.63610131 -81.9392393". I'm trying to find if there is a calculation in Velocity that will allow me to fix the geocoding so that it matches the needed schema for the feature service to map the point. This is my first time using Velocity so any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 12:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-questions/fixing-geocoding-in-xml-using-velocity/m-p/1316825#M249</guid>
      <dc:creator>Bryan_Wade</dc:creator>
      <dc:date>2023-08-09T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing geocoding in XML using velocity</title>
      <link>https://community.esri.com/t5/arcgis-velocity-questions/fixing-geocoding-in-xml-using-velocity/m-p/1316850#M250</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/47561"&gt;@Bryan_Wade&lt;/a&gt;&amp;nbsp;Thanks for the question we do have a few way to work with projections and calculations. Message me directly and we can set up a few minutes to look at your data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-questions/fixing-geocoding-in-xml-using-velocity/m-p/1316850#M250</guid>
      <dc:creator>JeffEismanGIS</dc:creator>
      <dc:date>2023-08-09T13:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Fixing geocoding in XML using velocity</title>
      <link>https://community.esri.com/t5/arcgis-velocity-questions/fixing-geocoding-in-xml-using-velocity/m-p/1318473#M260</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/47561"&gt;@Bryan_Wade&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for providing the additional information. The Public URL in XML format can be brought into a HTTP Poller feed. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.511virginia.org/mobile/data/RSS/StatewideIncident.xml" target="_blank"&gt;https://www.511virginia.org/mobile/data/RSS/StatewideIncident.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For this feed you can flatten and use channel as the root to get down to a usable schema. The geometry is still nested in the item-link field and looks like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;“ &lt;A href="http://www.511virginia.org/?lon1=-77.462688&amp;amp;lat1=37.5759&amp;amp;lon2=-77.462688&amp;amp;lat2=37.5759”" target="_blank"&gt;http://www.511virginia.org/?lon1=-77.462688&amp;amp;lat1=37.5759&amp;amp;lon2=-77.462688&amp;amp;lat2=37.5759”&lt;/A&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;It will need to be calculated in a Real Time analytic to pull the Latitude and Longitude.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffEismanGIS_0-1692043406256.png" style="width: 545px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78060i8652BAF4A9313F1E/image-dimensions/545x316?v=v2" width="545" height="316" role="button" title="JeffEismanGIS_0-1692043406256.png" alt="JeffEismanGIS_0-1692043406256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In a Real-Time Analytic add the feed that was just created and add a calculate field tool to the analytic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the Calculate Field tool&lt;/P&gt;&lt;P&gt;- Add new Geometry field&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffEismanGIS_3-1692043674886.png" style="width: 538px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78063iA38588DC68A84897/image-dimensions/538x357?v=v2" width="538" height="357" role="button" title="JeffEismanGIS_3-1692043674886.png" alt="JeffEismanGIS_3-1692043674886.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Use an arcade expression to calculate Geometry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var a = Split($feature.item_link, '?',10 ) [1]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var b = Split(a,'=', 5)[1]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var Long = Number(Split(b,'&amp;amp;', 2)[0])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var a = Split($feature.item_link, '?',10 ) [1]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var b = Split(a,'&amp;amp;', 5)[1]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var Lat = Number(Split(b,'=', 2)[1])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Point({"x" : Long, "y" : Lat, "spatialReference" : {"wkid" : 4326}})&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffEismanGIS_2-1692043443983.png" style="width: 564px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78062iB9FFBF0A63CC3A14/image-dimensions/564x351?v=v2" width="564" height="351" role="button" title="JeffEismanGIS_2-1692043443983.png" alt="JeffEismanGIS_2-1692043443983.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any other questions&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 20:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-velocity-questions/fixing-geocoding-in-xml-using-velocity/m-p/1318473#M260</guid>
      <dc:creator>JeffEismanGIS</dc:creator>
      <dc:date>2023-08-14T20:19:38Z</dc:date>
    </item>
  </channel>
</rss>

