NYSTA

NYSTA

RightTrackTransitAgency implementation for the New York State Thruway Authority (NYSTA).

For more information, see:

Constructor

new NYSTA()

Source:

Create a RightTrackTransitAgency for NYSTA

Methods

getDivisionIconPath(division) → {string|undefined}

Source:

Get the local absolute path to the icon for the specified division

Parameters:
Name Type Description
division string

Transit Division Code

Returns:
Type
string | undefined

getLineBackgroundColor(line) → {string}

Source:

Get the background color for the specified line

Parameters:
Name Type Description
line string

Transit Line Code

Returns:
Type
string

getLineTextColor(line) → {string}

Source:

Get the text color for the specified line

Parameters:
Name Type Description
line string

Transit Line Code

Returns:
Type
string

loadFeed(callback)

Source:

Load the Transit Feed for NYSTA

Parameters:
Name Type Description
callback function

Callback function

Properties
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 Transit Feed for NYSTA