<?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: Detecting Acceleration and Braking in ArcGIS Tracker Questions</title>
    <link>https://community.esri.com/t5/arcgis-tracker-questions/detecting-acceleration-and-braking/m-p/503653#M122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Aaron for your helpful&amp;nbsp;and&amp;nbsp;prompt reply! I&amp;nbsp;tested&amp;nbsp;to paste the text directly into the text box&amp;nbsp;and it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 May 2019 07:09:01 GMT</pubDate>
    <dc:creator>SonjaPritschet</dc:creator>
    <dc:date>2019-05-03T07:09:01Z</dc:date>
    <item>
      <title>Detecting Acceleration and Braking</title>
      <link>https://community.esri.com/t5/arcgis-tracker-questions/detecting-acceleration-and-braking/m-p/503651#M120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;I’m trying to detect incidents in&amp;nbsp;our location tracking data where users are accelerating and braking quickly. I’m using the GeoAnalytics tool “Detect Incidets”. (I’m following the example described in the workflow ‘Detecting Incidents Using Track Data’ on &lt;A href="https://earlyadopter.esri.com/"&gt;&lt;SPAN style="text-decoration: underline;"&gt;https://earlyadopter.esri.com&lt;/SPAN&gt;&lt;/A&gt; .)&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;When I copy the expression to signify the start of an incident I get a Syntax Error. Here is the expression that I copy in the expression field:&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;&lt;EM&gt;var acceleration = abs(($track.field["speed"].history(-2)[0] - $feature.speed)/(DateDiff($track.field["location_timestamp"].history(-2)[0], $feature.location_timestamp, "seconds")))&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;&lt;EM&gt;acceleration &amp;gt;= 2 &amp;amp;&amp;amp; $feature.activity == 5&lt;/EM&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;My colleagues and I couldn’t find an error in the syntax. Do we overlook something in the expression or could there be another reason?&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Thanks&lt;/P&gt;&lt;P style="margin: 0cm 0cm 8pt;"&gt;Sonja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 13:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-tracker-questions/detecting-acceleration-and-braking/m-p/503651#M120</guid>
      <dc:creator>SonjaPritschet</dc:creator>
      <dc:date>2019-05-02T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Acceleration and Braking</title>
      <link>https://community.esri.com/t5/arcgis-tracker-questions/detecting-acceleration-and-braking/m-p/503652#M121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the Arcade Editor is not aware of the GeoAnalytics "$track" variable and will say the syntax is invalid. But if you just paste the text directly into the text box (don't open the editor) and run the tool it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing to check is the quote characters. Sometimes when copy and pasting the quotes are converted to smart quotes which are different than regular ascii quotes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 13:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-tracker-questions/detecting-acceleration-and-braking/m-p/503652#M121</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-05-02T13:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting Acceleration and Braking</title>
      <link>https://community.esri.com/t5/arcgis-tracker-questions/detecting-acceleration-and-braking/m-p/503653#M122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Aaron for your helpful&amp;nbsp;and&amp;nbsp;prompt reply! I&amp;nbsp;tested&amp;nbsp;to paste the text directly into the text box&amp;nbsp;and it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 May 2019 07:09:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-tracker-questions/detecting-acceleration-and-braking/m-p/503653#M122</guid>
      <dc:creator>SonjaPritschet</dc:creator>
      <dc:date>2019-05-03T07:09:01Z</dc:date>
    </item>
  </channel>
</rss>

