### Example Realtime Trains API JSON Response Source: https://github.com/rorydotgg/realtime-trains-api-docs/blob/main/pull-location-line-up.md A comprehensive example JSON payload demonstrating all possible fields that may appear in a Realtime Trains API output, providing a full structure without distinguishing between simple and detailed views. ```json { "location": { "name": "Bournemouth", "crs": "BMH", "tiploc": "BOMO" }, "filter": null, "services": [ { "locationDetail": { "realtimeActivated": true, "tiploc": "BOMO", "crs": "BMH", "description": "Bournemouth", "wttBookedArrival": "011630", "wttBookedDeparture": "011830", "gbttBookedArrival": "0117", "gbttBookedDeparture": "0118", "origin": [ { "tiploc": "WATRLMN", "description": "London Waterloo", "workingTime": "230500", "publicTime": "2305" } ], "destination": [ { "tiploc": "POOLE", "description": "Poole", "workingTime": "013000", "publicTime": "0130" } ], "isCall": true, "isPublicCall": true, "realtimeArrival": "0114", "realtimeArrivalActual": false, "realtimeDeparture": "0118", "realtimeDepartureActual": false, "platform": "3", "platformConfirmed": false, "platformChanged": false, "displayAs": "CALL" }, "serviceUid": "W90091", "runDate": "2013-06-11", "trainIdentity": "1B77", "runningIdentity": "1B77", "atocCode": "SW", "atocName": "South West Trains", "serviceType": "train", "isPassenger": true } ] } ``` -------------------------------- ### Example Realtime Train Service Data Output Source: https://github.com/rorydotgg/realtime-trains-api-docs/blob/main/pull-service-information.md This JSON snippet provides a complete example of the data returned for a single train service. It includes details such as service UIDs, dates, train identity, power type, ATOC codes, and an array of locations with their respective real-time and booked arrival/departure times, platform information, and status. ```json { "serviceUid": "W72419", "runDate": "2013-06-11", "serviceType": "train", "isPassenger": true, "trainIdentity": "2A61", "powerType": "EMU", "trainClass": "B", "atocCode": "SN", "atocName": "Southern", "performanceMonitored": true, "origin": [ { "tiploc": "BRGHTN", "description": "Brighton", "workingTime": "230500", "publicTime": "2305" } ], "destination": [ { "tiploc": "VICTRIC", "description": "London Victoria", "workingTime": "003900", "publicTime": "0039" } ], "locations": [ { "realtimeActivated": true, "tiploc": "BRGHTN", "crs": "BTN", "description": "Brighton", "wttBookedDeparture": "230500", "gbttBookedDeparture": "2305", "origin": [ { "tiploc": "BRGHTN", "description": "Brighton", "workingTime": "230500", "publicTime": "2305" } ], "destination": [ { "tiploc": "VICTRIC", "description": "London Victoria", "workingTime": "003900", "publicTime": "0039" } ], "isCall": true, "isPublicCall": true, "realtimeDeparture": "2304", "realtimeDepartureActual": true, "realtimeGbttDepartureLateness": null, "platform": "6", "platformConfirmed": true, "platformChanged": false, "line": "M", "lineConfirmed": true, "displayAs": "ORIGIN" }, { "realtimeActivated": true, "tiploc": "ECROYDN", "crs": "ECR", "description": "East Croydon", "wttBookedArrival": "001700", "wttBookedDeparture": "001800", "gbttBookedArrival": "0017", "gbttBookedDeparture": "0018", "origin": [ { "tiploc": "BRGHTN", "description": "Brighton", "workingTime": "230500", "publicTime": "2305" } ], "destination": [ { "tiploc": "VICTRIC", "description": "London Victoria", "workingTime": "003900", "publicTime": "0039" } ], "isCall": true, "isPublicCall": true, "realtimeArrival": "0017", "realtimeArrivalActual": true, "realtimeDeparture": "0018", "realtimeDepartureActual": true, "platform": "4", "platformConfirmed": true, "platformChanged": false, "line": "S", "lineConfirmed": true, "displayAs": "CALL" }, { "realtimeActivated": true, "tiploc": "CLPHMJC", "crs": "CLJ", "description": "Clapham Junction", "wttBookedArrival": "003100", "wttBookedDeparture": "003200", "gbttBookedArrival": "0031", "gbttBookedDeparture": "0032", "origin": [ { "tiploc": "BRGHTN", "description": "Brighton", "workingTime": "230500", "publicTime": "2305" } ], "destination": [ { "tiploc": "VICTRIC", "description": "London Victoria", "workingTime": "003900", "publicTime": "0039" } ], "isCall": true, "isPublicCall": true, "realtimeArrival": "0033", "realtimeArrivalActual": false, "realtimeDeparture": "0034", "realtimeDepartureActual": false, "platform": "14", "platformConfirmed": false, "platformChanged": false, "line": "SL", "lineConfirmed": false, "serviceLocation": "APPR_STAT", "displayAs": "CALL" }, { "realtimeActivated": true, "tiploc": "VICTRIC", "crs": "VIC", "description": "London Victoria", "wttBookedArrival": "003900", "gbttBookedArrival": "0039", "origin": [ { "tiploc": "BRGHTN", "description": "Brighton", "workingTime": "230500", "publicTime": "2305" } ], "destination": [ { "tiploc": "VICTRIC", "description": "London Victoria", "workingTime": "003900", "publicTime": "0039" } ] ``` -------------------------------- ### API Endpoints for Real-Time Train Information Source: https://github.com/rorydotgg/realtime-trains-api-docs/blob/main/pull-location-line-up.md Defines the various URL structures for querying real-time train departure and arrival information, including options for station, destination, date, and time filtering. Notes on appending '/arrivals' and parameter order are also included. ```APIDOC Endpoints: Normal queries (live departures): /json/search/ Normal queries filtered to a location: /json/search//to/ Queries for all services on a specific date: /json/search//// Queries for services on a specific date and time: /json/search/////