← All work

Deterministic position simulation for shipment tracking

Real-time tracking demos usually assume a GPS device already exists. Early on, it doesn’t — but the map still needs to move convincingly.

The core idea

Position becomes a pure function of elapsed time rather than a stream of device updates:

const progress = (now - createdAt) / TRIP_DURATION;
const position = interpolate(route, progress);

No background job, no drift, no state to keep in sync — refreshing the page always reconstructs the same position for the same wall-clock time.

This is a placeholder entry. Replace it with a real research paper or project write-up; the frontmatter kind field can be paper or project.