<?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 alert when 2 points are close to each others in ArcGIS GeoEvent Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1367254#M4053</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am receiving an AVL truck points, and when I recieve 2 trucks which are close to each other in some distance I want to create an alert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can do this&lt;/P&gt;&lt;P&gt;appreciate any help&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 09:02:40 GMT</pubDate>
    <dc:creator>Moi_Nccncc</dc:creator>
    <dc:date>2024-01-08T09:02:40Z</dc:date>
    <item>
      <title>alert when 2 points are close to each others</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1367254#M4053</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am receiving an AVL truck points, and when I recieve 2 trucks which are close to each other in some distance I want to create an alert.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can do this&lt;/P&gt;&lt;P&gt;appreciate any help&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 09:02:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1367254#M4053</guid>
      <dc:creator>Moi_Nccncc</dc:creator>
      <dc:date>2024-01-08T09:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: alert when 2 points are close to each others</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1367295#M4054</link>
      <description>&lt;P&gt;Dear Moi,&lt;/P&gt;&lt;P&gt;I hope you are doing well,&lt;/P&gt;&lt;P&gt;One solution can be utilizing Geoevent server and Geofence.&lt;/P&gt;&lt;P&gt;You should create a buffer with custom radius on AVL truck points and when the buffers have intersections using geofence, you can send an alert utilzing geoevent service.&lt;/P&gt;&lt;P&gt;good luck&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 12:03:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1367295#M4054</guid>
      <dc:creator>Amir-Sarrafzadeh-Arasi</dc:creator>
      <dc:date>2024-01-08T12:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: alert when 2 points are close to each others</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1367667#M4058</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/454563"&gt;@Moi_Nccncc&lt;/a&gt;&amp;nbsp;-- To expand on what&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/485161"&gt;@Amir-Sarrafzadeh-Arasi&lt;/a&gt;&amp;nbsp;suggests, yes, you want to use geofences to capture the buffered areas around the point locations of the trucks from your AVL. You need to do this in two steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;Use a&amp;nbsp;&lt;EM&gt;Buffer Creator&lt;/EM&gt; processor to construct an elliptical buffer around the last-known / latest-reported position of a truck. Allow the processor to replace the truck's point location (geometry) with the computed polygon. Then push the event record with its polygon geometry out as a feature record so that a Geofence Synchronization Rule can use the feature record to add / update a geofence in the GeoEvent Server's registry of known areas.&lt;BR /&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;In a second GeoEvent Service, use a&amp;nbsp;&lt;EM&gt;GeoTagger&lt;/EM&gt; processor to identify which geofences (elliptical areas) a given Truck's point location intersects. The name of each polygon geofence should be the TRACK_ID (e.g. vehicle name or identifier) of the truck whose location was used to create the buffered area.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now, you have a few things to consider. First is the rate at which AVL data is coming into your GeoEvent Server. Using a feature service to store feature records which are queried to update geofences will introduce significant latency in getting the geofences updated.&amp;nbsp;The alternative is to use a stream service to broadcast the feature records with their&amp;nbsp;elliptical geometries. A Geofence Synchronization Rule can be configured to subscribe to a stream service so the data is "pushed" into the geofence registry rather than requiring the synchronization rule to "poll" or query the feature records from a geodatabase.&lt;/P&gt;&lt;P&gt;You also have to recognize the fundamental race condition (when receiving an updated AVL point location) between using that point location to both update a polygon geofence and processor the point location to determine if it intersects any other geofences you've created / updated from other truck point locations.&amp;nbsp;You have to accept that&amp;nbsp;the last-known / latest-reported position of a truck can only be compared to&amp;nbsp;&lt;EM&gt;&lt;U&gt;established&lt;/U&gt;&lt;/EM&gt; geofences and allow some time for the geofence synchronization to make those updates to the geofence registry before trying to determine if the "latest" point location intersects a geofence.&lt;/P&gt;&lt;P&gt;How you choose to output the polygon buffer feature records matters. It will take some time to create an elliptical buffer, write the constructed geometry out as a feature record to a feature service, and a synchronization rule to then retrieve that feature record and update the GeoEvent Server's geofence registry.&lt;/P&gt;&lt;P&gt;If you use a feature service for your synchronization you must not set the&amp;nbsp;synchronization rule's&amp;nbsp;&lt;EM&gt;Refresh Interval&lt;/EM&gt;&amp;nbsp;too aggressively. You cannot, for example, expect GeoEvent Server's Geofence Synchronization Rule to query a feature service every second and update the geofence registry -- not when are also expecting&amp;nbsp; to create and update those polygon feature records and ingest, adapt and process the AVL location data records to determine intersections with the geofences. The default for geofence synchronization using a feature service is to query the feature service once every 15 minutes. You might set the&amp;nbsp;&lt;EM&gt;Refresh Interval&lt;/EM&gt; to run as quickly as once a minute, but I would not set it to run any more frequently than that. I would probably use a stream service to drive the geofence synchronization to minimize the latency in updating the geofence registry.&lt;/P&gt;&lt;P&gt;A final consideration is that a vehicle's point location&amp;nbsp;will most likely intersect that same&amp;nbsp;vehicle's buffered location (e.g. geofence). The first GeoEvent Service is creating the polygon buffers and driving updates into the geofence registry. The second GeoEvent Service is&amp;nbsp;receiving the same point locations&amp;nbsp;and using the established geofences to determine intersections. You will probably want to use something like a&amp;nbsp;&lt;A href="https://www.arcgis.com/home/item.html?id=68238a93e5fd4043ad0bbb501b265566" target="_self"&gt;Field Splitter&lt;/A&gt; processor to split the comma delimited list of geofence(s) names produced by your&amp;nbsp;&lt;EM&gt;GeoTagger&lt;/EM&gt;&amp;nbsp;and then&amp;nbsp;&lt;EM&gt;Filter&lt;/EM&gt; to discard any event record where the geofence name matches the truck's TRACK_ID. You only want to keep event records where a truck's point location intersects some&amp;nbsp;&lt;EM&gt;&lt;U&gt;other&lt;/U&gt;&lt;/EM&gt; truck's buffered location.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 00:14:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1367667#M4058</guid>
      <dc:creator>RJSunderman</dc:creator>
      <dc:date>2024-01-09T00:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: alert when 2 points are close to each others</title>
      <link>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1368224#M4063</link>
      <description>&lt;P&gt;Thank you all for your suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a few thing might make propused solution not rialable.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I have around 300 truck moving&amp;nbsp; all the time i can&amp;nbsp; recieve 15 messages per second.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For each point i have to create buffer and geofence.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;If I created for truck A geofence after few second it will change location and i have to remove the old geofence and create new one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;With these information gow much this will affect the performance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 04:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoevent-server-questions/alert-when-2-points-are-close-to-each-others/m-p/1368224#M4063</guid>
      <dc:creator>Moi_Nccncc</dc:creator>
      <dc:date>2024-01-10T04:45:07Z</dc:date>
    </item>
  </channel>
</rss>

