Geo Tracking - Specs

Tracking dashboard

Device map, history, simulations, position age, and administrative controls for the lab.

The tracking dashboard is a static application in tracking-server/public, served by the API's own Worker. It uses the Geotrack brand with a location lab subtitle. All dashboard text is in English. Geo Tracking - Specs is the name of this documentation portal; the operational dashboard and mobile app are separate components.

Connecting and monitoring

The operator enters the administrative token under Connect to the lab. The first request queries the registry; after authentication, the dashboard opens a WebSocket for every registered device and starts updating the map without requiring a selection.

The registry is polled every ten seconds to discover new devices. Each stream starts with a snapshot of the latest 200 positions and the latest capture from each source. The dashboard keeps up to 1,000 loaded events per device, merged by eventId.

This interface has no separate device selector, manual enrollment button, or provisioning form. The normal flow is to install the app, connect the device through automatic enrollment, and watch it appear in the registry. The administrative API still provides creation and provisioning for development tools.

Native positions and simulations

The map shows native positions by default. Show simulations adds test positions with their own markers and trails. A device can have one marker for each source, so a simulation does not replace its latest native point.

ElementMeaning
Native positionLatest point declared as provider: native received from that device.
SimulationLatest point declared as provider: test, displayed only when the option is enabled.
Old positionCapture whose age has exceeded the dashboard's threshold.
Dashboard connectedA connection to the server exists; this does not establish recent capture on the device.

The server's latestByProvider field preserves the latest point from each source even outside the history window. Late-arriving events are compared by capture time and ID so the marker does not revert to an older position.

The browser does not generate routes or upload samples. User-facing simulations begin on the phone and use the native transport. The CLI script is a separate diagnostic tool. See Route simulation.

Position age and timestamps

Markers display elapsed time since capturedAt. The map considers a position old when its age reaches at least the greater of 120 seconds or three times the configured interval. Timestamps more than five seconds in the future are also marked as inconsistent.

Marker tooltips display capture time in the Brasília time zone. The Latest point card uses the browser's date and time formatting. Age describes when the device captured the position, not when the WebSocket opened or the server received a delayed batch.

The map refreshes age labels periodically. The latest-point card updates every second. An old marker remains visible to show the last available information; it does not mean the phone is currently connected.

Selection, history, and metrics

Click a marker or identifier to open device details. The selection receives a halo, a larger marker, and a Selected label, with keyboard support. Streams for other devices remain active.

On selection, the dashboard fetches configuration and up to 1,000 positions over HTTP, merging them with events already received. The selected trail is drawn separately for native and test positions.

MetricScope
Points on the serverTotal persisted for the device, reported by the API.
Native collectionNumber of native points in the loaded history only.
SimulationNumber of test points in the loaded history only.
Latest pointLatest visible position according to the simulations setting.

Refresh history fetches up to 1,000 points again. Close details clears the selection and returns space to the map while monitoring continues for all devices. The current dashboard has no pagination for exploring the full history.

Trails break into separate segments on large jumps, antimeridian crossings, and time gaps: more than five minutes for native capture or two minutes for tests. Jumps over ten kilometers also break the line; for native points, movements over one hundred meters with an implied speed above 120 m/s are treated as disconnected. These rules avoid misleading visual connections and do not remove stored points.

Camera and expanded map

A single marker stays centered; multiple markers are kept within the usable area, with reframing when needed. Dragging or changing zoom suspends automatic camera movement for eight seconds. Markers keep updating, and camera tracking resumes automatically.

Maximize expands the map within the page. Restore map or Esc returns to the normal view, preserving streams and selection. This feature does not use the browser's fullscreen API. While expanded, keyboard focus stays within the map controls.

In the normal view, details appear beside the map with independent scrolling. On smaller screens, they move below it. The short animation between positions respects reduced-motion preferences; jumps considered disconnected are not interpolated.

Configuration and activity

Device details let the operator change Allow tracking, minimum distance, and the desired interval. Saving requires administrative access and displays the version returned by the server. The device applies configuration at its next native synchronization; the interface explains that local startup and location permission remain necessary.

Session activity lists connections, selections, new points, and configuration changes, with at most 80 entries in memory. Clear removes this visual list; it does not delete server events or history. The list is not a permanent audit trail.

See Remote configuration for pause, resume, and Android/iOS differences.

Reconnection and sign-out

Interrupted sockets reopen with progressive delays up to 30 seconds. When the tab becomes visible again, the page is restored from the back-forward cache, or network connectivity returns, the dashboard renews sockets and queries the registry for current snapshots.

Session and selection counters prevent stale responses from restoring data after a device change or sign-out. HTTP requests have a 15-second timeout. Temporary registry failures do not close existing streams.

Sign out closes connections, aborts requests, and clears the map, registry, and administrative credential from page memory. Devices continue operating according to their sessions and configurations. Reloading the page requires entering the token again.

Basemap and Android distribution

The map uses Leaflet files served by the application itself and OpenStreetMap street tiles requested directly by the browser. Attribution is visible. There is no satellite layer, custom offline cache, or tile copy in the Worker.

If tiles fail, the interface displays a warning and keeps received markers visible. Basemap availability depends on the tile service and the browser's network connection.

The Download Geotrack for Android link points to a specific APK published in R2 through /downloads/. Its path is defined in the HTML, not automatically discovered as the latest version. Uploading another file to the bucket does not update this link by itself. See API and contracts and Deployment.

Scale and evidence

The registry supports 1,000 records, but that does not validate 1,000 simultaneous devices in the browser. The implementation maintains one socket per device and was designed for the lab. There is no stream aggregation, fleet pagination, or documented load test supporting a claim of operational scale.

Sources: tracking-server/public/index.html, tracking-server/public/app.js, tracking-server/public/fleet-map.js, tracking-server/public/map-layout.js, and tracking-server/test/dashboard-session.test.mjs.

Session tests cover multiple devices, preservation of native positions, socket recovery, and protection against late responses after sign-out. docs/map-validation-2026-10-15.md records a historical visual validation; it does not replace a fresh dashboard check after each change. See Tests and evidence.

On this page