query/routes

Route Query Functions

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

Source:

Methods

(inner) getRoute(db, id, callback)

Source:

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

Properties
Name Type Attributes Description
error Error

Database Query Error

route Route | Array.<Route> <optional>

The selected Route(s)

(inner) getRoutes(db, callback)

Source:

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

Properties
Name Type Attributes Description
error Error

Database Query Error

routes Array.<Route> <optional>

The selected Routes