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

rewrite realtime matching logic #111

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

mbsalvatore
Copy link

Not sure how to deal with this section

//                    if (delay == null) {
//                        newTimes.updateArrivalTime(i, TripTimes.UNAVAILABLE);
//                        newTimes.updateDepartureTime(i, TripTimes.UNAVAILABLE);
//                    } else {
//                        newTimes.updateArrivalDelay(i, delay);
//                        newTimes.updateDepartureDelay(i, delay);
//                    }

maybe its ok to leave it out? not sure

@mbsalvatore mbsalvatore merged commit ec78499 into dev-2.x Mar 8, 2024
1 check passed
@mbsalvatore mbsalvatore deleted the experimental-realtime-match branch March 8, 2024 18:15
@sheldonabrown
Copy link
Member

Not sure how to deal with this section

//                    if (delay == null) {
//                        newTimes.updateArrivalTime(i, TripTimes.UNAVAILABLE);
//                        newTimes.updateDepartureTime(i, TripTimes.UNAVAILABLE);
//                    } else {
//                        newTimes.updateArrivalDelay(i, delay);
//                        newTimes.updateDepartureDelay(i, delay);
//                    }

maybe its ok to leave it out? not sure

I see your point. Delay is an alternative way to report the prediction. Ideally it would be treated identically to arrivalTime/departureTime. With that said, I don't believe any of the systems we currently integrate with use it so it is lower priority.

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

Successfully merging this pull request may close these issues.

2 participants