{#if isLoading} {:else} {#if dataAge}

Updated: {dataAge.toLocaleTimeString()}

{#if services.length} {#each services as service} {/each}
From To Plat. Sch Arr. Exp Arr. Sch Dep. Exp Dep.
{#if Array.isArray(service.origin?.location)} {service.origin.location[0]['locationName'] + " & " + service.origin.location[1]['locationName']} {:else} {service.origin?.location?.locationName || ''} {/if} {#if Array.isArray(service.destination?.location)} {service.destination.location[0]['locationName'] + " & " + service.destination.location[0]['locationName']} {:else} {service.destination?.location?.locationName || ''} {/if} {service.platform || '-'} {parseTime(service.sta).data} {parseTime(service.eta).data} {parseTime(service.std).data} {parseTime(service.etd).data}

A {service.operator || 'Unknown'} service {#if service['length']} with {service['length'] || 'some'} coaches {/if}

{#if service.delayReason}

{service.delayReason}

{/if} {#if service.cancelReason}

{service.cancelReason}

{/if}
{:else}

No Scheduled Train Services

{/if} {#if busServices.length}
Bus services
Bus Services {#each busServices as service} {/each}
From To Sch Arr. Exp Arr. Sch Dep. Exp Dep.
{service.origin?.location?.locationName || ''} {service.destination?.location?.locationName || ''} {parseTime(service.sta).data} {parseTime(service.eta).data} {parseTime(service.std).data} {parseTime(service.etd).data}

A {service.operator || 'Unknown'} service

{#if service.delayReason}

{service.delayReason}

{/if} {#if service.cancelReason}

{service.cancelReason}

{/if}
{/if} {#if ferryServices.length}
Bus services
Ferry Services {#each ferryServices as service} {/each}
From To Sch Arr. Exp Arr. Sch Dep. Exp Dep.
{service.origin?.location?.locationName || ''} {service.destination?.location?.locationName || ''} {parseTime(service.sta).data} {parseTime(service.eta).data} {parseTime(service.std).data} {parseTime(service.etd).data}
{#if service.delayReason}

{service.delayReason}

{/if} {#if service.cancelReason}

{service.cancelReason}

{/if}
{/if} {:else}

Unable to find this station

{/if} {/if}