Methods
-
<inner> getService( db, id, callback )
-
Description
Get the Service(s) specified by Service ID(s) from the passed database. The Service will also include any included Service Exceptions for the Service.
Parameters
Name Type Description dbRightTrackDB The Right Track Database to query
idString | Array.<String> Service ID or list of Service IDs
callbackfunction Callback function
Name Type Description errorError Database Query Error
serviceService | Array.<Service> The selected Service(s)
Details
-
<inner> getServicesEffective( db, date, callback )
-
Description
Get the Services in effect on the specified date. This includes any exceptions found in the calendar_dates file.
Parameters
Name Type Description dbRightTrackDB The Right Track Database to query
dateint The date to query (yyyymmdd)
callbackfunction Callback function
Name Type Description errorError Database Query Error
servicesArray.<Service> The selected Services
Details
-
<inner> getServicesDefault( db, date, callback )
-
Description
Get the default Services in effect on the specified date. These services don't include any changes due to service exceptions.
Parameters
Name Type Description dbRightTrackDB The Right Track Database to query
dateint The date to query (yyyymmdd)
callbackfunction Callback function
Name Type Description errorError Database Query Error
servicesArray.<Service> The selected Services
Details
-
<inner> getServiceExceptions( db, date, callback )
-
Description
Get the Service Exceptions in effect on the specified date. This includes Services that are either added or removed on the specified date.
Parameters
Name Type Description dbRightTrackDB The Right Track Database to query
dateint The date to query (yyyymmdd)
callbackfunction Callback function
Name Type Description errorError Database Query Error
servicesArray.<ServiceException> The selected Service Exceptions
Details