Constructor
new TransitLine(code, name, backgroundColoropt, textColoropt)
- Source:
Create a new Transit Line
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
code |
string | Line Code |
|
name |
string | Line Name |
|
backgroundColor |
string |
<optional> |
Line background color (hex rrggbb) |
textColor |
string |
<optional> |
Line text color (hex rrggbb) |
Members
backgroundColor :string
- Source:
- Default Value:
- ffffff
Transit Line Background Color
Type:
- string
code :string
- Source:
Transit Line Code
Type:
- string
events :Array.<TransitEvent>
- Source:
List of Transit Events for this Line
Type:
- Array.<TransitEvent>
name :string
- Source:
Transit Line Display Name
Type:
- string
status :string
- Source:
- Default Value:
- undefined
Transit Line Status
Type:
- string
textColor :string
- Source:
- Default Value:
- 000000
Transit Line Text Color
Type:
- string
Methods
getEventCount() → {number}
- Source:
Get the number of Transit Events for this Line
Returns:
- Type
- number