-
Notifications
You must be signed in to change notification settings - Fork 133
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
AbstractHafasProvider: Added the option to also receive trips with ca… #102
base: master
Are you sure you want to change the base?
Conversation
This PR seems to add only a property. Does it actually have any effect on parsed data? To me it seems not, or am I wrong? |
At least with BahnProvider calling query_Trips(..., true) also gives you cancelled trips which you then can (or rather have to) filter and handle differently. |
I would be quite interested in such a functionality, but giving it a first try I realized this would result in a breaking-change in the method signature for The other (a bit hacky) option would be to include a new What do you think @schildbach ? |
@ialokim I'm not too concerned with breaking method signatures, as PTE isn't even versioned yet. However, I'm more concerned with the sheer number of parameters of that method. Maybe we should move all "auxillary parameters" into a separate TripOptions class first (in a separate PR)? |
Sound reasonable. Do you want me to look into this? |
See the PR at #216 |
63d8043
to
2e5f16d
Compare
b017ce1
to
28dd2c8
Compare
…ncelled legs
queryTrips(...) and queryMoreTrips(...) can be called with an additional boolean which if set true keeps the functions from omitting trips where the product does not stop at departure or arrival stops of one or more legs.
This enables users of public-transport-enabler to display every connection as they would appear in the network's own web services. Untravelable trips can be found by checkout for departureCancelled and arrivalCancelled of departureStop and arrivalStop of each trip's legs.
The old behaviour is preserved by having query_Trips(...) with the old signatures call the new functions with query_Trips(..., false).