Vessel Tracking

v0.2.1
io.github.pipeworx-io/vessel-tracking Checked 1 day ago Published 27 days ago

Vessel Tracking — live worldwide ship positions from AIS.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

live_ships_in_area

Live ship positions right now in a geographic area, from AIS radio broadcasts — what vessels are sailing near a port, coastline, strait or set of coordinates at this moment. Returns each vessel heard with its position, speed, course, navigational status, type, destination and IMO where broadcast, plus a breakdown by vessel type (cargo, tanker, passenger, fishing, tug). Give either a centre point (latitude + longitude + radius_km) or a bounding box. COVERAGE IS PARTIAL AND TERRESTRIAL — there is no receiver coverage in the Persian Gulf, Strait of Hormuz, Gulf of Oman or Red Sea, so this too…

ParameterTypeDescription
_apiKeystringaisstream.io API key (free at aisstream.io)
eastnumberBounding box eastern longitude
latitudenumberCentre latitude, e.g. 43.3 for Marseille
limitnumberMaximum vessels to return (default 50, max 300)
longitudenumberCentre longitude, e.g. 5.4 for Marseille
northnumberBounding box northern latitude
radius_kmnumberRadius around the centre point in km (default 50, max 500)
ship_typestringOptional filter on decoded type, e.g. "tanker", "cargo", "passenger", "fishing", "tug"
southnumberBounding box southern latitude (alternative to centre+radius)
westnumberBounding box western longitude
window_secondsnumberHow long to listen, 3-25 seconds (default 12). Longer windows hear more vessels, especially anchored ones which only transmit every ~3 minutes.

live_ship_position

Where is a specific ship right now — live AIS position for one or more vessels by MMSI number. Returns position, speed, course, navigational status and destination as currently broadcast. BEST EFFORT BY NATURE: this listens for a live broadcast rather than reading a stored position, and many vessels transmit less than once a minute, so a single call frequently hears nothing even for a ship that is definitely sailing. Measured behaviour, not a caveat for form. Improve the odds with a longer window_seconds, or use live_ships_in_area if you know roughly where the ship is. For a guaranteed last-…

ParameterTypeDescription
mmsi *arrayOne or more 9-digit MMSI numbers, e.g. ["219034351"]
_apiKeystringaisstream.io API key (free at aisstream.io)
window_secondsnumberHow long to listen, 3-40 seconds (default 30). Hit rate scales almost linearly with this: many vessels transmit less than once a minute, so a 10-second window will usually miss and a 40-second one oft…

ais_coverage_check

Does live AIS tracking actually work at this location? Listens at a point and reports whether any community receiver covers it, so you can tell the difference between "no ships here" and "no receivers here" before trusting a zero. Use this whenever a vessel search comes back empty, and always before treating an empty result as evidence that shipping has stopped.

ParameterTypeDescription
latitude *numberLatitude to test
longitude *numberLongitude to test
_apiKeystringaisstream.io API key (free at aisstream.io)
radius_kmnumberRadius to test around the point in km (default 150)
window_secondsnumberHow long to listen, 3-25 seconds (default 15)