transitio.FeedBuilder.add_frequency_trip

transitio.FeedBuilder.add_frequency_trip#

FeedBuilder.add_frequency_trip(route_id, service_id, trip_id, stops, *, start, end, headway, shape_id=None, **fields)#

Add a frequency-based (headway) trip.

stops is a sequence of (stop_id, offset) where the offset (seconds, or H:MM:SS) is the travel time from the start of a run; the template run departs at start and a run starts every headway seconds until end.