Skip to content

Assert frequencies trip_id values present in stop_times table #30

@mpadge

Description

@mpadge

This is frustratingly not part of the official feed descriptions anywhere, but one of the best references i can find comes from the multigtfs docs, which state:

When trips are defined in frequencies.txt, the trip planner ignores the absolute values of the arrival_time and departure_time fields for those trips in stop_times.txt. Instead, the stop_times table defines the sequence of stops and the time difference between each stop.

This means that any feeds which have frequencies.txt tables should only pass assert_gtfs() if all trip_id values given in "frequencies.txt" are also present in "stop_times.txt." I need to write this assertion for my own purposes, but would like it to exist in the most general place possible, which would seem to be within gtfsio::assert_gtfs(). Thoughts @dhersz @rafapereirabr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions