Skip to main content

Whitebox Plugin - Location

This is a plugin for whitebox that provides location utilities and extensions.

Installation

Simply install the plugin to whitebox:

poetry add whitebox-plugin-location

Observed location

The location.data store exposes lastObservedLocation, one usable socket observation seen by this page. It is page-lived, not persisted history or proof of current GPS freshness. Loading or clearing flight history neither seeds nor clears it. Consumers still apply their acquisition/status and playback rules; the map does not require this provider just to mount.

See state stores for access and offline preparation for shared setup.

Flight history hydration contract

History/latest HTTP rows and newly produced observation.location.update payloads carry the persisted sample's id as a decimal string, including above JavaScript's safe integer range. This is not the socket event's eid. Coordinates or timestamps are not identity: distinct samples at the same place/time must survive. Location timestamps use UTC ISO with six fractional digits; history orders by timestamp, then sample ID for exact ties. The handler stamps time before awaiting persistence, so commit order can differ from sample order: HTTP may include later B while earlier A is still uncommitted. Appending unmatched live points would put A after B.

fetchLocationDataForFlightSession(flightSession, mode = "flight") merges HTTP rows with arrivals during that request; HTTP wins duplicate string IDs. Live insertions and same-flight/same-mode pending refetches use the same reconciliation. Only pending arrivals inherit, not a previously settled snapshot. Another flight, another mode or clear() invalidates the pending record. Failing/non-array HTTP leaves visible arrivals intact. Ownership retires before publication, so synchronous subscribers can start newer work without old cleanup erasing it. Publication errors propagate rather than clearing history as an HTTP failure.

addPosition(point, owner) accepts an optional { sessionId, mode } owner (string session ID); the service supplies it and preserves sample metadata. An explicit owner mismatch cannot enter another history. Without an owner it appends to the current history, preserving the existing one-argument API. No active history owner also permits ordinary append. clear() clears history, not the last observation.

Legacy missing/invalid/numeric IDs remain separate occurrences; there is no old-event backfill or exactly-once promise. Legacy valid timestamps have native-Date millisecond ordering; unusable/out-of-four-digit-year times follow timed points in source order. Corrected timestamps retain microsecond ordering, but playback still uses its existing millisecond clock. The socket's coordinate-only throttle is unchanged and may suppress stationary samples. Reconciliation covers received observations, not every persisted row or proof of their selected-flight membership.

Additional Instructions

Metadata

Release files for whitebox-plugin-location 0.1.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whitebox-plugin-location 0.1.12
File Size Uploaded Provenance
whitebox_plugin_location-0.1.12.tar.gz 34.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for whitebox-plugin-location 0.1.12
File Interpreter ABI Platform
whitebox_plugin_location-0.1.12-py3-none-any.whl Python 3 none any Details

Total release size: 79.5 kB

Release files / whitebox_plugin_location-0.1.12.tar.gz

Download URL whitebox_plugin_location-0.1.12.tar.gz
Size 34.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6335d5cc069ed701c741ae357590e668a12926a3a5cc3992d7aea4e5401ceda0
BLAKE2b-256 checksum
How to use checksums
97198c8f07a788ccb5a0fd7938b5b3228a24ca79edd72d074d8b46ff0ba0b4e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.0.dev0 CPython/3.14.4 Linux/6.1.75+

Release files / whitebox_plugin_location-0.1.12-py3-none-any.whl

Download URL whitebox_plugin_location-0.1.12-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83a26091900ff55ec5bf7ede1ac4e36448ac2c526ccf821f0138dd1cda3562dd
BLAKE2b-256 checksum
How to use checksums
8e8824386c2cff48c336764e2ab55316c960c54dc6b25a072b03ace776eed881
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.0.dev0 CPython/3.14.4 Linux/6.1.75+

Security for whitebox-plugin-location 0.1.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page