query/stoptimes

StopTime Query Functions

These functions query the gtfs_stop_times table in the Right Track Database.

Source:

Methods

(inner) getStopTimeByTripStop(db, tripId, stopId, date, callback)

Source:

Get the StopTime for the specified Trip and the specified Stop from the passed database

Parameters:
Name Type Description
db RightTrackDB

The Right Track DB to query

tripId string

Trip ID

stopId string

Stop ID

date int

The date (yyyymmdd) the the Trip operates on

callback function

Callback function

Properties
Name Type Attributes Description
error Error

Database Query Error

stoptime StopTime <optional>

The selected StopTime

(inner) getStopTimesByTrip(db, tripId, date, callback)

Source:

Get the list of StopTimes for the specified Trip from the passed database (sorted by stop sequence)

Parameters:
Name Type Description
db RightTrackDB

The Right Track DB to query

tripId string

Trip ID

date int

The date (yyyymmdd) the trip operates on

callback function

Callback function

Properties
Name Type Attributes Description
error Error

Database Query Error

stoptimes Array.<StopTime> <optional>

The selected StopTimes