TransitDivision

TransitDivision

Transit Feed Division

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

The Transit Division contains the list of Lines that belong to the Division

Constructor

new TransitDivision(code, name, iconPathopt)

Source:

Create a new Transit Division

Parameters:
Name Type Attributes Description
code string

Division Code

name string

Division Name

iconPath string <optional>

Local file path to Division icon

Members

code :string

Source:

Transit Division Code

Type:
  • string

iconPath :string

Source:

Transit Division Icon File Path

Type:
  • string

lines :Array.<TransitLine>

Source:

List of Transit Lines for this Division

Type:

name :string

Source:

Transit Division Display Name

Type:
  • string

Methods

getEventCount() → {number}

Source:

Get the number of Transit Events for this Division

Returns:
Type
number