new TransitDivision( code, name [, iconPath [, backgroudColor [, textColor ] ] ] )

Description

Transit Feed Division

A single Division contained in a real-time Transit Feed.

The Transit Division contains properties about the division (code, name, style) and either a list of child divisions or Transit Events

Parameters
Name Type Attributes Description
code string

Division Code

name string

Division Name

iconPath string <optional>

Local file path to Division icon (default: none)

backgroudColor string <optional>

Division background color (hex #rrggbb) (default: #3D3D3D)

textColor string <optional>

Division text color (hex #rrggbb) (default: #FFFFFF)

Members


code :string

Description

Transit Division Code


name :string

Description

Transit Division Display Name


iconPath :string

Description

Transit Division Icon File Path


backgroundColor :string

Description

Transit Division Background Color


textColor :string

Description

Transit Division Text Color


divisions :Array.<TransitDivision>

Description

List of child Transit Divisions


status :string

Description

Transit Division Operating Status


events :Array.<TransitEvent>

Description

List of Transit Events

Methods


getEventCount() → {number}

Description

Get the number of Transit Events for this Division

Returns