new MNR()

Description

RightTrackAgency implementation for Metro North Railroad & SLE.

For more information, see:

Details

Methods


isFeedSupported() → {boolean}

Description

Check if this Agency supports a real-time Station Feed

Returns

true if Station Feeds are supported

Details

loadFeed( db, origin, callback )

Description

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

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

Details