-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
feat(trip-explorer): speed for station pairs #909
feat(trip-explorer): speed for station pairs #909
Conversation
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 is awesome! A few initial thoughts in no particular order:
We should display both of the two station pairs since this is between two
We should add the same aggregate numbers below the chart like we do in travel times
Personally I think speed should go between headways and dwells in the chart order
I was able to get the page to bug out with http://localhost:3000/red/trips/single/?from=70073&to=70093&date=2023-12-17
so there's probably some missing stops in the dataset?
Overall, this is very cool, just needs some polish. We can try and get this into beta before the next meeting to get people in labs to poke around with it
thanks for taking a look!! yep, this is definitely still a WIP - just threw it together yesterday/today. Those are all good. There were a couple other things I wanted to take a look at too, let me know your thoughts:
|
This certainly isn't necessary for a first pass. We can start with a single day chart only
there's no benchmark for dwells, so it's not critical
Yeah maybe @PatrickCleary or @idreyn could help you track down the accuracy of these since they worked on the line-wide speed numbers. I can also poke around after the holiday |
I poked around a bit on this. It seems that |
5ddd6c5
to
b698481
Compare
I changed this to use stations instead of stops, fixing the Charles => Ashmont issue, fixed the distance calculation by only traversing in one direction at a time, added a legend. Should be ready for review - I updated the screenshot I also added a benchmark speed calculation. I can show it on the graph if that's something we want, but I think it might be a little confusing considering it'll be the inverse of the travel time benchmark |
bd5ca30
to
0351ef4
Compare
The green line station distances we use are just measured on Google Maps. So if you're interested in replacing some of those null values, you could add them that way! |
@PatrickCleary I ended up figuring out the problem with the data - I was relying on the I refactored the script for calculating station distances and moved it out to its own file, because the logic was getting pretty complicated. It is still messy and can be refactored further, but I didn't want to invest too much time for potentially a throwaway script |
55288cd
to
f68c3cc
Compare
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.
Some initial comments
Mentioned in the meeting, just writing here for not forgetting - I think my preference would be to add speed as a toggle for the travel-times chart, since it is the same data displayed two different ways, just scaled by a factor. That way we don't end up with too many charts on page. |
@austinjpaul totally agree! I'll rework it as a toggle on the travel times graph |
…try to show legend
…ated shit to traverse the line. ashmont still isn't working. i need a beer
…top graph to populate the station graph and one of the station graph
07a7ee8
to
fea4954
Compare
Motivation
Closes #803
Changes
Testing Instructions