transitio.FeedBuilder.add_trip#
- FeedBuilder.add_trip(route_id, service_id, trip_id, stops, *, shape_id=None, **fields)#
Add a scheduled trip.
stopsis a sequence of(stop_id, arrival, departure)with times asH:MM:SSstrings or seconds since midnight;shape_idreferences a polyline added withadd_shape(). All inputs are checked before anything is appended, so a bad tuple never leaves a partial trip behind.