-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
canceled trips & departures/arrivals #27
Comments
Omitting elements doesn't feel like the right approach. The goal should be to be as comprehensible instead of as minimal as possible imo. A cancelled state seems like a good idea. |
I'm in favour of marking them as canceled. But I also think that's not enough. Just like with realtime departures, we should incentivise people to handle canceled departures properly. We could additionally set |
Also, we need to pay attention to the spelling of cancel(l)ed. |
from derhuerst/vbb-rest#19 (comment)
|
Cancel(l)ed state LGTM, I'm not sure if it would be wise to set the |
From derhuerst/vbb-rest#26:
|
I must say, that I really like the canceled flag. But as stated in the comment above, I have some problems with Removing this time value forces me to sort these departures out entirely. Also, please consider the behaviour of the "official" applications. When you use public transport apps, the canceled trips are still shown with their original departure times, but they provide a hint or the departures are crossed out (like BVG, DB apps do). But I also agree with @derhuerst when he says, that people should be incentivised to handle canceled departures properly. Maybe you could But either way, I really think this data should be accessible somehow. |
What about this? {
when: null,
canceled: true,
originalWhen: '2018-02-28T22:19:25.066Z'
} pros:
cons:
|
This could be a good solution. Do you want to provide the If you provide it all the time you should consider providing it without the |
Not sure yet. I think having it all the time would be confusing. Or at least we would need a better name than "original", because "original" might also be understood as "scheduled" (vs. realtime). |
one could make it a nested object getting more clarity in a complexity tradeoff :/ {
when: null,
status: {
status: 'cancelled',
originalWhen: '...'
}
} I would however also vote for a naming change instead of this monstrosity. |
I propose a field |
I would also suggest to name the field something like |
Note that |
I'm aware of that, but as I understand the meaning of the word "scheduled" (when I translate it to german with "geplant"/"planmäßig"), a departure is still scheduled to a certain time even if it is canceled or delayed. Because it was originally scheduled to leave at this specific time. IMHO, the cancellation itself doesn't change anything to the original scheduled time, because the schedule itself is still valid, but with a cancelled departure. Even the delay doesn't change anything about the actual scheduled time. It just changes the actual departure time. But this is just my opinion... If I think about it that way, one could change the response to something like that: On a normal departure: {
when: <SCHEDULEDTIMESTAMP+120>,
delay: 120,
scheduled: <SCHEDULEDTIMESTAMP>
} On a cancelled departure: {
when: null,
delay: null, // Or nonexistent for less data
scheduled: <SCHEDULEDTIMESTAMP>,
canceled: true
} pros:
cons:
As I said, this is just my opinion on this. I would also be fine with a Edit: It could also be the case, that I'm missing something here... |
Apparently there's been a misunderstanding. I trying to make the point that "scheduled" wouldn't be the correct name for the former But, thinking about it, it might make sense to, if a departure has been cancelled, expose the scheduled departure, because the former realtime departure is irrelevant anyways. 👍 So, my new proposal: {
when: null,
canceled: true,
formerScheduledWhen: '...'
} |
Ok, then I really didn't get your point ^^' This sounds good to me. I'd say |
(Sorry that it took me so long to respond) What about delay information when a trip is canceled? IMHO that information should be kept as well. Would make more sense to call it And (different topic) from what I understand, the |
Not sure if the former delay is that relevant. After all, the departure/trip has been cancelled. (I know arguing with what the status quo is like is not a very strong argument, but) Whenever I see cancelled departures in current signage systems, the former delay isn't being shown anymore.
I'm fine with that. |
For example when recording which trains have been canceled, there might be a correlation with the "former" delay (Trains that are really late might be more likely to be canceled) which IMHO makes this a relevant information. |
I consider this a niche use case. Because we may not even have this information, I'm against adding |
I never wanted the field to be |
Okay, then I misunderstood you. I'm fine with making it optional. I'm just not sure if it's necessary. Shall I add it to #31? |
Please note that instead of
Yes 🙂 |
Okay, I'm against that. 😛 As I said above, I think it is more relevant to expose the former scheduled departure/arrival. That aside, I've already built it into |
I don't get your point. Either you have delay information on the canceled route, then my proposal is not a problem (?). Or you don't have it, but calculating the raw
I don't think this decision should depend on |
Even though To make it clear: Why not add |
[just a sarcastic side note] Why I think having the delay on cancelled departures (by default) is counter-intuitive. 😛 https://mobile.twitter.com/BahnAnsagen/status/974380477040775170/photo/1 |
I feel like this is inconsistent. We should either use |
@juliuste Has a point here... |
@derhuerst and I just had a long discussion about this, I tried my best to summarize our proposal in #33 Since #33 would introduce a breaking change, I'm fine if @derhuerst wants to add his current proposal ( For |
a bit related to #44 |
What should we do with them? Omit them from the results? Mark them as canceled?
see also derhuerst/vbb-rest#19
The text was updated successfully, but these errors were encountered: