I’m looking for advice on setting up the best approach to create a Geofence in Velocity. I have a real time analytic setup with two output layers. I created a winter operations public facing snow plow map which is running in an ArcGIS solutions insta app frame. Our County Public Works winter ops fleet is made up of 54 vehicle assets, and the two output layers in the real time analytic show vehicle observations. One of the outputs keeps the latest observation displaying current location, it updates 2 minutes. The other layer is very similar except it keeps all location observations and adds to the feature service to create a history of vehicle point locations along our primary snow routes. I also have a new layer I want to use to isolate vehicle points in some specific locations. The new layer is not in the real time analytic yet. I’m trying to figure out how to setup a geofence with it but I don’t think it’s the traditional geofence workflow or maybe I’m misunderstanding the right approach to take in setting up a geofence for my purpose. The layer has 15 polygons which represent Pit Material locations and Road shop facility’s where the plows go to get salt and sand. I want to exclude those locations from my output layers.
My workflow setup: I run both outputs as non-spatial temporal so that I can share publicly on our County home page. We have the green light to share the web app out but I need to first figure out how to accomplish one more action item before it’s ready. I need to hide vehicles when at pits and facilities. In the web map / web app I run the current observation layer with a directional arrow icon using heading degrees to indicate the vehicle direction of travel. I then copy the other output layer (3x) which shows all observations in the webmap and filter each copy by a different amount of time to create a layered effect showing points as breadcrumb trails for the Last Hour, Last 1-4 hours, and 4-12 hours ago. It works really well and everyone seems to like it. The first hour uses a much more contrasted symbol to pop it off the map and subsequent times layers use a faded color with some transparences.
The Points get real busy in the pits and road shop facility areas and we only want to display vehicle points publicly when they are on our primary snow plow routes.
I’ve thought about using Snap to Network to clean up the points where our vehicles travel, but truthfully the points are actually clean and display nicely when they update. I’m wondering which path to take to accomplish this; a Geofence of some sort or snap to network. I wonder if what I’m trying to accomplish is like a reverse geofence? if such a thing exists. If I was to use the polygon feature service with pits and shop locations where would that go in the Velocity real time analytic, before the map fields piece and after the feed, or after the mapping fields and before the output layers? Or should I be thinking about snap to network more so than a geofence option? I’ve read about Filter by Geometry and I’m learning about those geofencing parameters. That would require to me add a join ID field to the polygon pits shop layer I assume if I need to also apply some logic with the Join time Windows, End time parameters piece etc. I never saw where I could simply throw that layer into the analytic and logically not display trucks when within those polygons. That seems like a long way around to accomplish not displaying the trucks at certain locations. I think of Geofences as areas I want to capture something when a truck enters the area. I want to exclude the oppositive in this situation. Should I add a Join ID field to my Pits and Shop polygon layer so that I’m prepared to connect it somewhere in the real time analytic. Does anyone have suggestion on which path I should take to accomplish this. Here’s what the web app frame looks like showing the observations mentioned above. Thanks for your help if anyone can give me some pointers.
Pic attachments show the app running on my iPhone from the Insta web app and one is from an OpsDash I made for internal use. The second pic is a great example of truck traffic when at our facility coming in for Salt loads. The map changes drastically throughout the day and night when things are happening. Some of the time there are no points to display if enough hours have passed outside my time filters on the layers without any truck assignments.
Thanks, Matt George