almex / Raildelays

Fill-in Excel sheet with delays from belgian railway company
http://repo1.maven.org/maven2/com/github/almex/
MIT License
7 stars 3 forks source link

Be able to parse canceled stop (since the migration to HAFAS data source) #31

Closed almex closed 9 years ago

almex commented 9 years ago

We don't know yet what is used to determine in the JSON response when we have a canceled stop.

almex commented 9 years ago

see [#30] for more explanation of the JSON response.

Here is an example of a canceled stop:

{"jId":"513_150408_8891702_1340",
 "csId":8814001,
 "cs":"Bruxelles-Midi",
 "csAt":"14:54",
 "csDt":"14:56",
 "dA":0,
 "dD":0,
 "jN":"IC   513",
 "dsId":8891702,
 "dT":"13:40",
 "asId":8844628,
 "aT":"16:45",
 "oD":1428444000000,
 "c1":null,
 "c2":null,
 "tI":11,
 "tA":"12",
 "tD":"12",
 "sA":0,
 "sD":1,
 "tAR":"",
 "tDR":"",
 "sCS":null,
 "tNr":"513",
 "idD":null,
 "idO":null,
 "sJ":null
}
almex commented 9 years ago

sA = 'suppression' (French word for cancel) Arrival -> null/0 = false - 1 = true sD = 'suppression' (French word for cancel) Departure -> null/0 = false - 1 = true

almex commented 9 years ago

Here is what is rendered with our data: canceled_stops

almex commented 9 years ago

Should take into account sD for departure and sA for arrival. Otherwise the status is wrong : clipboard01