new VehicleFeed( id, position [, properties ] )

Description

Vehicle Feed

Information about the real-time postions of a vehicle

To access this Class directly:

const core = require('right-track-core');
			const VF = core.classes.VehicleFeed;
			const VehicleFeed = VF.VehicleFeed;
			
Parameters
Name Type Attributes Description
id string

The ID of the vehicle

position VehicleFeedPosition

The most recent position of the vehicle

properties Object <optional>

Additional properties of the vehicle

Name Type Attributes Description
stops Array.<StopTime> <optional>

List of remaining Stops with arrival/departure times made by the vehicle

trip Trip <optional>

The Trip the vehicle is operating

Members


id :string

Description

The ID of the Vehicle


position :VehicleFeedPosition

Description

The most-recent position of the Vehicle


stops :Array.<VehicleFeedStop>

Description

List of remaining stops mabe by the vehicle, along with the departure time(s) from the stop(s)

Details
Array.<VehicleFeedStop>

trip :Trip

Description

The Trip the vehicle is operating