I migrated the schedule importer in my software from CIF format to JSON format, but there is something that doesn't add up to me.
In the JSON format I can't find any element resembling the CR (Changes end Route) record of the CIF; the information of the BS and CR record appears to be contained in the schedule_segment object, but there is only one segment for each schedule. Where are the changes recorded?
I would be interested in speed changes in particular (Speed field of BS and CR records).
For example, this schedule has a speed change from 110 to 100 mph in the CIF file:
BSNP719702305212312030000001 POO2Y582094112259320 EMU506 110 S S P
LOBHAMNWS 2210 22104A WL TB
LIBLTCHLY 2347 2348H 234723484 SL SL T
CRLTNBZRD OO2Y582116122209000 EMU350 100 S S
LILTNBZRD 2354H2355H 23552355 T 4
but in the JSON it's all 110 mph. There is only one speed for the whole schedule:
The VSTP suffers from the same problem: syntactically there may be more than one schedule_segment (it's an array), but from a quick analysis there is always only one element in the array, even where I would expect a Change en Route.
Any advice would be appreciated.