-
Notifications
You must be signed in to change notification settings - Fork 53
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
Remove OTP1 Stop Time Filtering #994
Conversation
@@ -136,11 +136,8 @@ export function getStopTimesByPattern(stopData) { | |||
times: [] | |||
} | |||
} | |||
// Exclude the last stop, as the stop viewer doesn't show arrival times to a terminus stop. | |||
const filteredTimes = times.filter(excludeLastStop) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change results in the display of arrival times (in addition to departures) at terminal stops. Per our discussion, this is not desired.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't replicate this. Do you have any examples?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok never mind I can see it on some bus routes where the last stop of one pattern is not identical to the first stop of another. Looking at the behavior I am not against that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why displaying arrivals in addition to departures at terminal stops has been enabled.
This will be addressed by the nearby view |
Description:
When we switched to the new stop viewer, we forgot to remove a filter that was only relevant for the old stop viewer and OTP1. The result was no stop times appearing at the second to last stop! This PR removes this filter and fixes things.
PR Checklist: