Skip to content

GTFS parser fails on recent files from Caltrain #9

Description

@GraffJosh

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions