ForecastedEvent
¶
Source code in docs_src/capo_location/types/forecasted_event.py
event_type
instance-attribute
¶
event_type: ForecastedGeofenceEventType
The event type, forecasting three states for which a device can be in relative to a geofence:
ENTER: If a device is outside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window.
EXIT: If a device is inside of a geofence, but would breach the fence if the device is moving at its current speed within time horizon window.
IDLE: If a device is inside of a geofence, and the device is not moving.
forecasted_breach_time
instance-attribute
¶
forecasted_breach_time: NotRequired[Timestamp]
The forecasted time the device will breach the geofence in ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ
geofence_id
instance-attribute
¶
geofence_id: Id
The geofence identifier pertaining to the forecasted event.
geofence_properties
instance-attribute
¶
geofence_properties: NotRequired[PropertyMap]
The geofence properties.
is_device_in_geofence
instance-attribute
¶
is_device_in_geofence: bool
Indicates if the device is located within the geofence.
nearest_distance
instance-attribute
¶
nearest_distance: NearestDistance
The closest distance from the device's position to the geofence.