Is the distance from the location of the current event to the location earliest event matching the criteria. The location is determined by selecting an appropriate coordinate attribute and can be calculated in mile or kilometer units.
For example:
- Distance of Shipping Address from the users first order
- Distance of device from Account Registration/Signup. Useful in account sharing/restriction use cases
Configuration
-
Feature Name
The "dictionary" name under which the feature value will be stored. -
Coordinate Attribute
- Selects the coordinate attribute to calculate the distance from this event.
-
For Events > With The Same
- Only Identifier and Subject attributes can be used.
Note
- At least one of the selected attributes must be an Identifier.
Optional Configuration
- Default Value
A value that can be assigned to the feature if the attributes to calculate the features are not present. - Scope
Can be used to extend the event search from the local node, to all nodes within the same organization all the way to all across customers (global). - For Events
Provides a way of filtering past events based on their type. - Condition
A Query-Language filter that can be used to refine Features for specific use cases. - In Units
Can be used to change the feature value output from kilometers to miles. - Time Window
Can be used to limit the Feature calculation to a specific time period/window. e.g 1 week. - Starting ...
Can be used to remove recent events from Feature calculation.
Use Case 1
Calculating the current distance of the device from the Account Signup in miles.
Implementing In The Feature Editor



- name: device_dist_from_register_mi
default_value: null
time_window: all
starting: immediately
find_the:
distance_from_first:
events:
event_type:
- account_creation
include_current_event: false
with_the_same:
- identity['ACCOUNT'].login.login
coordinate: profiling.tcp_connection['WEBRTC'].ipdb.coordinate
in_units: miles
with_scope: same_node_instance