Cancelled train

164 views
Skip to first unread message

Janos

unread,
Nov 18, 2021, 6:43:45 PM11/18/21
to A gathering place for the Open Rail Data community
Hi All,

I do a GetDepBoardWithDetailsRequest and I see a train coming to a station, but it is canceled based on https://ojp.nationalrail.co.uk/ website. in the response I don't really know what indicates that the train is not coming?
thanks,

This is the relevant train, the full response is attached.
<t10:service>
    <t10:rid>202111187667017</t10:rid>
    <t10:uid>L67017</t10:uid>
    <t10:trainid>9S37</t10:trainid>
    <t10:sdd>2021-11-18</t10:sdd>
    <t10:operator>Thameslink</t10:operator>
    <t10:operatorCode>TL</t10:operatorCode>
    <t10:sta>2021-11-18T15:14:00</t10:sta>
    <t10:eta>2021-11-18T15:14:00</t10:eta>
    <t10:arrivalType>Forecast</t10:arrivalType>
    <t10:std>2021-11-18T15:15:00</t10:std>
    <t10:etd>2021-11-18T15:15:00</t10:etd>
    <t10:departureType>Forecast</t10:departureType>
    <t10:departureSource>Darwin</t10:departureSource>
    <t10:platform>4</t10:platform>
    <t10:platformIsHidden>true</t10:platformIsHidden>
    <t10:origin>
        <t6:location>
            <t5:locationName>Cambridge</t5:locationName>
            <t5:crs>CBG</t5:crs>
            <t5:tiploc>CAMBDGE</t5:tiploc>
        </t6:location>
    </t10:origin>
    <t10:destination>
        <t6:location>
            <t5:locationName>Brighton</t5:locationName>
            <t5:crs>BTN</t5:crs>
            <t5:tiploc>BRGHTN</t5:tiploc>
        </t6:location>
    </t10:destination>
    <t10:category>XX</t10:category>
    <t10:activities>T           </t10:activities>
..
<t10:service>


cancelledTrain.xml

RailAleFan

unread,
Nov 19, 2021, 5:40:51 AM11/19/21
to A gathering place for the Open Rail Data community
Hello Janos,

There's nothing in that response that would indicate cancellation (you would see isCancelled=true), and indeed 202111187667026 did call at London Bridge, reporting an ata of 2021-11-18T15:13:01 and an etd of 2021-11-18T15:14:48...

Cheers

Janos

unread,
Nov 24, 2021, 4:00:19 PM11/24/21
to A gathering place for the Open Rail Data community
thanks.
then could you tell me, how can I figure out if a train is cancelled?

RailAleFan

unread,
Nov 25, 2021, 4:06:24 AM11/25/21
to A gathering place for the Open Rail Data community
Hello Janos,

The service item will have isCancelled set, as in the following example

<t12:service>
  <t10:rid>202111256732373</t10:rid>
  <t10:uid>C32373</t10:uid>
  <t10:trainid>2T10</t10:trainid>
  <t10:sdd>2021-11-25</t10:sdd>
  <t10:operator>Transport for Wales</t10:operator>
  <t10:operatorCode>AW</t10:operatorCode>
  <t10:isCancelled>true</t10:isCancelled>
  <t10:sta>2021-11-25T09:09:00</t10:sta>
  <t10:std>2021-11-25T09:09:00</t10:std>
  <t10:platform>5</t10:platform>

  <t10:platformIsHidden>true</t10:platformIsHidden>
  <t12:origin>
    <t6:location>
      <t5:locationName>Cardiff Central</t5:locationName>
      <t5:crs>CDF</t5:crs>
      <t5:tiploc>CRDFCEN</t5:tiploc>
      </t6:location>
  </t12:origin>
  <t12:destination>
    <t6:location>
      <t5:locationName>Treherbert</t5:locationName>
      <t5:crs>TRB</t5:crs>
      <t5:tiploc>TREHRBT</t5:tiploc>
    </t6:location>
  </t12:destination>
  <t12:cancelReason tiploc="">547</t12:cancelReason>
  <t12:category>OO</t12:category>
  <t12:activities>T </t12:activities>
</t12:service>


Cheers
Reply all
Reply to author
Forward
0 new messages