{#await getTrain(detail.rid)}
{detail.headcode}
{:then train}
{train.GetServiceDetailsResult.operatorCode}: {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}
Arrival Departure
Location Pl. Sch Est/Act Sch Est/Act
{location.tiploc} {location.platform || ''} {:then times} {times.sta} {times.eata} {times.std} {times.eatd}-{delay.string}
{:catch}
Error loading data
{/await}