Arrival Time
An arrival time drawn from many predictions instead of one. Digits they agree on are crisp, the ones they don't go soft, and a wide spread becomes a window.
Needs: Arrival samples from your own predictor (Monte Carlo draws, an ensemble or quantiles). No model in the browser.
Customize
kind
tracking
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| samples | number[] | required | Predicted arrival times in ms since epoch. 20 or more reads well. |
| kind | "drive" | "delivery" | "drive" | A drive is told to the minute when it can be; a parcel never is until it's at the door. |
| tracking | "live" | "scheduled" | "live" | Scheduled means a timetable with no live position: shown hollow and labelled, never just blurred. |
| label | string | "Arrive" | Over the time. "Arriving" by default for a delivery. |
| now | number | – | The current time, for today/tomorrow wording, the chance it comes today and staleness. |
| by | number | – | When it's needed by. Puts a draggable line through the spread. |
| departs | number | – | When the trip starts, if it hasn't yet. Adds "leave by". |
| updated | number | – | Time of the last real tracking event; older than staleAfter marks the estimate as not updating. |
| staleAfter | number | 7200000 | ms before an estimate counts as stale. |
| status | string | – | What's known for sure, said after the chance: "Not out for delivery yet". |
| locale | string | – | Locale for times. The runtime's by default. |
| timeZone | string | – | Time zone for times. |