Example #1
0
 def __init__(self, begin_time, end_time, wait_period, transit, trip_id, calendar, timezone, agency, service_id):
     if type(service_id)!=type('string'):
         raise TypeError("service_id is supposed to be a string")
         
     int_sid = calendar.get_service_id_int( service_id )
     
     self.soul = lgs.headwayNew(begin_time, end_time, wait_period, transit, trip_id.encode("ascii"),  calendar.soul, timezone.soul, c_int(agency), ServiceIdType(int_sid))
Example #2
0
 def __init__(self, service_id, calendar, timezone, agency):
     service_id = service_id if type(service_id)==int else calendar.get_service_id_int(service_id)
     
     self.soul = self._cnew(service_id, calendar.soul, timezone.soul, agency)
Example #3
0
 def __init__(self, service_id, calendar, timezone, agency, trip_id, start_time, end_time, headway_secs):
     service_id = service_id if type(service_id)==int else calendar.get_service_id_int(service_id)
     
     self.soul = self._cnew(service_id, calendar.soul, timezone.soul, agency, trip_id, start_time, end_time, headway_secs)