See the next vessel arrival or the largest delay, then open a port call to review its berth, ETA and reported speed history.
Port Call Arrivals · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
snapshotVesselArrivalsSnapshot | null (optional)
Port calls with timestamped ETAs, planned times, optional berth assignments and speed history. Pass null when unavailable. Takes precedence over vessels.
vesselsreadonly VesselArrival[] | null (optional)
Legacy port-call list with minute offsets from a common local midnight. Omit both inputs for the built-in example.
portNamestring (optional)
Terminal label for the legacy list or built-in example.
Data and integration
Preview
A fictional terminal schedule with four port calls, an unassigned berth, and an ETA after midnight.
Inputs
snapshot.vessels contains a stable port-call id, a vessel name and etaAt in Unix milliseconds or null. Optional plannedAt uses the same unit. Optional fields are origin, berth, voyage, note, imo, lengthM and draftM in metres, distanceNm in nautical miles to the arrival point, and speedHistory with at in Unix milliseconds and knots or null. A snapshot can supply portName, arrivalPoint, stale and an IANA timeZone. Missing or invalid time zones fall back to UTC.
Source options
Map the arrivals still tracked by the port or terminal schedule. ETA and planned arrival must refer to the same event, such as crossing the pilot station or arriving at berth. Enrich with authorised speed and vessel particulars where available. Set stale when the feed is out of date and refresh by port-call ID.
Actions
Switch between ETA and Delay to prioritise the card. Open any row for planned and estimated arrival, berth, dimensions and speed. All arrivals shows the full list in the chosen order. Inspect speed by dragging, tapping or using the arrow keys. The card remains a read-only schedule.
Integration requirements
ETA sorting compares absolute timestamps, including across midnight. Delay is ETA minus planned arrival rounded to the nearest minute. Positive results count as late, with a stronger highlight above 60 minutes. Calls without both times have no computed delay. Pending ETAs sort after reported ETAs in time order. The latest valid duplicate call or speed timestamp wins. Null speeds break the trend. Pass an empty array for a confirmed empty schedule and null for an unavailable source. Legacy vessels still accept etaMinutes and plannedMinutes from the same local midnight, including offsets beyond 1,440 for the next day. Legacy speedKnots are shown in sample order.