Members
-
moduleDirectory
-
Description
The Transit Agency's module directory
Returns
Details
-
config
-
Description
The Transit Agency's configuration properties
Returns
Details
-
id
-
Description
Transit Agency's id code
Returns
Details
-
name
-
Description
The Transit Agency's full name
Returns
Details
-
description
-
Description
The Transit Agency's description
Returns
Details
-
maintainer
-
Description
The Transit Agency's maintainer information
Returns
Details
Methods
-
resetConfig()
-
Description
Reset the transit agency configuration to the default values
Details
-
readConfig( configFile )
-
Description
Read an additional transit agency configuration file
Parameters
Name Type Description configFile
string Path to transit agency configuration file. Relative paths will be relative to the root of the transit agency's module directory.
Details
-
getConfig() → {object}
-
Description
Get the transit agency configuration
Returns
Details
-
<abstract> loadFeed( callback )
-
Description
Load the Transit Feed for this Transit Agency
Parameters
Name Type Description callback
function Callback function
Name Type Attributes Description error
Error Transit 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
TransitFeed <optional> The built
TransitFeed
for the Transit AgencyDetails
-
getDivision( divisionCodes, callback )
-
Description
Get the matching Transit Division from the Agency's Transit Feed
Parameters
Name Type Description divisionCodes
Array.<String> List of Transit Division codes (in hierarchical order)
callback
function Callback function
Name Type Attributes Description error
Error Transit Feed Error
division
TransitDivision <optional> The matching
TransitDivision
Details