latestSwagger 2.02026-08-1274120326.8 KB

3a995f316cda

Ocean

Ocean Metrics Locations

This endpoint allows permissioned users to get all available ocean route locations that can be origins and/or destinations to request data on ocean lanes.

For more information about getting access to this endpoint or using this endpoint, please reach out to our Customer Success team (cs@gosonar.com).

Returns a collection of all supported ocean route origin/destination locations including specific ports, all ports in a given country or even all ports wordlwide.

Here are the output fields returned in a successful call:

  • code: a unique code to identify any ocean data location
  • port: a unique code to identify a specific port, when the location type is port, this will be the same as the code
  • port_name: a human readable port name
  • country: the country for the location
  • type: the type of location, may be Port, Country or AllPorts
get/Ocean/locations

Headers

x-api-versionstring

Response

OK

codestring
portstring
port_namestring
countrystring
typestring

Example response

[
  {
    "code": "USSAV",
    "port": "USSAV",
    "port_name": "Savannah",
    "country": "United States of America",
    "type": "Port"
  }
]