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 configFilestring 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 callbackfunction Callback function
Name Type Attributes Description errorError Transit 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.feedTransitFeed <optional> The built
TransitFeedfor the Transit AgencyDetails
-
getDivision( divisionCodes, callback )
-
Description
Get the matching Transit Division from the Agency's Transit Feed
Parameters
Name Type Description divisionCodesArray.<String> List of Transit Division codes (in hierarchical order)
callbackfunction Callback function
Name Type Attributes Description errorError Transit Feed Error
divisionTransitDivision <optional> The matching
TransitDivisionDetails