Members
-
id
-
Description
The Agency's id code
Returns
Details
-
name
-
Description
The Agency's full name
Returns
Details
-
moduleDirectory
-
Description
The Agency's module directory
Returns
Details
-
config
-
Description
The Agency's configuration properties
Returns
Details
Methods
-
resetConfig()
-
Description
Reset the agency configuration to the default values
Details
-
readConfig( configFile )
-
Description
Read an additional agency configuration file
Parameters
Name Type Description configFile
string Path to agency configuration file. Relative paths will be relative to the root of the agency's module directory.
Details
-
getConfig() → {object}
-
Description
Get the agency configuration
Returns
Details
-
<abstract> isFeedSupported() → {boolean}
-
Description
Check if the Agency supports real-time Station Feeds.
This will return false by default unless the implementing agency overrides the function to indicate support for Station Feeds.
Returns
Details
-
<abstract> loadFeed( db, origin, callback )
-
Description
Load the Agency's Station Feed for the specified Origin Stop.
This function will need to be overridden by the implementing agency.
Parameters
Name Type Description db
RightTrackDB The Right Track DB to query
origin
Stop The origin Stop
callback
function Callback function
Name Type Attributes Description error
Error Station Feed Error. The Error's message will be a pipe (
|
) separated string in the format of:Error Code|Error Type|Error Message
that will be parsed out by the Right Track API Server into a more specific error Response.feed
StationFeed <optional> The built
StationFeed
for the StopDetails