API Reference

departedFromPortVessels

Returns a list of vessels that departed from a selected port and have not yet arrived at the next port of call. The data may be enriched with the vessel's recent risk score and explainability.

Query Schema

type Query {
   departedFromPortVessels(input: DepartedFromPortVesselsInput!): DepartedFromPortVesselsConnection!
}

Arguments

NameTypeDescription
inputDepartedFromPortVesselsInput!Sets the departure port by location and start date.

Schema

input DepartedFromPortVesselsInput {
  polygonId: ObjectId!
  startDate: DateTime
  limit: PositiveInt! = 100
  offset: NonNegativeInt! = 0
}

DepartedFromPortVesselsInput Fields

NameTypeDescription
limitPositiveInt!The maximal number of vessel nodes to return by the query.
offsetNonNegativeInt!The number of returned nodes to skip from the beginning of the node list.
polygonIdObjectId!The unique Windward assigned ID of the port of departure polygon.
startDateDateTimeThe port departing date of the vessels to be returned by the query.

Returns

NameDescription
DepartedFromPortVesselsConnection!The vessels returned by the departedFromPortVessels query.

DepartedFromPortVesselsConnection Fields

NameTypeDescription
nodes[VesselIntelligence!]!The vessel nodes returned by the departedFromPortVessels query.
totalCountNonNegativeInt!The number of vessel nodes returned.

Example Code

Sample Query

query departedFromPortVessels($input: DepartedFromPortVesselsInput!) {
  departedFromPortVessels(input: $input) {
    totalCount
    nodes {
      imo
      mmsi
      name
      flag
      length
      class
      subClass
      lastPortCall {
        startDate
      }
      smugglingRisk {
        riskySince
        score
        level
      }
      complianceRisk {
        isSanctioned
        level
        riskySince
        buildingBlocks {
          count
          level
          name
          program
          recentActivityStartDate
        }
      }
    }
  }
}

Variables

{
  "input": {
    "polygonId": "5358fc78b68ca120a07dbc97",
    "limit": 2,
    "offset": 0
  }
}

Response

{
  "data": {
    "departedFromPortVessels": {
      "totalCount": 72,
      "nodes": [
        {
          "imo": 9106699,
          "mmsi": 370652000,
          "name": "BAO TONG 1",
          "flag": "Panama",
          "length": 151,
          "class": "Cargo",
          "subClass": "Bulk Carrier",
          "lastPortCall": {
            "startDate": "2022-12-09T22:56:40.000Z"
          },
          "smugglingRisk": {
            "riskySince": null,
            "score": 0,
            "level": "Low"
          },
          "complianceRisk": {
            "isSanctioned": false,
            "level": "Medium",
            "riskySince": null,
            "buildingBlocks": [
              {
                "count": null,
                "level": "Low",
                "name": "DARK_ACTIVITY",
                "program": null,
                "recentActivityStartDate": null
              },
                .
                .
                .
              {
                "count": null,
                "level": "Low",
                "name": "SANCTIONED_COUNTRY_COMPANY",
                "program": null,
                "recentActivityStartDate": null
              }
            ]
          }
        },
                .
                .
                .
        {
          "imo": 9459151,
          "mmsi": 371709000,
          "name": "APOLLO BULKER",
          "flag": "Panama",
          "length": 177,
          "class": "Cargo",
          "subClass": "Bulk Carrier",
          "lastPortCall": {
            "startDate": "2022-12-05T06:50:18.000Z"
          },
          "smugglingRisk": {
            "riskySince": null,
            "score": 0,
            "level": "Low"
          },
          "complianceRisk": {
            "isSanctioned": false,
            "level": "Low",
            "riskySince": null,
            "buildingBlocks": [
              {
                "count": null,
                "level": "Low",
                "name": "DARK_ACTIVITY",
                "program": null,
                "recentActivityStartDate": null
              },
                .
                .
                .
              {
                "count": null,
                "level": "Low",
                "name": "SANCTIONED_COUNTRY_COMPANY",
                "program": null,
                "recentActivityStartDate": null
              }
            ]
          }
        }
      ]
    }
  }
}