How To Share AGOL User Location With Public via Web Map?

1201
4
10-21-2024 04:29 PM
SJ_COV
by
Emerging Contributor

Hi everyone,

I've built a public-facing web map with a layer that shows pre-determined routes around a city. These routes are followed by an organization vehicle for certain events. My goal is to track the vehicle's last known location using something like Fields Map, GPS, AirTag, etc. or some other technology to show the public where the vehicle is currently located. A simple example of this would be tracking an ice cream truck and then using a public web map to see when it's nearby. 

Does anyone have a solution that might work for this?

I've tried creating a Location Sharing Service as a hosted Feature Layer in AGOL. Using this, I have been able to track/trace specific user locations. However, I cannot share the Feature Layer with the public. Please note, this is not because of limited permission on my AGOL account. Apparently, the Location Sharing Service provided by ESRI cannot be shared beyond the organization (or at least that's what other users have indicated).

So again, is there be any way to use Field Maps, GPS, AirTag, etc. to track a vehicles location in a way that can be shared in an existing, public-facing web map?

Thank you for your help!

0 Kudos
4 Replies
Laura
by MVP Regular Contributor
MVP Regular Contributor
0 Kudos
SJ_COV
by
Emerging Contributor

Thanks for sharing. Unfortunately, this is only a once a year project with only one tracked vehicle. Something like ArcGIS Velocity would be overkill both in cost and setup. I'm looking for something to solve this issue with a normal AGOL Enterprise license. 

0 Kudos
TonyContreras_Frisco_TX
Frequent Contributor

You can also try creating a feature service item of the Tracker feature service (Add by URL if you have the Service URL and save the Tracker user credentials) and share that with everyone. This will for sure have serious security implications, so think through what protocols are necessary in this situation.

0 Kudos
SJ_COV
by
Emerging Contributor

Thanks for your suggestion. 

When enabling Location Sharing of a certain user in my group, ESRI created a Feature Layer with three unique layers inside: Tracks, Last Known Location, and Track Lines. This group of layers cannot be shared publicly because of ESRI. I've tried pulling the URL from a single layer type (ex: Last Known Location) and creating a new Feature Layer. This works and allows me to share publicly...however, the features like Tracks, Last Known Location, and Track Lines are not visible in the newly created Feature Layer. The only place I can actually see location data is in the original Location Sharing Feature Layer which is not sharable beyond the organization.

If there is more to this that I'm missing, please let me know. Still diligently searching for a solution 🙂

0 Kudos