-
Notifications
You must be signed in to change notification settings - Fork 1
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
Many stations have 2-3 points or more on map. Fix this #153
Comments
@JPMartinezClaeys in standup: it's okay for there to be multiple rows for same station on backend, just make sure only "the first one" displays on map |
Potential "hacky" cleanup strategy for each city:
Add some filters/query-ness/selectivity in Would not scale well if new cities are added, through process of adding new cities would likely require inspecting GTFS feeds for issues like this in some manner no matter what Aspirational: figure out how to tie each station to all routes that go through it and display those on tooltips |
For many subway, commuter rail, and streetcar lines, what looks like a single station point is actually 2-3 points on the same spot. This results in massive overcount of number of stations. It will also mess up things like ridership and station/route relation once tooltips are further built out.
See O'Hare Blue Line CTA stop -- at max zoom, it looks like one point:

But when you zoom out the clusters, it says there are 3:

And clicking the cluster shows all three:

I strongly suspect that at least two of these are GTFS treating inbound-direction and outbound-direction as separate stations. Not sure where the third one comes in.
(This shouldn't affect bus stations. Bus stations accurately appear as separate objects on different sides of the same street block.)
A very hacky way to do this might involve a
SELECT DISTINCT
(but Django syntax version) on querying the database, so there are no exact-matches on location coordinates. It may make sense to set some fuzzy tolerance so stops of the same name and transit mode with coordinates within ~10 meters of each other are not allowed.There's more backend questions about how to ensure all the important data for each stop is aggregated into the one point that remains.
It would also help as part of this to refactor the
views.py
andmap.js
code so that the actual stations geoJSON objects are passed into the map JavaScript (the way the routes are), so we can add more stuff to tooltips (likestation_id
) and test which attributes are duplicated vs. not across the redundant points. I may make a separate issue for that.The text was updated successfully, but these errors were encountered: