Something wacky seems to be going on with the DateTime results on the
online bus/trolly feed.
For example, for the URL below (trolley 34, Baltimore and 60th Ave,
direction outbound, and 7 results) there are the following errors in
the results.
There are duplicate schedules which is easy enough to detect and
remove, so that isn't a massive deal. The big problem is that close to
midnight (and even after midnight), the schedules that occur *past*
midnight have a correct 'day' value but an incorrect DateTime value.
For instance, It's 12:37am right now on Monday, but the schedule
results for the below URL return "Mon" and "02\/19\/12 12:30 am".
Today is the twentieth, so i'm not sure if the 12:30am is actually for
today (which I assume) or 24 hours ago, on the 19th.
Many thanks guys!
Daniel
The URL in question:
http://www3.septa.org/hackathon/BusSchedules/?req1=20859&req2=34&req3=o&req6=7
Here is the json result as this only seems to manifest itself around
the turn of a new day:
{"34":[{"StopName":"Baltimore Av & 60th
St","Route":"34","date":"12:30a","day":"Mon","Direction":"0","DateCalender":"02\/
19\/12 12:30 am"},{"StopName":"Baltimore Av & 60th
St","Route":"34","date":"12:30a","day":"Mon","Direction":"0","DateCalender":"02\/
19\/12 12:30 am"},{"StopName":"Baltimore Av & 60th
St","Route":"34","date":"1:00a","day":"Mon","Direction":"0","DateCalender":"02\/
19\/12 01:00 am"},{"StopName":"Baltimore Av & 60th
St","Route":"34","date":"1:00a","day":"Mon","Direction":"0","DateCalender":"02\/
19\/12 01:00 am"},{"StopName":"Baltimore Av & 60th
St","Route":"34","date":"1:16a","day":"Mon","Direction":"0","DateCalender":"02\/
19\/12 01:16 am"},{"StopName":"Baltimore Av & 60th
St","Route":"34","date":"1:16a","day":"Mon","Direction":"0","DateCalender":"02\/
19\/12 01:16 am"},{"StopName":"Baltimore Av & 60th
St","Route":"34","date":"1:46a","day":"Mon","Direction":"0","DateCalender":"02\/
19\/12 01:46 am"}]}