Members
-
id :string
-
Description
A unique ID representing the Trip
Details
-
route :Route
-
Description
The Trip's parent Route
Details
-
service :Service
-
Description
The Service the Trip operates on
Details
-
stopTimes :Array.<StopTime>
-
Description
List of scheduled StopTimes for the Trip
Details
-
headsign :string
-
Description
Trip Headsign - text displayed to passengers indicating the Trip's destination
Details
-
shortName :string
-
Description
Publicly-viewable Trip ID or name
Details
-
directionId :int
-
Description
Direction of travel for the Trip
Details
-
directionDescription :string
-
Description
A description of the Trip's direction
Details
-
blockId :string
-
Description
The ID of the block the Trip belongs to
Details
-
shapeId :string
-
Description
The ID of the shape the Trip belongs to
Details
-
wheelchairAccessible :int
-
Description
Value indicating the wheelchair accessibility of the vehicle making the Trip
Details
-
bikesAllowed :int
-
Description
Value indicating whether bikes are allowed on the vehicle making the Trip
Details
-
peak :boolean
-
Description
Value indicating the peak status of the Trip.
Details
Methods
-
getStopTime( stop ) → {StopTime}
-
Description
Get the StopTime associated with the specified Stop
Parameters
Name Type Description stop
Stop | String Stop (or Stop ID) to find in Trip's list of StopTimes
Returns
Details
-
hasStopTime( stop ) → {boolean}
-
Description
Check if the Trip's list of StopTimes includes the specified Stop
Parameters
Name Type Description stop
Stop | String Stop (or Stop ID) to check for
Returns
Details
-
<static> sortByDepartureTime( a, b ) → {number}