transitio.FeedBuilder.add_trip

transitio.FeedBuilder.add_trip#

FeedBuilder.add_trip(route_id, service_id, trip_id, stops, *, shape_id=None, **fields)#

Add a scheduled trip.

stops is a sequence of (stop_id, arrival, departure) with times as H:MM:SS strings or seconds since midnight; shape_id references a polyline added with add_shape(). All inputs are checked before anything is appended, so a bad tuple never leaves a partial trip behind.