You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
1.5 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GB Rail API</title>
<link rel="stylesheet" href="main.css">
<script src="script.js"></script>
</head>
<body>
<h1>Search base train schedule by train ID</h1>
Find the base schedule for the specified train. Base schedule may be overridden by an overlay record, or being cancelled on
specified dates. No train association information are included in this API call. If train association information is required,
<a href="schedule.html">Search schedule by train ID</a> should be used.
<h2>Syntax</h2>
<div class="syntax">/schedule/{id}[/{date}]/wtt</div>
<h3>Parameters</h3>
<table class="param">
<tr>
<th>id</th>
<td>Train ID in the scheduling system</td>
</tr>
<tr>
<th>date</th>
<td>
<span style="font-weight: bold">Optional</span>
The date of the schedule to be searched, in <code>YYYY-MM-DD</code>
format.<br>
<span style="font-weight: bold">Default:</span> today
</td>
</tr>
</table>
<h2>Return Value</h2>
TrainSchedule
<h2>Type References</h2>
<iframe class="retv" src="retv-TrainSchedule.html" id="retv-TrainSchedule" onload="resize('retv-TrainSchedule')"></iframe>
<iframe class="retv" src="retv-TrainScheduleDetail.html" id="retv-TrainScheduleDetail" onload="resize('retv-TrainScheduleDetail')"></iframe>
<iframe class="retv" src="retv-TrainAssociation.html" id="retv-TrainAssociation" onload="resize('retv-TrainAssociation')"></iframe>
</body>
</html>