Members
-
type :int
-
Description
Value indicating the Favorite type
Details
-
sequence :int
-
Description
The sequence of the Favorite in the User's list
Details
-
parameters :Object
-
Description
The Favorite's Parameters
Details
-
options :Object
-
Description
The Favorite's Options
Details
Methods
-
isStation() → {boolean}
-
Description
Check if the Favorite is a Favorite Station
Returns
Details
-
isTrip() → {boolean}
-
Description
Check if the Favorite is a Favorite Trip
Returns
Details
-
isTransit() → {boolean}
-
Description
Check if the Favorite is a Favorite Transit
Returns
Details
-
<static> createStation( stop, sequence [, opts ] ) → {Favorite}
-
Description
Favorite Factory: create a Favorite Station
Parameters
Name Type Attributes Default Description stop
Stop The Stop to save as a Favorite Station
sequence
int The Favorite sequence
opts
Object <optional> {} Returns
Details
-
<static> createTrip( origin, destination, sequence [, opts ] ) → {Favorite}
-
<static> createTransit( agency, division, divisionCodes, sequence [, opts ] ) → {Favorite}
-
Description
Favorite Factory: create a Favorite Transit Agency/Division...
Parameters
Name Type Attributes Default Description agency
TransitAgency The Transit Agency of the Favorite Transit
division
TransitDivision The Transit Division of the Favorite Transit
divisionCodes
Array.<String> The Transit Division codes (codes of parent(s) and favorite)
sequence
int The Favorite sequence
opts
Object <optional> {} Returns
Details
-
<static> sortBySequence( a, b ) → {number}
Type Definitions
-
FavoriteStationParameters
-
Description
The Parameters for a Favorite Station
Properties
Name Type Description stop
Stop The Favorite Station
Name Type Description id
String Stop Id
name
String Stop Name
Details
-
FavoriteStationOptions
-
Description
The Options for a Favorite Station
Details
-
FavoriteTripParameters
-
FavoriteTripOptions
-
Description
The Options for a Favorite Trip
Properties
Name Type Description allowTransfers
boolean Allow the Trip Result to include transfers
Details
-
FavoriteTransitParameters
-
Description
The Parameters for a Favorite Transit
Properties
Name Type Description agency
TransitAgency The Transit Agency
Name Type Description code
String The Transit Agency code
name
String The Transit Agency name
division
TransitDivision The Transit Division
Name Type Description code
String The Transit Division code
name
String The Transit Division name
divisionCodes
Array.<String> The array of Division codes (includes parent(s) and favorite)
Details
-
FavoriteTransitOptions
-
Description
The Options for a Favorite Transit
Details