World Port Index

v0.2.1
io.github.pipeworx-io/world-port-index Checked 1 day ago Published 26 days ago

World Port Index — port facilities, depths, and anchorages.

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

port_lookup

Look up a port in the NGA World Port Index by name, UN/LOCODE, or WPI number. Returns WPI number, coordinates, harbor size/type, channel/anchorage/cargo-pier depths, and facilities. Refuses with an error if nothing matches.

ParameterTypeDescription
namestringPort name, e.g. "Rotterdam" (exact match preferred, falls back to substring)
unlocodestringUN/LOCODE, e.g. "NLRTM" or "NL RTM"
wpi_numbernumberNGA World Port Index port number, e.g. 31140

ports_near

Find NGA World Port Index ports within a radius of a lat/lon point, sorted nearest first, with distance in km.

ParameterTypeDescription
latitude *numberLatitude in decimal degrees
longitude *numberLongitude in decimal degrees
limitnumberMax ports to return (default 50, max 200)
radius_kmnumberSearch radius in km (default 100, max 5000)

ports_by_country

List NGA World Port Index ports for a country (name or ISO 3166-1 alpha-2 code), optionally filtered by harbor size (V/S/M/L).

ParameterTypeDescription
country *stringCountry name or ISO alpha-2 code, e.g. "Singapore" or "SG"
harbor_sizestringFilter by harbor size: V=Very small, S=Small, M=Medium, L=Large
limitnumberMax ports to return (default 50, max 200)