Description

Route Query Functions

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

Details

Methods


<inner> getRoute( db, id, callback )

Description

Get the Route (with its Agency) specified by the Route ID from the passed database

Parameters
Name Type Description
db RightTrackDB

The Right Track DB to query

id string | Array.<string>

Route ID(s)

callback function

Callback function

Name Type Attributes Description
error Error

Database Query Error

route Route | Array.<Route> <optional>

The selected Route(s)

Details

<inner> getRoutes( db, callback )

Description

Get all of the Routes that are stored in the passed database

Parameters
Name Type Description
db RightTrackDB

The Right Track DB to query

callback function

Callback function

Name Type Attributes Description
error Error

Database Query Error

routes Array.<Route> <optional>

The selected Routes