The LocationTrackingManager
is the main entry point into the Tracker module. It can be used as shown in the following code example.
# Access the location tracking manager and check the status import arcgis gis = arcgis.gis.GIS("https://arcgis.com", "<username>", "<password>") print(gis.admin.location_tracking.status)LocationTrackingManager
This manages Location Sharing for an organization. It can be accessed from the gis as location_tracking
Additional information can be found here
Parameter
Description
gis
Required GIS
. The GIS to configure location sharing for.
This creates a TrackView
.
Parameter
Description
title
Required String. The title of the Track View to create.
Disables location sharing for the organization.
THIS WILL DELETE ALL LOCATION SHARING VIEWS, SERVICES, AND DATA.
True if successful, False otherwise
Enables location sharing for the organization.
Parameter
Description
tracks_layer_shards
The number of shards to use for the tracks layer. This only applies for ArcGIS Enterprise.
lkl_layer_shards
The number of shards to use for the last known location layer. This only applies for ArcGIS Enterprise.
tracks_layer_rolling_index_strategy
The rolling index strategy for the tracks layer [âDailyâ, âWeeklyâ, âMonthlyâ, âYearlyâ, âDecadeâ, âCenturyâ] This only applies for ArcGIS Enterprise.
True if successful, False otherwise
The Location Sharing Item
The last known locations FeatureLayer
Pauses location sharing for the organization.
True if successful, False otherwise
Resumes location sharing for the organization after it was paused.
True if successful, False otherwise
The retention period of the Location Sharing Tracks Layer. This is a positive integer whose units are defined by retention_period_units
A boolean indicating if the retention period is enabled
The retention period units (âHOURSâ, âDAYSâ, âMONTHSâ, âYEARSâ) of the Location Sharing Tracks Layer
The status of location sharing (âdisabledâ, âpausedâ, âenabledâ)
The track lines FeatureLayer
The tracks FeatureLayer
A Track View
Parameter
Description
item
Required Item
. The item that represents the Track View.
# Get a Track View and list mobile users. import arcgis gis = arcgis.gis.GIS("https://arcgis.com", "<username>", "<password>") item = gis.content.get("<item-id>") track_view = arcgis.apps.tracker.TrackView(item) mobile_users = track_view.mobile_users.list()
Deletes the Track View, including the group and view service.
The group that contains the Track Viewers and Layers
The Track View Item
The last known locations FeatureLayer
The MobileUserManager
for the Track View
The track lines FeatureLayer
The tracks FeatureLayer
The TrackViewerManager
for the Track View
A class that manages the Track Viewers in the Track View.
It can be accessed from the TrackView as viewers
Parameter
Description
track_view
Required TrackView
. The Track View to configure Track Viewers for.
Adds the specified usernames as Track Viewers
Parameter
Description
viewers
Required List of strings or User
. The list of usernames/users to add as Track Viewers.
Parameter
Description
viewers
Required List of strings or User
. The list of usernames/users to remove as Track Viewers.
List of all the Track Viewers
List of strings representing usernames
A class that manages the Mobile Users in the Track View.
It can be accessed from the TrackView as mobile_users
Parameter
Description
track_view
Required TrackView
. The Track View to configure Mobile Users for.
Adds the specified usernames as Mobile Users
Parameter
Description
users
Required List of strings or User
. The list of usernames/users to add as Mobile Users
Parameter
Description
users
Required List of strings or User
. The list of usernames/users to remove as Mobile Users.
List of all the Track Viewers
List of strings representing usernames
The View Definition Query of the tracks layer
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4