CAGA Input Schema#

Test Input Schema

Test Input Schema

Type: object

Title

Type: string Default: null

The title of the traffic situation


Example:

"overtaking_18"

Description

Default: null

A description of the traffic situation

Type: string
Type: null

Example:

"Crossing situation with 3 target vessels in the Oslofjord"

Starttime

Default: null

Starting time of the situation in ISO 8601 format YYYY-MM-DDThh:mm:ssZ

Type: stringFormat: date-time
Type: null

Example:

"2024-04-04T13:41:01.704131"

Own Ship data

Type: object

Own Ship data


Example:

{
    "initial": {
        "cog": 284.2,
        "heading": 283.1,
        "navStatus": "Under way using engine",
        "position": {
            "latitude": 57.2343,
            "longitude": 10.3432
        },
        "sog": 12.3
    },
    "static": {
        "height": 15.0,
        "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
        "imo": 1000001,
        "length": 230.0,
        "mmsi": 123456789,
        "name": "RMS Titanic",
        "shipType": "Fishing",
        "speedMax": 20.0,
        "width": 30.0
    },
    "waypoints": [
        {
            "data": {
                "heading": {
                    "interpMethod": "linear",
                    "mAfterLegChange": 100.0,
                    "mBeforeLegChange": 100.0,
                    "value": 12.3
                },
                "sog": {
                    "interpMethod": "linear",
                    "mAfterLegChange": 100.0,
                    "mBeforeLegChange": 100.0,
                    "value": 12.3
                }
            },
            "position": {
                "latitude": 57.2343,
                "longitude": 10.3432
            },
            "turnRadius": 500.0
        }
    ]
}

Type: object Default: null

Static ship information which does not change during a scenario.


Example:

{
    "height": 15.0,
    "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
    "imo": 1000001,
    "length": 230.0,
    "mmsi": 123456789,
    "name": "RMS Titanic",
    "shipType": "Fishing",
    "speedMax": 20.0,
    "width": 30.0
}

Id

Type: stringFormat: uuid

Unique Identifier


Example:

"8cbccf5a-2415-4609-a886-be2e6ecb67c3"

Length

Type: number Default: null

Length of the ship in meters

Value must be strictly greater than 0.0


Example:

230.0

Width

Type: number Default: null

Width of the ship in meters

Value must be strictly greater than 0.0


Example:

30.0

Height

Default: null

Height of the ship in meters

Type: number

Value must be strictly greater than 0.0

Type: null

Example:

15.0

Speedmax

Default: null

Maximum speed of the ship in knots

Type: number

Value must be strictly greater than 0.0

Type: null

Example:

15.0

Mmsi

Default: null

Maritime Mobile Service Identity (MMSI)

Type: integer

Value must be greater or equal to 100000000 and lesser or equal to 999999999

Type: null

Example:

123456789

Imo

Default: null

IMO Number

Type: integer

Value must be greater or equal to 1000000 and lesser or equal to 9999999

Type: null

Example:

1234567

Name

Default: null

Ship name

Type: string
Type: null

Example:

"RMS Titanic"

Default: null

General ship type, based on AIS

Type: enum (of string)

Must be one of:

  • "Wing in ground"
  • "Fishing"
  • "Towing"
  • "Dredging or underwater ops"
  • "Diving ops"
  • "Military ops"
  • "Sailing"
  • "Pleasure Craft"
  • "High speed craft"
  • "Pilot Vessel"
  • "Search and Rescue vessel"
  • "Tug"
  • "Port Tender"
  • "Anti-pollution"
  • "Law Enforcement"
  • "Medical Transport"
  • "Noncombatant ship"
  • "Passenger"
  • "Cargo"
  • "Tanker"
  • "Other Type"
Type: null

Additional Properties of any type are allowed.

Type: object

Default: null

Type: object

Type: object Default: null

Initial longitude and latitude of the ship.


Example:

{
    "latitude": 57.2343,
    "longitude": 10.3432
}

Latitude

Type: number Default: null

WGS-84 latitude

Value must be greater or equal to -90.0 and lesser or equal to 90.0


Example:

51.2131

Longitude

Type: number Default: null

WGS-84 longitude

Value must be greater or equal to -180.0 and lesser or equal to 180.0


Example:

11.2131

Additional Properties of any type are allowed.

Type: object

Sog

Type: number Default: null

Initial ship speed over ground in knots

Value must be greater or equal to 0.0


Example:

10.0

Cog

Type: number Default: null

Initial ship course over ground in degrees

Value must be greater or equal to 0.0 and lesser or equal to 360.0


Example:

45.0

Heading

Type: number Default: null

Initial ship heading in degrees

Value must be greater or equal to 0.0 and lesser or equal to 360.0


Example:

45.2

Default: null

AIS Navigational Status

Type: enum (of string)

Must be one of:

  • "Under way using engine"
  • "At anchor"
  • "Not under command"
  • "Restricted manoeuverability"
  • "Constrained by her draught"
  • "Moored"
  • "Aground"
  • "Engaged in fishing"
  • "Under way sailing"
  • "Reserved for future amendment of navigational status for HSC"
  • "Reserved for future amendment of navigational status for WIG"
  • "Reserved for future use 1"
  • "Reserved for future use 2"
  • "Reserved for future use 3"
  • "AIS SART is active"
  • "Not defined (default)"
Type: null
Type: null

Example:

{
    "cog": 284.2,
    "heading": 283.1,
    "navStatus": "Under way using engine",
    "position": {
        "latitude": 57.2343,
        "longitude": 10.3432
    },
    "sog": 12.3
}

Waypoints

Default: null

An array of Waypoint objects. Each waypoint object must have a position property.
If no turn radius is provided, it will be assumed to be 0.
Additional data can be added to each waypoint leg. This allows varying parameters on a per-leg basis, such as speed and heading, or navigational status

Type: array
No Additional Items

Each item of this array must be:

Type: object

Type: object

A geographical coordinate


Example:

{
    "latitude": 51.2123,
    "longitude": 11.2313
}

Latitude

Type: number Default: null

WGS-84 latitude

Value must be greater or equal to -90.0 and lesser or equal to 90.0


Example:

51.2131

Longitude

Type: number Default: null

WGS-84 longitude

Value must be greater or equal to -180.0 and lesser or equal to 180.0


Example:

11.2131

Additional Properties of any type are allowed.

Type: object

Turnradius

Default: null

Orthodrome turn radius as defined in RTZ format

Type: number
Type: null

Example:

200

Default: null

A Data object that includes speed, course, and heading data points

Type: object

Each additional property must conform to the following schema

Type: object

The 'data' field can include additional properties. All additional properties should be DataPoint objects.

Type: number

Type: number

Type: number

Type: string
Type: null
Type: null

Example:

{
    "data": {
        "heading": {
            "interpMethod": "linear",
            "mAfterLegChange": 100.0,
            "mBeforeLegChange": 100.0,
            "value": 12.3
        },
        "sog": {
            "interpMethod": "linear",
            "mAfterLegChange": 100.0,
            "mBeforeLegChange": 100.0,
            "value": 12.3
        }
    },
    "position": {
        "latitude": 57.2343,
        "longitude": 10.3432
    },
    "turnRadius": 500.0
}

Target Ship data

Type: array Default: null

Target Ship data

No Additional Items

Each item of this array must be:

Type: object

Type: object Default: null

Static ship information which does not change during a scenario.


Example:

{
    "height": 15.0,
    "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
    "imo": 1000001,
    "length": 230.0,
    "mmsi": 123456789,
    "name": "RMS Titanic",
    "shipType": "Fishing",
    "speedMax": 20.0,
    "width": 30.0
}

Id

Type: stringFormat: uuid

Unique Identifier


Example:

"8cbccf5a-2415-4609-a886-be2e6ecb67c3"

Length

Type: number Default: null

Length of the ship in meters

Value must be strictly greater than 0.0


Example:

230.0

Width

Type: number Default: null

Width of the ship in meters

Value must be strictly greater than 0.0


Example:

30.0

Height

Default: null

Height of the ship in meters

Type: number

Value must be strictly greater than 0.0

Type: null

Example:

15.0

Speedmax

Default: null

Maximum speed of the ship in knots

Type: number

Value must be strictly greater than 0.0

Type: null

Example:

15.0

Mmsi

Default: null

Maritime Mobile Service Identity (MMSI)

Type: integer

Value must be greater or equal to 100000000 and lesser or equal to 999999999

Type: null

Example:

123456789

Imo

Default: null

IMO Number

Type: integer

Value must be greater or equal to 1000000 and lesser or equal to 9999999

Type: null

Example:

1234567

Name

Default: null

Ship name

Type: string
Type: null

Example:

"RMS Titanic"

Default: null

General ship type, based on AIS

Type: enum (of string)

Must be one of:

  • "Wing in ground"
  • "Fishing"
  • "Towing"
  • "Dredging or underwater ops"
  • "Diving ops"
  • "Military ops"
  • "Sailing"
  • "Pleasure Craft"
  • "High speed craft"
  • "Pilot Vessel"
  • "Search and Rescue vessel"
  • "Tug"
  • "Port Tender"
  • "Anti-pollution"
  • "Law Enforcement"
  • "Medical Transport"
  • "Noncombatant ship"
  • "Passenger"
  • "Cargo"
  • "Tanker"
  • "Other Type"
Type: null

Additional Properties of any type are allowed.

Type: object

Default: null

Type: object

Type: object Default: null

Initial longitude and latitude of the ship.


Example:

{
    "latitude": 57.2343,
    "longitude": 10.3432
}

Latitude

Type: number Default: null

WGS-84 latitude

Value must be greater or equal to -90.0 and lesser or equal to 90.0


Example:

51.2131

Longitude

Type: number Default: null

WGS-84 longitude

Value must be greater or equal to -180.0 and lesser or equal to 180.0


Example:

11.2131

Additional Properties of any type are allowed.

Type: object

Sog

Type: number Default: null

Initial ship speed over ground in knots

Value must be greater or equal to 0.0


Example:

10.0

Cog

Type: number Default: null

Initial ship course over ground in degrees

Value must be greater or equal to 0.0 and lesser or equal to 360.0


Example:

45.0

Heading

Type: number Default: null

Initial ship heading in degrees

Value must be greater or equal to 0.0 and lesser or equal to 360.0


Example:

45.2

Default: null

AIS Navigational Status

Type: enum (of string)

Must be one of:

  • "Under way using engine"
  • "At anchor"
  • "Not under command"
  • "Restricted manoeuverability"
  • "Constrained by her draught"
  • "Moored"
  • "Aground"
  • "Engaged in fishing"
  • "Under way sailing"
  • "Reserved for future amendment of navigational status for HSC"
  • "Reserved for future amendment of navigational status for WIG"
  • "Reserved for future use 1"
  • "Reserved for future use 2"
  • "Reserved for future use 3"
  • "AIS SART is active"
  • "Not defined (default)"
Type: null
Type: null

Example:

{
    "cog": 284.2,
    "heading": 283.1,
    "navStatus": "Under way using engine",
    "position": {
        "latitude": 57.2343,
        "longitude": 10.3432
    },
    "sog": 12.3
}

Waypoints

Default: null

An array of Waypoint objects. Each waypoint object must have a position property.
If no turn radius is provided, it will be assumed to be 0.
Additional data can be added to each waypoint leg. This allows varying parameters on a per-leg basis, such as speed and heading, or navigational status

Type: array
No Additional Items

Each item of this array must be:

Type: object

Type: object

A geographical coordinate


Example:

{
    "latitude": 51.2123,
    "longitude": 11.2313
}

Latitude

Type: number Default: null

WGS-84 latitude

Value must be greater or equal to -90.0 and lesser or equal to 90.0


Example:

51.2131

Longitude

Type: number Default: null

WGS-84 longitude

Value must be greater or equal to -180.0 and lesser or equal to 180.0


Example:

11.2131

Additional Properties of any type are allowed.

Type: object

Turnradius

Default: null

Orthodrome turn radius as defined in RTZ format

Type: number
Type: null

Example:

200

Default: null

A Data object that includes speed, course, and heading data points

Type: object

Each additional property must conform to the following schema

Type: object

The 'data' field can include additional properties. All additional properties should be DataPoint objects.

Type: number

Type: number

Type: number

Type: string
Type: null
Type: null

Example:

{
    "data": {
        "heading": {
            "interpMethod": "linear",
            "mAfterLegChange": 100.0,
            "mBeforeLegChange": 100.0,
            "value": 12.3
        },
        "sog": {
            "interpMethod": "linear",
            "mAfterLegChange": 100.0,
            "mBeforeLegChange": 100.0,
            "value": 12.3
        }
    },
    "position": {
        "latitude": 57.2343,
        "longitude": 10.3432
    },
    "turnRadius": 500.0
}

Example:

[
    {
        "initial": {
            "cog": 284.2,
            "heading": 283.1,
            "navStatus": "Under way using engine",
            "position": {
                "latitude": 57.2343,
                "longitude": 10.3432
            },
            "sog": 12.3
        },
        "static": {
            "height": 15.0,
            "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
            "imo": 1000001,
            "length": 230.0,
            "mmsi": 123456789,
            "name": "RMS Titanic",
            "shipType": "Fishing",
            "speedMax": 20.0,
            "width": 30.0
        },
        "waypoints": [
            {
                "data": {
                    "heading": {
                        "interpMethod": "linear",
                        "mAfterLegChange": 100.0,
                        "mBeforeLegChange": 100.0,
                        "value": 12.3
                    },
                    "sog": {
                        "interpMethod": "linear",
                        "mAfterLegChange": 100.0,
                        "mBeforeLegChange": 100.0,
                        "value": 12.3
                    }
                },
                "position": {
                    "latitude": 57.2343,
                    "longitude": 10.3432
                },
                "turnRadius": 500.0
            }
        ]
    }
]

Default: null

environmental parameters

Type: object

Airtemperature

Type: number Default: null

The air temperature in degrees Celsius


Example:

20.0

Waterremperature

Type: number Default: null

The water temperature in degrees Celsius


Example:

15.0

Type: enum (of string) Default: null

The type of precipitation

Must be one of:

  • "None"
  • "Rain"
  • "Snow"
  • "Sleet"
  • "Hail"

Example:

"Rain"

Windspeed

Type: number Default: null

The wind speed in m/s


Example:

10.0

Winddirection

Type: number Default: null

The wind direction in degrees


Example:

180.0

Currentspeed

Type: number Default: null

The current speed in m/s


Example:

1.0

Currentdirection

Type: number Default: null

The current direction in degrees


Example:

90.0

Type: enum (of string) Default: null

The wave spectrum

Must be one of:

  • "JONSWAP"
  • "Pierson-Moskowitz"
  • "Bretschneider"

Example:

"JONSWAP"

Significantwaveheight

Type: number Default: null

The significant wave height in meters


Example:

3.0

Waveperiod

Type: number Default: null

The wave period in seconds


Example:

12.0

Wavedirection

Type: number Default: null

The wave direction in degrees


Example:

270.0

Visibility

Type: number Default: null

The visibility in nautical miles


Example:

5.0

Type: enum (of string) Default: null

The overall weather conditions

Must be one of:

  • "Clear"
  • "Cloudy"
  • "Foggy"
  • "Rainy"
  • "Snowy"

Example:

"Clear"
Type: null

Example:

{
    "airTemperature": 20.0,
    "conditions": "Clear",
    "currentDirection": 90.0,
    "currentSpeed": 1.0,
    "precipitation": "Rain",
    "significantWaveHeight": 3.0,
    "visibility": 5.0,
    "waterRemperature": 15.0,
    "waveDirection": 270.0,
    "wavePeriod": 12.0,
    "waveSpectrum": "JONSWAP",
    "windDirection": 180.0,
    "windSpeed": 10.0
}

Additional Properties of any type are allowed.

Type: object