{#await getTrain(detail.rid)}
{detail.headcode}

Loading Data...

{:then train}
{detail.headcode}

Locations in grey are not scheduled stops
Times in yellow are estimated times

{#if train.GetServiceDetailsResult.delayReason}

{/if} {#if train.GetServiceDetailsResult.cancelReason}

{/if} {#each train.GetServiceDetailsResult.locations.location as location} {#await parseTimes(location)} {/await} {#await parseDelay(location)} {:then delay} {/await} {/each}
Loc. Pl. Sch Est/
Act
Sch Est/
Act
Arrival Departure
{location.tiploc} {location.platform || ""} {:then times} {times.sta} {times.eata} {times.std} {times.eatd}-{delay.string}
{:catch}
Error loading data
{/await}