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 configFilestring 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 dbRightTrackDB The Right Track DB to query
originStop The origin Stop
callbackfunction Callback function
Name Type Attributes Description errorError Station Feed Error. The Error's message will be a pipe (
|) separated string in the format of:Error Code|Error Type|Error Messagethat will be parsed out by the Right Track API Server into a more specific error Response.feedStationFeed <optional> The built
StationFeedfor the StopDetails
-
<abstract> isVehicleFeedSupported() → {boolean}
-
Description
Check if the Agency supports real-time Vehicle Feeds.
This will return false by default unless the implementing agency overrides the function to indicate support for Vehicle Feeds.
Returns
Details
-
<abstract> loadVehicleFeeds( db, callback )
-
Description
Load all of the Agency's Vehicle Feeds.
This function will need to be overridden by the implementing agency.
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
callbackfunction Callback function
Name Type Attributes Description errorError Vehicle Feed Error. The Error's message will be a pipe (
|) separated string in the format of:Error Code|Error Type|Error Messagethat will be parsed out by the Right Track API Server into a more specific error Response.feedsArray.<VehicleFeed> <optional> An array of
VehicleFeeds for the AgencyDetails