LIRR

LIRR

RightTrackAgency implementation for the Long Island Rail Road

See the Right Track Agency project (https://github.com/right-track/right-track-agency) for more information.

Constructor

new LIRR()

Source:

Create a new RightTrackAgency for the Long Island Railroad

Methods

isFeedSupported() → {boolean}

Source:

Check if this Agency supports a real-time Station Feed

Returns:

true if Station Feeds are supported

Type
boolean

loadFeed(db, origin, callback)

Source:

Load the real-time Station Feed for the specified Station

Parameters:
Name Type Description
db RightTrackDB

The Right Track DB used to query GTFS data from

origin Stop

The Origin Stop

callback function

Callback function

Properties
Name Type Description
error Error

Station Feed Error. The Error's message will be a pipe (|) separated string in the format of: Error Code|Error Type|Error Message that will be parsed out by the Right Track API Server into a more specific error Response.

feed StationFeed

The built StationFeed for the Stop