Find Cotravelers (Intelligence)

Summary

Extracts unique identifiers that are moving through space and time at user-defined intervals in a point track dataset.

Usage

  • The tool identifies unique identifiers from the Input Features that are moving within a specified time and distance interval of features from each other. The Input Features must be time enabled.

    To learn how to time enable a dataset, see Set time properties on data.

  • When selecting a field to use as the unique identifier, select either a field containing whole numbers or text. This will allow for a more efficient grouping for the features and return an optimal output.

  • Smaller time and spatial separation intervals are faster to process. For example, a time difference of 10 minutes and a spatial separation of 100 meters will process significantly faster than a time difference of 1 hour and spatial separation of 1 kilometer.

  • The output features represent the locations of the cotraveling features. Two fields will be added to the output features that indicate the time and spatial separation between the traveler and possible cotraveler in addition to other descriptive fields.

    The output features will include the following fields:

    • traveler_id—The unique identifier for the traveling feature. This is the identifier the cotraveling feature was moving with and can be considered the source feature.
    • cotraveler_id—The unique identifier for the cotraveling feature. This is the identifier that was cotraveling with the traveling feature and can be considered the target feature.
    • X—The x-coordinate of the cotraveling feature. The coordinate will be in the projection units of the Input Features.
    • Y—The y-coordinate of the cotraveling feature. The coordinate will be in the projection units of the Input Features.
    • traveler_time—The date and time of the traveling feature.
    • cotraveler_time—The date and time of the cotraveling feature.
    • distance_difference—The distance between the feature identified in the Input Features and the assessed cotraveler. The distance will be in the linear units of the Input Features.
    • time_difference—The time separation from the feature identified in the Input Features and the assessed cotraveler. The time difference will be in seconds and can be a positive or negative number. Positive numbers indicate features identified as occurring after the traveler. Negative numbers indicate features identified as occurring before the traveler.

Syntax

FindCotravelers(input_features, out_featureclass, id_field, {search_distance}, {time_difference})
ParameterExplanationData Type
input_features

The time-enabled features representing the known identifier that will be used to find cotravelers. The unique identifiers, time stamps, and locations will be transferred to the output layer to assist with calculating the time and spatial separation.

Feature Layer
out_featureclass

The output feature class that will contain the point track segments identified as cotraveling with the input source layers. This feature class will include the source with which the specified point track segment is associated. Time and spatial separation will be calculated for each point track feature. The output will include the following fields:

  • traveler_id—The unique identifier for the traveling feature. This is the identifier the cotraveling feature was moving with and can be considered the source feature.
  • cotraveler_id—The unique identifier for the cotraveling feature. This is the identifier that was cotraveling with the traveling feature and can be considered the target feature.
  • X—The x-coordinate of the cotraveling feature. The coordinate will be in the projection units of the Input Features.
  • Y—The y-coordinate of the cotraveling feature. The coordinate will be in the projection units of the Input Features.
  • traveler_time—The date and time of the traveling feature.
  • cotraveler_time—The date and time of the cotraveling feature.
  • distance_difference—The distance between the feature identified in the Input Features and the assessed cotraveler. The distance will be in the linear units of the Input Features.
  • time_difference—The time separation from the feature identified in the Input Features and the assessed cotraveler. The time difference will be in seconds and can be a positive or negative number. Positive numbers indicate features identified as occurring after the traveler. Negative numbers indicate features identified as occurring before the traveler.
Feature Class
id_field

A field from the Input Features that will be used to obtain the unique identifiers per point track. The field will be copied to the output feature class.

Field
search_distance
(Optional)

The maximum distance that can separate features before they are considered not to be cotraveling features. The default is 100 meters.

Linear Unit
time_difference
(Optional)

The maximum time difference that can separate features before they are considered not to be cotraveling features. The default is 10 minutes.

Time Unit

Code sample

FindCotravelers example (stand-alone script)

The following Python script demonstrates how to use the FindCotravelers function in a stand-alone script.

# Name: FindCotravelers.py
# Description: Identify cotravelers in a point track dataset. 

# Import system modules 
import arcpy 

arcpy.env.workspace = "C:/data/Tracks.gdb"

# Set local variables 
source_features = "Known_Tracks"
output_point_features = "Cotravelers"
id_field = "device_id"
search_distance = "100 Meters"
time_difference = "10 Minutes"

# Execute tool
arcpy.FindCotravelers_intelligence(source_features,
                                   output_point_features,
                                   id_field,
                                   search_distance,
                                   time_difference)

Licensing information

  • Basic: No
  • Standard: No
  • Advanced: Yes

Related topics