-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow for "transport mode" to be filtered by section (defined by vias) #462
Comments
Would some other filters be useful too? Would they be hard filters, or soft? |
@ue71603 I would suggest sending 2 separate trip requests to implement this requirement. One from Bern to Thun, and one from Thun to Interlaken. |
On www.sbb.ch, I wasn't able to replicate the described behavior. (A) I didn't find how to have separate transport mode selections per section ("Verkehrsmittelwahl pro Teilstrecke"). (B) Limiting the search to the second section Thun-Interlaken and selecting all transport modes didn't give me any boat trips; it only worked after removing all train modes. That's more or less the behavior I would expect from an implementation as proposed by @herlitze - i.e., boat trips are included if the user specifies a carefully selected section from a section origin to a section destination that is possible without using a train. This requires detailed knowledge or a lucky guess by the user. Would a more general solution, based on hard constraints and existing mechanisms, make sense that uses MultiPointTripRequests? For the trip from Bern to Interlaken one would have to look for boat stops near the route, take the set of all boat stops of the navigation service network, find possible routes from orgin Bern to each boat stop, then search for follow-up water routes between (in prinicple) all possible pairs of boat stops, and then from all the destination boat stops to Interlaken. Then display the solutions most likely to please the user. |
I agree with @herlitze comment. But I think your actual requirement is to separate the complete trip at the via and have different search parameters applied to either partial trip, right? That would include the comment from @skinkie earlier as well. To sum up my point of view: If you have separated trips with different search parameters, make it separated TripSearches as well. It would be very hard for a Journey Planner to implement support for leg-specific search parameters because from the perspective of OJP this is what it boils down to in the end. I would also argue that this is not what you would want from the users perspective as well. You either already know that there is a boat and you would like to take it, then you would try to find a trip to the boat, find a suitable boat journey and finally the rest of the trip to your final destination. If you don't know that there is a boat what are generally interested in scenic trips, then please use the already existing optimization method "scenic". |
Let's assume you want to do a trip from Bern - Interlaken West
The via is Thun
From Thun to Interlaken West you would like to use the boat.
This is done in www.sbb.ch like this:
Possible solutions in OJP:
Do it beforehand
Add some filters to the Via
Other ideas?
The text was updated successfully, but these errors were encountered: