- Overview
- LocationEvent
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 LocationEventPair one entity’s location with its integration and event time.
LocationEvent(*, entity_id: UUID, integration: str, timestamp: datetime, location: Location)Fields
Section titled “Fields”| Name | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| entity_id | UUID | yes | — | — | Canonical UUID of the located entity. |
| integration | str | yes | — | min_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. |
| timestamp | datetime | yes | — | — | Timezone-aware time associated with the location event. |
| location | Location | yes | — | — | Position Location Information carried by the event. |
Version 0.2.0 · branch main
