def __init__(self, trip_id,offset=0): """ Given the GTFS trip_id, loads and constructs the schedule. Optionally, 'offset' seconds will be subtracted from each time in the schedule. """ self.trip_id = trip_id self.offset = offset self.__load() BusTrack.__init__(self)
def __init__(self,vehicle_segment): """ Given a VehicleSegment, builds the interpolation. """ self.__load(vehicle_segment); BusTrack.__init__(self);