StationFeedDeparture

StationFeedDeparture

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 SF = require('right-track-agency/src/StationFeed');
const StationFeedDeparture = SF.StationFeedDeparture;

Constructor

new StationFeedDeparture(departure, destination, trip, status)

Source:

Station Feed Departure Constructor

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

Source:

The Date/Time of the Scheduled Departure

Type:
  • DateTime

destination :Stop

Source:

The (final) Destination Stop of the departing Trip

Type:
  • Stop

status :StationFeedDepartureStatus

Source:

The Station Feed Status of the Departure

Type:

trip :Trip

Source:

The Trip departing the Station

Type:
  • Trip

Methods

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

Source:

Sort Departures by scheduled departure date/time

Parameters:
Name Type Description
a StationFeedDeparture

Departure A

b StationFeedDeparture

Departure B

Returns:

compare integer

Type
int