port_calls
Get a vessel's recorded stops: arrival, anchoring/mooring, departure, and activity status. Distinguishes waiting from working, with observed times only.
Instructions
When a vessel stopped, where, for how long, and whether she was working.
This is the skeleton of a Statement of Facts, read out of the recorded track rather than typed from memory: arrival, time alongside or at anchor, departure. Anchored and moored are kept apart, because in laytime terms one is waiting and the other is working.
Everything reported was observed. A vessel that has not been seen to leave has no departure time rather than an assumed one; a stop spanning a hole in coverage is cut at the hole rather than claimed as continuous; and a stop far from any known port is reported as at sea rather than given the name of the nearest one. Where an arrival was not witnessed, because the record starts mid-stop or follows a coverage hole, arrival_observed is false and the arrival time is only when this server first saw her there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How far back to look, in days, up to the 90 day retention window. History exists only from the point this server started keeping it. | |
| query | Yes | Vessel to report, by exact MMSI or by (partial) name, case insensitive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |