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

GTFS parser fails on recent files from Caltrain #9

Open
GraffJosh opened this issue May 14, 2022 · 0 comments
Open

GTFS parser fails on recent files from Caltrain #9

GraffJosh opened this issue May 14, 2022 · 0 comments

Comments

@GraffJosh
Copy link

I made two or three changes to the caltrain.py file to get it to accept a new GTFS file,

If a stop has no stop name the regex fails
#316 >> if _STATIONS_RE.match(r["stop_name"]):

If a trip ID starts with a 7, it couldn't identify the trip type. I don't know what 7 means, so I just bundled it into 6 since that functionality isn't super important to me. I think generally the TransitType probably needs an update since all of the weekday trains I've tried so far are showing as weekend game trains.
#193 >> if trip_id[0] in ("6","7"):

idk if you're still supporting this library or not, but figured I'd let you know.

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

No branches or pull requests

1 participant