Constructor
(abstract) new RightTrackTransitAgency(id, name, description, iconPathopt, maintaineropt)
Create a new Transit Agency
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
string | Transit Agency ID |
|||||||||||||||||
name |
string | Transit Agency Name |
|||||||||||||||||
description |
string | Transit Agency Description |
|||||||||||||||||
iconPath |
string |
<optional> |
Local file path to Transit Agency Icon |
||||||||||||||||
maintainer |
Object |
<optional> |
Transit Agency Maintainer Information Properties
|
Members
description :string
Transit Agency Description
Type:
- string
iconPath :string
Local file path to Transit Agency Icon
Type:
- string
id :string
Transit Agency ID Code
Type:
- string
maintainer :object
Properties:
Name | Type | Description |
---|---|---|
name |
string | Maintainer Name |
email |
string | Maintainer Email Address |
source |
string | Maintainer's project source address |
Transit Agency Maintainer Information
Type:
- object
name :string
Transit Agency Display Name
Type:
- string
Methods
(abstract) getDivisionIconPath(division) → {string|undefined}
Get the local file path to the icon for the specified Transit Division
Parameters:
Name | Type | Description |
---|---|---|
division |
string | Transit Division Code |
Returns:
Absolute local path to division icon
- Type
- string | undefined
(abstract) getLineBackgroundColor(line) → {string}
Get the background color for the specified Transit Line
Parameters:
Name | Type | Description |
---|---|---|
line |
string | Transit Line Code |
Returns:
background color (#rrggbb)
- Type
- string
(abstract) getLineTextColor(line) → {string}
Get the text color for the specified Transit Line
Parameters:
Name | Type | Description |
---|---|---|
line |
Returns:
text color (#rrggbb)
- Type
- string
(abstract) loadFeed(callback)
Load the Transit Feed for this Transit Agency
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
callback |
function | Callback function Properties
|