Open sgdoerfler opened 9 years ago
We can't do 3 and 4 unfortunately due to API limitations. We could partially do 4 by telling you if the bus was delayed or not.
Also, the predictions may not be terribly useful now because there is not traffic, but the predictions do take red lights and traffic into account.
Red lights: I meant that the predictions don't have real-time info on traffic light cycles (as far as I know!), only historical probabilities. So they'll know that it takes 60 seconds on average to get through a certain light, but won't know if a specific bus is going to hit a green and go right through, or miss it and wait 2 minutes for the next. As a result, the actual arrival time of a bus that's just a few lights away can vary by a minute or two based on circumstances the prediction system won't know. So it's best to treat many predictions as "10 minutes plus or minus 1 minute or so".
Re 4: Sounds like "bus is delayed" would be very useful info. :-)
Re 3: I think part of what I'm requesting wouldn't require any info that's not in the API, so let me explain it again, because I probably wasn't clear enough.
Say an outbound 61C is approaching Forbes and Murray when I click on its icon. I'd like to see "Next 61C is 4 minutes behind this one." I can get that info by going to PAT's real-time site and selecting that stop in its interface; it shows me a list of buses that will be stopping there. Something like:
61C: approaching 61A: 2 minutes 61B: 3 minutes 61C: 4 minutes 61A: 12 minutes
I see that The Tranisit App can also pull up similar info, by selecting a route and clicking the schedule icon (which unhelpfully merges real-time and scheduled data). So I think the needed info is in the API, for at least this most basic "next bus after this one on the same route" info.
Finding info on previous buses is harder; you'd have to look ahead N stops. Perhaps it's not worth bothering about.
To put it another way: When I click a bus stop, I'd like to see a list of the next N buses expected at that stop, and how long from now, just like I get when I select a stop on PAT"s real time web site interface. And when I select a bus, I'd like to see it locate the next stop for that bus, and then show the same info as above for that stop. (The other stuff I was describing was really just a way of filtering that list to make it more useful and shorter, but not filtering it is simpler and still very useful.)
To the last part.... That's where the dialog will come in handy. Most likely, we'll have the markers display the stops but will have a dialog open if you click the infowindow.
"We'll have to go by hand manually to get all important bus stops"
In theory, PAT already has this data for its web site's schedule tables, so you could get it via screen scraping (or maybe just asking them for it). But they name the stops slightly differently there, so that alternative could be tricky.
Looks like we will be finally doing something about this.... However I want to see more of a bottom gravity fragment pop up at the bottom of the app and display stuff similar to how google maps does things.
In 2.95B, the bus dialog shows the next few stops and estimated arrival times. Apart from the name of the next stop, this isn't terribly useful info. The times are nearly always in the next few minutes, and saying "this stop in 2 minutes, that one in 3" suggests an accuracy that the system can't really deliver, what with red lights and such.
Here's some info that I'd find more useful in this dialog, if it could be added.