Description

Direction Query Functions

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

Methods


<inner> getDirections( db, callback )

Description

Get the directions stored in the gtfs_directions table from the passed database.

Parameters
Name Type Description
db RightTrackDB

The Right Track Database to query

callback function

Callback function

Name Type Attributes Description
error Error

Database Query Error

directions Array.<Direction> <optional>

The directions (id and description)


<inner> getDirection( db, id, callback )

Description

Get the specified direction stored in the gtfs_directions table from the passed database.

Parameters
Name Type Description
db RightTrackDB

The Right Track Database to query

id String

The Direction ID

callback function

Callback function

Name Type Attributes Description
error Error

Database Query Error

direction Direction <optional>

The direction (id and description)