Members
-
origin :Stop
-
Description
Trip Search Origin Stop
Details
-
destination :Stop
-
Description
Trip Search Destination Stop
Details
-
departure :DateTime
-
Description
Trip Search Departure Date/Time
Details
-
allowTransfers :boolean
-
Description
Allow Transfers between Trains
Details
-
allowChangeInDirection :boolean
-
Description
Allow Transfers between trains operating in opposite directions
Details
-
preDepartureHours :int
-
Description
The number of hours before the departure time to include in results
Details
-
postDepartureHours :int
-
Description
The number of hours after the departure time to include in results
Details
-
maxLayoverMins :int
-
Description
The maximum number of minutes between trips at a layover
Details
-
minLayoverMins :int
-
Description
The minimum number of minutes between trips at a layover
Details
-
maxTransfers :int
-
Description
The maximum number of transfers for a single result
Details
-
options
-
Description
All of the Trip Search options
Returns
Details
Methods
-
search( db, callback )
-
Description
Perform the trip search on the provided Right Track Database
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
callbackfunction Callback function
Name Type Attributes Description errError Database Query Error
resultsArray.<TripSearchResult> <optional> Trip Search Results
Details