Description

StopTime Query Functions

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

Methods


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

Description

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

Name Type Attributes Description
error Error

Database Query Error

stoptimes Array.<StopTime> <optional>

The selected StopTimes


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

Description

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

Name Type Attributes Description
error Error

Database Query Error

stoptime StopTime <optional>

The selected StopTime