While ArcGIS Tracker layers ('Tracks' & 'Last Known Location') can be used to live stream location data back to our web portal, this data is protected by additional security settings which prevent them from being shared publicly. Understandably, this is is by-design to protect personal privacy and our location being accidentally shared with the wrong people.
There is however, another method by which we can configure a near-live location stream for public tracking purposes... Consider the following public web app purposes:
These are fairly simple and low storage (credit consumption) purposes for which we can use the ArcGIS Online suite to solve.
The workflow in this blog post will combine the following ArcGIS products to configure a public web app for near-live location streaming and tracking:
Disclaimer:
ArcGIS QuickCapture will be best suited to streaming this magnitude features from a single device. Attempting to apply this method to multiple users (e.g. a fleet of cars) within a single project, will likely produce performance issues and a less-and-less "live" experience.
In this example, we're going to track a theoretical IceCream truck, as it makes its way throughout a neighbourhood.
In ArcGIS Online, we'll want to create a point feature layer - I've named mine "Icecream Truck".
Then, access the QuickCapture Designer via the App Shortcut menu in ArcGIS Online, or using the URL: https://www.arcgis.com/apps/quickcapture/
Creating a new QuickCapture project is easy:
This last step will ensure that streamed point features are synced back to the feature layer in ArcGIS Online as soon as they are captured.
Now, back in ArcGIS Online...
Save the web map and give it a Name, Tags, and Summary...
Now, let's add the new web map to a Web Application...
Now we (or the field worker) can begin streaming their location from ArcGIS QuickCapture, and their movements can be observed to update every 30 seconds in the web application, with their location over the past 5 minutes trailing behind them!
Example:
View Layer Filters: Features will disappear from the map after our view layer's time threshold has passed. To work around this, we could apply a "most recent" filter to the feature service's JSON by following the workflow outlined here: https://community.esri.com/t5/arcgis-online-documents/display-latest-feature-in-a-feature-service/ta...
And using the following syntax as a guide, we can return the most recent 5 points per username:
{
"viewLayerDefinition": {
"topFilter": {
"orderByFields": "OBJECTID ASC",
"groupByFields": "Creator",
"topCount": 5
}
}
}
Storage Concerns: Streaming and storing features in bulk using ArcGIS QuickCapture is going to have an increasing impact on ArcGIS Online credit consumption over time. We need to remember to batch delete the collected point features once they are no longer relevant to our purpose. This can be done easily in ArcGIS Pro by doing the following:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.