OpendataCH / Transport

Swiss public transport API
http://transport.opendata.ch/
MIT License
241 stars 50 forks source link

Add a probability for being realtime data #112

Closed chregu closed 8 years ago

chregu commented 8 years ago

The source data has no clear indication, if the data is realtime or not. Therefore add a probability for that

0 = no 25 = maybe not 75 = maybe 100 = certainly

Not sure, if that's the right way, but it certainly would help me (or Time for Coffee) to display, if the info is real time or not, currently only possible, when there's a delay

fabian commented 8 years ago

Hmm yeah, also not so sure if it makes sense to implement it on this layer.

I would rather expose the information needed so Time for Coffee can do the probability calculation on its own. status and delay are already in the response so we would only need to add some attribute for that "RA" attribute, right?

Any idea what "RA" and "RT_BHF" stand for? Realtime Bahnhof?

chregu commented 8 years ago

That's my guess. I can of course also to try to add this info to the output. But without knowing what it exactly means, it's a little bit hard to find a meaningful name for that. And adding the whole $xml->StAttrList->StAttr is maybe a little bit extensive. What do you think?

chregu commented 8 years ago

Closed, there's a new PR about that in #114