2 Commits

Author SHA1 Message Date
e0a7c5f56e Add boolean for passesAnotherTrain
All checks were successful
Generate and Release Protos / release (push) Successful in 32s
2026-02-23 20:30:05 +00:00
9a9fc59e22 Add booleans to describe service activities and whether the service is supressed 2026-02-23 20:29:10 +00:00

View File

@@ -31,7 +31,25 @@
"ptd": { "type": ["string", "null"] },
"plat": { "type": ["string", "null"] },
"isCancelled": { "type": "boolean", "default": false },
"activities": { "type": "string" }
"isSupressed": { "type": "boolean", "default": false, "description": "Defines whether the service should be hidden to the public"},
"activities": {
"type": "object",
"properties": {
"pickUpDropOff": {"type": "boolean", "description": "Indicates the train stops for passengers to board and alight"},
"requestStop": {"type": "boolean", "description": "Indicates if the train stops only when required"},
"pickUpOnly": {"type": "boolean", "description": "Indicated the service picks up passengers only"},
"dropOffOnly": {"type": "boolean", "description": "Indicates the service drops off passengers only"},
"tokenExchange": {"type": "boolean", "description": "Indicates if the train stops for exhanging a token/staff or similar"},
"vehiclesAttached": {"type": "boolean", "description": "Indicates if vehicles are attached at this location"},
"vehiclesDetached": {"type": "boolean", "description": "Indicates if vehicles are detached at this location"},
"trainCrewChange": {"type": "boolean", "description": "Indicates if train stops to exchange crew at this location"},
"changeLocomotive": {"type": "boolean", "description": "Indicates if train stops to exchange locomotive at this location"},
"changeEnds": {"type": "boolean", "description": "Indicates if the train reverses or driver changes ends at this location"},
"staffStop": {"type": "boolean", "description": "Indicates that the train stops for staff use only"},
"unadvertised": {"type": "boolean", "description": "Indicates that the stop is not advertised to the public"},
"passesAnotherTrain": {"type": "boolean", "description": "Indicates if the train stops to pass another train on a single line crossing point"}
}
}
}
}
}