Hi all,
So, I've built a system where I'd like to be able to query schedules for a location within a given time range. So I need to take the schedule start date and local times and transform them into full timestamps (albeit ones that ignore the timezone).
So, rather optimistically, I've relied on the public departure time (or arrival, for termini) in a schedule being monotonic.
My main question, is what do folks do when this doesn't hold? Do most folks either just not care, or rely on the pushport schedule correcting the incorrect version?
For example, in timetable id 20250122020500 the schedule W36563 on 2025-01-22 (from Victoria to Brighton) , apparently arrives at Brighton before the service arrives at Lewes:
<Journey rid="202501228736563" uid="W36563" trainId="1H72" ssd="2025-01-22" toc="SN" trainCat="XX">
<!-- other locations elided -->
<IP tpl="HYWRDSH" act="T " planAct="T -D" plat="2" pta="00:58" ptd="01:02" wta="00:58" wtd="01:02" />
<!-- other locations elided -->
<IP tpl="LEWES" act="T " plat="4" pta="01:22" ptd="01:22" wta="01:22" wtd="01:22" />
<DT tpl="BRGHTN" act="TFRM" plat="6" pta="01:16" wta="01:16" rdelay="21" />
</Journey>
But it's not present in the pushport version:
<uR updateOrigin="CIS" requestSource="at45" requestID="0000000000010770">
<schedule rid="202501228736563" uid="W36563" trainId="1H72" ssd="2025-01-22" toc="SN" trainCat="XX">
<!-- other locations elided -->
<ns2:IP wta="00:58" wtd="01:02" tpl="HYWRDSH" act="T -D" pta="00:58" ptd="01:02"/>
<ns2:PP wtp="01:05:30" tpl="KEYMERJ"/>
<ns2:PP wtp="01:06" tpl="BURGESH"/>
<ns2:PP wtp="01:12" tpl="PRSP"/>
<ns2:DT wta="01:16" pta="01:16" tpl="BRGHTN" act="TFRM"/>
</schedule>
Or a previous schedule file:
<Journey rid="202501228736563" uid="W36563" trainId="1H72" ssd="2025-01-22" toc="SN" trainCat="XX">
<!-- other locations elided -->
<IP tpl="HYWRDSH" act="T -D" plat="1" pta="00:58" ptd="01:02" wta="00:58" wtd="01:02" />
<PP tpl="KEYMERJ" wtp="01:05:30" />
<PP tpl="BURGESH" plat="2" wtp="01:06" />
<PP tpl="PRSP" plat="3" wtp="01:12" />
<DT tpl="BRGHTN" act="TFRM" plat="3" pta="01:16" wta="01:16" />
</Journey>
Does anyone happen to know what's actually going on here?
Thanks,