opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.22k stars 1.03k forks source link

Fuzzy trip matching, validate trip_id really exists #6226

Open Vinceveve opened 2 weeks ago

Vinceveve commented 2 weeks ago

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 commented 1 week ago

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 commented 1 week ago

Yes direction Boolean was there too