Vessels near a point or vessel
find_vessels_nearVessels within a radius (default 10 NM, maximum 50) of a point or of another vessel, nearest first, each with distance and bearing from the centre. Use for what is near this position or what is around vessel X.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | centre latitude, degrees; give lat and lon, or mmsi | |
| lon | No | centre longitude, degrees | |
| kind | No | only this kind: vessel, aton, base, or sar | |
| mmsi | No | centre on this vessel's last position instead of lat and lon; the vessel itself is left out of the results | |
| limit | No | rows to return: default 50, maximum 200 | |
| types | No | only these ITU ship type codes; a code ending in 0 matches its decade | |
| radius_nm | No | search radius in nautical miles: default 10, maximum 50 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | vessels matched before the limit was applied | |
| vessels | Yes | ||
| truncated | Yes | true when total exceeds the rows returned; narrow the query or raise limit | |
| attribution | Yes | credit line per source kind in the rows, to show with the data | |
| unknown_mmsi | No | requested MMSIs not heard in the last 30 minutes |