new StationFeedDeparture( departure, destination, trip, status )

Description

Station Feed Departure

Real-time and departure information about the departure of a single Trip from a Stop. Used by the StationFeed Class.

To access this Class directly:

const core = require('right-track-core');
			const SF = core.classes.StationFeed;
			const StationFeedDeparture = SF.StationFeedDeparture;
			
Parameters
Name Type Description
departure DateTime

DateTime of scheduled departure

destination Stop

Destination Stop

trip Trip

Departure Trip

status StationFeedDepartureStatus

Real-time Status Information

Members


departure :DateTime

Description

The Date/Time of the Scheduled Departure


destination :Stop

Description

The (final) Destination Stop of the departing Trip


trip :Trip

Description

The Trip departing the Station


status :StationFeedDepartureStatus

Description

The Station Feed Status of the Departure

Methods


<static> sort( a, b ) → {int}

Description

Sort Departures by scheduled departure date/time

Parameters
Name Type Description
a StationFeedDeparture

Departure A

b StationFeedDeparture

Departure B

Returns

compare integer