new VehicleFeedPosition( lat, lon [, description ], updated [, properties ] )

Description

Vehicle Feed Position

Real-time position information for a specific Vehicle. Used by the VehicleFeed Class.

To access this Class directly:

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

The most recent vehicle latitude

lon number

The most recent vehicle longitude

description String <optional>

The description of the real-time position (ie, "in transit to {next stop}")

updated DateTime

The Date/Time of when the position was last updated

properties Object <optional>

Additional vehicle position properties

Name Type Attributes Description
bearing number <optional>

The most recent vehicle bearing

speed number <optional>

The most recent vehicle speed, in m/s

status string <optional>

The current status of the vehicle

stop Stop <optional>

The Stop referenced by the status

Members


lat :number

Description

The most recent vehicle latitude


lon :number

Description

The most recent vehicle longitude


description :string

Description

The description of the Vehicle's position


updated :DateTime

Description

The Date/Time of when the position was last updated


bearing :number

Description

The most recent vehicle bearing


speed :number

Description

The most recent vehicle speed, in m/s


status :VehicleFeedPosition.VehicleStatus

Description

The current status of the vehicle


stop :Stop

Description

The Stop referenced by the status


<static, readonly> VehicleStatus :string

Description

The current vehicle status

Properties
Name Type Default Description
IN_TRANSIT_TO string IN_TRANSIT_TO

The vehicle is in transit to the referenced Stop

INCOMING_AT string INCOMING_AT

The vehicle is approaching the referenced Stop

STOPPED_AT string STOPPED_AT

The vehicle is stopped at the referenced Stop