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

Fuzzy trip matching, validate trip_id really exists #6226

Closed
Vinceveve opened this issue Nov 5, 2024 · 3 comments
Closed

Fuzzy trip matching, validate trip_id really exists #6226

Vinceveve opened this issue Nov 5, 2024 · 3 comments
Assignees

Comments

@Vinceveve
Copy link

Is your feature request related to a problem? Please describe.

When I receive a realtime feed, it can have a trip_id or not.
If it has a trip_id, OTP assumes the trip_id is ok.
Many times it is not. (random int or uuid, without any link with static feed)

Goal / high level use-case
Facilitate realtime feeds integration.

Describe the solution you'd like
When FuzzyTripMatching is activated, I need to validate that the provided trip_id really exists in the static feed.
If not, act like there is no trip_id set and try to match using route, date and time.

Describe alternatives you've considered
Proxy between RT feed and OTP to remove trip_id dynamically.

@leonardehrenfried
Copy link
Member

I am taking a look at this today and I noticed that the direction is also required by the current fuzzy matcher. Do you have that in your data?

@Vinceveve
Copy link
Author

Yes direction Boolean was there too

@leonardehrenfried
Copy link
Member

Implemented in #6250

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