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

Review MOTIS trip display name logic #759

Closed
jbruechert opened this issue Jan 5, 2025 · 5 comments
Closed

Review MOTIS trip display name logic #759

jbruechert opened this issue Jan 5, 2025 · 5 comments
Labels
motis changes to the MOTIS routing engine are necessary

Comments

@jbruechert
Copy link
Collaborator

In some areas we end up without any name for a trip (MAV) and in some we end up with very weird looking names that are likely not what is visible on a station departure board (various trains in France).
This could be an issue in the feeds, or the logic in MOTIS can be improved. There are various strings to choose from (at least trip_short_name, route_short_name and route_long_name).

@jbruechert jbruechert added the motis changes to the MOTIS routing engine are necessary label Jan 5, 2025
@Altonss
Copy link
Collaborator

Altonss commented Jan 5, 2025

Some names are really weird, for example the new Ouigo Bruxelles-Paris. Probably an error in the feed :/

@Altonss
Copy link
Collaborator

Altonss commented Jan 5, 2025

Similar upstream discussion here: motis-project/motis#691

@jbruechert
Copy link
Collaborator Author

jbruechert commented Jan 5, 2025

Relevant code seems to be here: https://github.com/motis-project/nigiri/blob/master/src/loader/gtfs/trip.cc#L191

Overall the existing logic seems to be made for Germany and probably needs improvements for other places.
In particular, I suspect combining route and trip name creates weird results.

For example for TGVs, we get things like "081B 5358". Probably just the trip name (second) would be what you'd expect, right?

@jbruechert
Copy link
Collaborator Author

jbruechert commented Jan 5, 2025

For Austria trip_short_name is also the right thing (for example EC 113) but we get "D7" which is a route name that means nothing to most people.

After all we likely get the best results when reverse-engineering google maps behaviour and copying it, as that is what people test their feeds with.

@jbruechert
Copy link
Collaborator Author

I started to improve it a bit here: motis-project/nigiri#163

I'm very interested in opinions / conventions from other regions to make this as correct as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
motis changes to the MOTIS routing engine are necessary
Development

No branches or pull requests

2 participants