Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 817baa7d66 | |||
| 072902be59 | |||
| 2452e17faa | |||
| f2a9b7ffdc | |||
| 4ab05ba738 |
@@ -14,7 +14,7 @@
|
||||
},
|
||||
"data_type": {
|
||||
"type": "string",
|
||||
"enum": ["file"],
|
||||
"enum": ["file", "raw"],
|
||||
"description": "The type of data contained in this message object"
|
||||
},
|
||||
"sent_timestamp": {
|
||||
@@ -23,7 +23,7 @@
|
||||
},
|
||||
"data_kind": {
|
||||
"type": "string",
|
||||
"enum": ["pis", "timetable", "knowledgebase", "darwin_schedule", "darwin_ts", "darwin_ref"],
|
||||
"enum": ["pis", "timetable", "knowledgebase", "PushPort16Schedule", "darwin_ts", "darwin_ref"],
|
||||
"description": "The data type contained in the message. Currently supported PIS: PIS Data, Timetable: CIF or VSTP Data, Knowledgebase: Station Data"
|
||||
},
|
||||
"payload": {}
|
||||
|
||||
@@ -25,13 +25,6 @@
|
||||
},
|
||||
"description": "List of 3ALPHA/CRS Codes"
|
||||
},
|
||||
"crsHash": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"pattern": "^[0-9]+$",
|
||||
"description": "Stringified 64-bit hash"
|
||||
},
|
||||
"tiplocStops": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -41,14 +34,8 @@
|
||||
"pattern": "^[a-zA-Z0-9]+$"
|
||||
},
|
||||
"description": "List of TIPLOC Codes"
|
||||
},
|
||||
"tiplocHash": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 64,
|
||||
"pattern": "^[0-9]+$"
|
||||
}
|
||||
},
|
||||
"required": ["code", "toc", "crsStops", "crsHash", "tiplocStops", "tiplocHash"],
|
||||
"required": ["code", "toc", "crsStops", "tiplocStops"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -4,12 +4,13 @@
|
||||
"title": "PushPortSchedule",
|
||||
"description": "Consolidated object definition for Darwin Schedule messages",
|
||||
"definitions": {
|
||||
"SchedLocAttributes": {
|
||||
"type": "object",
|
||||
"description": "Attributes common to all schedule locations",
|
||||
"originPoint": {
|
||||
"description": "Merged Origin (OR / OPOR). The starting point of the journey.",
|
||||
"required": [
|
||||
"wtd",
|
||||
"tpl"
|
||||
],
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tpl": {
|
||||
"type": "string",
|
||||
@@ -32,13 +33,7 @@
|
||||
"fid": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of the formation data (v3) "
|
||||
}
|
||||
}
|
||||
},
|
||||
"CallPtAttributes": {
|
||||
"type": "object",
|
||||
"description": "Attributes for Calling Points (Optional for Operational variants)",
|
||||
"properties": {
|
||||
"pta": {
|
||||
"type": "string",
|
||||
"description": "Public Scheduled Time of Arrival"
|
||||
@@ -50,24 +45,7 @@
|
||||
"avgLoading": {
|
||||
"type": "string",
|
||||
"description": "Average Loading value based on long-term averages (v3) "
|
||||
}
|
||||
}
|
||||
},
|
||||
"originPoint": {
|
||||
"description": "Merged Origin (OR / OPOR). The starting point of the journey.",
|
||||
"required": [
|
||||
"wtd"
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/SchedLocAttributes"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/CallPtAttributes"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"wta": {
|
||||
"type": "string",
|
||||
"description": "Working Scheduled Time of Arrival (Optional)"
|
||||
@@ -81,25 +59,50 @@
|
||||
"description": "False Destination TIPLOC (Passenger only)"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"callingPoint": {
|
||||
"description": "Merged Intermediate Point (IP / OPIP). An intermediate stop requiring dwell time.",
|
||||
"required": [
|
||||
"wta",
|
||||
"wtd"
|
||||
"wtd",
|
||||
"tpl"
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/SchedLocAttributes"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/CallPtAttributes"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tpl": {
|
||||
"type": "string",
|
||||
"description": "TIPLOC"
|
||||
},
|
||||
"act": {
|
||||
"type": "string",
|
||||
"default": " ",
|
||||
"description": "Current Activity Codes"
|
||||
},
|
||||
"planAct": {
|
||||
"type": "string",
|
||||
"description": "Planned Activity Codes"
|
||||
},
|
||||
"can": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Cancelled flag"
|
||||
},
|
||||
"fid": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of the formation data (v3) "
|
||||
},
|
||||
"pta": {
|
||||
"type": "string",
|
||||
"description": "Public Scheduled Time of Arrival"
|
||||
},
|
||||
"ptd": {
|
||||
"type": "string",
|
||||
"description": "Public Scheduled Time of Departure"
|
||||
},
|
||||
"avgLoading": {
|
||||
"type": "string",
|
||||
"description": "Average Loading value based on long-term averages (v3) "
|
||||
},
|
||||
"wta": {
|
||||
"type": "string",
|
||||
"description": "Working Scheduled Time of Arrival (Required)"
|
||||
@@ -118,21 +121,37 @@
|
||||
"description": "False Destination (Passenger only)"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"passPoint": {
|
||||
"description": "Intermediate Passing Point (PP). Purely operational.",
|
||||
"required": [
|
||||
"wtp"
|
||||
"wtp",
|
||||
"tpl"
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/SchedLocAttributes"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tpl": {
|
||||
"type": "string",
|
||||
"description": "TIPLOC"
|
||||
},
|
||||
"act": {
|
||||
"type": "string",
|
||||
"default": " ",
|
||||
"description": "Current Activity Codes"
|
||||
},
|
||||
"planAct": {
|
||||
"type": "string",
|
||||
"description": "Planned Activity Codes"
|
||||
},
|
||||
"can": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Cancelled flag"
|
||||
},
|
||||
"fid": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of the formation data (v3) "
|
||||
},
|
||||
"wtp": {
|
||||
"type": "string",
|
||||
"description": "Working Scheduled Time of Passing (Required)"
|
||||
@@ -144,24 +163,49 @@
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"destinationPoint": {
|
||||
"description": "Merged Destination (DT / OPDT). The termination point of the journey.",
|
||||
"required": [
|
||||
"wta"
|
||||
"wta",
|
||||
"tpl"
|
||||
],
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/SchedLocAttributes"
|
||||
},
|
||||
{
|
||||
"$ref": "#/definitions/CallPtAttributes"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tpl": {
|
||||
"type": "string",
|
||||
"description": "TIPLOC"
|
||||
},
|
||||
"act": {
|
||||
"type": "string",
|
||||
"default": " ",
|
||||
"description": "Current Activity Codes"
|
||||
},
|
||||
"planAct": {
|
||||
"type": "string",
|
||||
"description": "Planned Activity Codes"
|
||||
},
|
||||
"can": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Cancelled flag"
|
||||
},
|
||||
"fid": {
|
||||
"type": "string",
|
||||
"description": "Unique identifier of the formation data (v3) "
|
||||
},
|
||||
"pta": {
|
||||
"type": "string",
|
||||
"description": "Public Scheduled Time of Arrival"
|
||||
},
|
||||
"ptd": {
|
||||
"type": "string",
|
||||
"description": "Public Scheduled Time of Departure"
|
||||
},
|
||||
"avgLoading": {
|
||||
"type": "string",
|
||||
"description": "Average Loading value based on long-term averages (v3) "
|
||||
},
|
||||
"wta": {
|
||||
"type": "string",
|
||||
"description": "Working Scheduled Time of Arrival (Required)"
|
||||
@@ -177,8 +221,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -192,7 +234,7 @@
|
||||
},
|
||||
"data_type": {
|
||||
"type": "string",
|
||||
"const": "PushPort16Schedule",
|
||||
"const": "raw",
|
||||
"description": "The type of data contained in this message object"
|
||||
},
|
||||
"sent_timestamp": {
|
||||
@@ -215,42 +257,94 @@
|
||||
"locations"
|
||||
],
|
||||
"properties": {
|
||||
"rid": {"type": "string", "description": "Rail Identifier - Unique value for the service"},
|
||||
"uid": {"type": "string", "description": "Unique ID - Unique value for the timetable entry - maps to Network Rail CIF schedules"},
|
||||
"ssd": {"type": "string", "format": "date", "description": "Service Start Date - The date the service commences"},
|
||||
"trainId": {"type": "string", "description": "Headcode"},
|
||||
"toc": {"type": "string", "minLength": 2, "maxLength": 2, "description": "Train Operator (ATOC Code)"},
|
||||
"rsid": {"type": "string", "description": "Retail Service ID"},
|
||||
"status": {"type": "string", "default": "P", "description": "P = Permanent, L = Long Term, S = Short Term"},
|
||||
"trainCat": {"type": "string", "default": "OO", "description": "Train Category"},
|
||||
"isPassenger": {"type": "boolean", "default": true, "description": "Declares the service as a passenger service"},
|
||||
"isActive": {"type": "boolean", "default": false, "description": "UNKNOWN"},
|
||||
"isCharter": {"type": "boolean", "default": false, "description": "Declares the service as a charter service"},
|
||||
"cancelReason": {"type": "integer", "description": "Cancellation Reason code"},
|
||||
|
||||
"rid": {
|
||||
"type": "string",
|
||||
"description": "Rail Identifier - Unique value for the service"
|
||||
},
|
||||
"uid": {
|
||||
"type": "string",
|
||||
"description": "Unique ID - Unique value for the timetable entry - maps to Network Rail CIF schedules"
|
||||
},
|
||||
"ssd": {
|
||||
"type": "string",
|
||||
"format": "date",
|
||||
"description": "Service Start Date - The date the service commences"
|
||||
},
|
||||
"trainId": {
|
||||
"type": "string",
|
||||
"description": "Headcode"
|
||||
},
|
||||
"toc": {
|
||||
"type": "string",
|
||||
"minLength": 2,
|
||||
"maxLength": 2,
|
||||
"description": "Train Operator (ATOC Code)"
|
||||
},
|
||||
"rsid": {
|
||||
"type": "string",
|
||||
"description": "Retail Service ID"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"default": "P",
|
||||
"description": "P = Permanent, L = Long Term, S = Short Term"
|
||||
},
|
||||
"trainCat": {
|
||||
"type": "string",
|
||||
"default": "OO",
|
||||
"description": "Train Category"
|
||||
},
|
||||
"isPassenger": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Declares the service as a passenger service"
|
||||
},
|
||||
"isActive": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "UNKNOWN"
|
||||
},
|
||||
"isCharter": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
"description": "Declares the service as a charter service"
|
||||
},
|
||||
"cancelReason": {
|
||||
"type": "integer",
|
||||
"description": "Cancellation Reason code"
|
||||
},
|
||||
"locations": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"description": "Merged and flattened location objects",
|
||||
"properties": {
|
||||
"OR": {
|
||||
"type": "array",
|
||||
"description": "OR/OPOR Values - Trains Origin",
|
||||
"items": {"$ref": "#/definitions/originPoint"}
|
||||
"items": {
|
||||
"$ref": "#/definitions/originPoint"
|
||||
}
|
||||
},
|
||||
"IP": {
|
||||
"type": "array",
|
||||
"description": "IP/OPIP Values - Intermediate Points",
|
||||
"items": {"$ref": "#/definitions/callingPoint"}
|
||||
"items": {
|
||||
"$ref": "#/definitions/callingPoint"
|
||||
}
|
||||
},
|
||||
"PP": {
|
||||
"type": "array",
|
||||
"description": "Passing Points (Non-stop)",
|
||||
"items": {"$ref": "#/definitions/passPoint"}
|
||||
"items": {
|
||||
"$ref": "#/definitions/passPoint"
|
||||
}
|
||||
},
|
||||
"DT": {
|
||||
"type": "array",
|
||||
"description": "DT/OPDT Values - Trains Destination",
|
||||
"items": {"$ref": "#/definitions/destinationPoint"}
|
||||
"items": {
|
||||
"$ref": "#/definitions/destinationPoint"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user