Skip to content

Restricting to Route/Vehicle Types for searches #397

Answered by felixguendling
cfoehrdes asked this question in Q&A
Discussion options

You must be logged in to vote

It would probably be possible, to exclude those routes in the routing algorithm. For 100% correctness, also the "route" definition of the RAPTOR algorithm would need to be adjusted so that all transports that are grouped in one route have the same properties regarding all filter search options (i.e. all are 49€ ticket compatible or non of them are). In most cases, this would probably be the case anyway so as a first step, it would be sufficient to store a boolean for each transport "is 49€ compatible" and filter routes that are not compatible. Same for long distance buses.

Another option (that would not require to change the algorithm and data loader) would be to filter the data and creat…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cfoehrdes
Comment options

Answer selected by cfoehrdes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants