Skip to content

LocationEvent

Part of Locations in the Python API reference.

Related guidance: concepts/locations, how-to/observe-location, how-to/pli-entities.

Runnable examples: publish_location.py, get_ecn_location.py.

from picogrid_ecn_client import LocationEvent

Pair one entity’s location with its integration and event time.

LocationEvent(*, entity_id: UUID, integration: str, timestamp: datetime, location: Location)

Source · models/location.py

NameTypeRequiredDefaultConstraintsDescription
entity_idUUIDyesCanonical UUID of the located entity.
integrationstryesmin_length=2, max_length=128, pattern='^[A-Za-z0-9][A-Za-z0-9_-]{0,126}[A-Za-z0-9]$'Validated integration name that reports the location.
timestampdatetimeyesTimezone-aware time associated with the location event.
locationLocationyesPosition Location Information carried by the event.

Version 0.2.0 · branch main