Skip to content
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

Exclude some lines in an API request #551

Open
matteoferrux opened this issue Sep 30, 2024 · 3 comments
Open

Exclude some lines in an API request #551

matteoferrux opened this issue Sep 30, 2024 · 3 comments

Comments

@matteoferrux
Copy link

Hi,
Ilevia, our public transport network here in Lille, sometimes experiences major breakdowns and regular outages, particularly on the metro and tramway lines, and I'm currently working on user interaction with the route engine via the MOTIS API. I'd like to know if it's possible to exclude certain lines when calculating a route (the lines in question would be brought up via an internal API) to avoid sending our users to lines that are out of order.

Thank you in advance for your reply!

@felixguendling
Copy link
Member

If I understand the use case correctly, the best way would be to cancel those lines using GTFS-RT. You can have several GTFS-RT endpoints for the same GTFS-static file. With one you could produce cancellation messages for every trip you want to remove from the routing.

@matteoferrux
Copy link
Author

matteoferrux commented Sep 30, 2024

But my problem is that Ilevia doesnt have any GTFS-RT for the metro because the VAL system is too old for that :/
So I'd have to produce a GTFS-RT myself when there's a technical problem?

@felixguendling
Copy link
Member

So I'd have to produce a GTFS-RT myself when there's a technical problem?

Yes. If you have a list of trips you want to remove anyway, it should also not be difficult to produce the protobuf. It's probably not a big difference if you do it via the routing query or via GTFS-RT. So I would recommend to do it via GTFS-RT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants