standardised-vessel-dataset
v1.1.0
Published
This is an open-source typescript library designed to wrap around and provide additional functionality related to the standardised Vessel Dataset for Noon Reports developed by the Smart Maritime Network.
Readme
Installation
Npm
npm install standardised-vessel-datasetYarn
yarn add standardised-vessel-datasetUsage
To get started with the library, you can use the following code snippet:
import { GeneralInformation, PortInformation } from 'standardised-vessel-dataset'
function App() {
const general: GeneralInformation = {
EventType: 'Noon Report'
OperationType: 'Sailing',
ShipReportingDate: new Date('2024-03-04T10:00:00Z'),
ShipName: 'Ship name',
Imo: '1234567',
ShipType: 'Container Ship',
VoyageNumber: 'Voy123',
VoyageLegIdentifier: 'Leg1',
VoyageLegRemarks: 'Some remarks about the vessel',
}
const portInfo: PortInformation = {
DeparturePortCode: 'BCN',
DeparturePortDescription: 'Barcelona, Spain',
ArrivalPortCode: 'LIS',
ArrivalPortDescription: 'Lisbon, Portugal'
DepartureDateTime: new Date('2024-03-05T12:00:00Z')
}
}