"definitions": { "SchedLocAttributes": { "type": "object", "description": "Attributes common to all schedule locations", "required": ["tpl"], "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) " } } }, "CallPtAttributes": { "type": "object", "description": "Attributes for Calling Points (Optional for Operational variants)", "properties": { "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) " } } }, "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)" }, "wtd": { "type": "string", "description": "Working Scheduled Time of Departure (Required)" }, "fd": { "type": "string", "description": "False Destination TIPLOC (Passenger only)" } } } ] }, "callingPoint": { "description": "Merged Intermediate Point (IP / OPIP). An intermediate stop requiring dwell time.", "required": ["wta", "wtd"], "allOf": [ { "$ref": "#/definitions/SchedLocAttributes" }, { "$ref": "#/definitions/CallPtAttributes" }, { "type": "object", "properties": { "wta": { "type": "string", "description": "Working Scheduled Time of Arrival (Required)" }, "wtd": { "type": "string", "description": "Working Scheduled Time of Departure (Required)" }, "rdelay": { "type": "integer", "default": 0, "description": "Route delay value" }, "fd": { "type": "string", "description": "False Destination (Passenger only)" } } } ] }, "passPoint": { "description": "Intermediate Passing Point (PP). Purely operational.", "required": ["wtp"], "allOf": [ { "$ref": "#/definitions/SchedLocAttributes" }, { "type": "object", "properties": { "wtp": { "type": "string", "description": "Working Scheduled Time of Passing (Required)" }, "rdelay": { "type": "integer", "default": 0, "description": "Route delay value" } }, "additionalProperties": false } ] }, "destinationPoint": { "description": "Merged Destination (DT / OPDT). The termination point of the journey.", "required": ["wta"], "allOf": [ { "$ref": "#/definitions/SchedLocAttributes" }, { "$ref": "#/definitions/CallPtAttributes" }, { "type": "object", "properties": { "wta": { "type": "string", "description": "Working Scheduled Time of Arrival (Required)" }, "wtd": { "type": "string", "description": "Working Scheduled Time of Departure (Optional)" }, "rdelay": { "type": "integer", "default": 0, "description": "Route delay value" } } } ] } }