Methods
-
<inner> getTrip( db, id, date, callback )
-
Description
Get the Trip (with Route, Service and StopTimes) specified by the Trip ID from the passed database
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
idstring Trip ID
dateint The date (yyyymmdd) that the Trip operates on
callbackfunction Callback function
Name Type Attributes Description errorError Database Query Error
tripTrip <optional> The selected Trip
Details
-
<inner> getTripByShortName( db, shortName, date, callback )
-
Description
Get the Trip specified by the Trip short name that operates on the specified date
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
shortNamestring Trip short name
dateint Date Integer (yyyymmdd)
callbackfunction Callback function
Name Type Attributes Description errorError Database Query Error
tripTrip <optional> The selected Trip
Details
-
<inner> getTripByDeparture( db, originId, destinationId, departure, callback )
-
Description
Find the Trip that leaves the specified origin Stop for the specified destination Stop at the departure time specified by the DateTime
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
originIdstring Origin Stop ID
destinationIdstring Destination Stop ID
departureDateTime DateTime of trip departure
callbackfunction Callback function
Name Type Attributes Description errorError Database Query Error
tripTrip <optional> The selected Trip
Details
-
<inner> getTripsByDate( db, date [, opts ], callback )
-
Description
Get all Trips effectively running on the specified date
Parameters
Name Type Attributes Description dbRightTrackDB The Right Track DB to query
dateint Date in YYYYMMDD format
optsObject <optional> Query Options
Name Type Attributes Description routeIdstring <optional> GTFS Route ID - get Trips that run on this Route
stopIdstring <optional> GTFS Stop ID - get Trips that stop at this Stop
callbackfunction Callback function
Name Type Attributes Description errorError Database Query Error
tripsArray.<Trip> <optional> List of Trips
Details