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
|
(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
|