Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.09 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.09 KB

NYS Thruway Authority

GitHub repo: right-track/right-track-transit-nysta


This module is an implementation of a RightTrackTransitAgency used to create a real-time Transit Feed for the New York State Thruway Authority, which is used in the various Right Track Projects.

Documentation

Documentation about the RightTrackTransitAgency class and TransitFeed classes can be found in the right-track-core project and online at https://docs.righttrack.io/right-track-core.

Usage

This example builds a TransitFeed for NYSTA:

const nysta = require('right-track-transit-nysta');

// Optional: override default agency config
nysta.readConfig('/path/to/agency_local.json');

nysta.loadFeed(function(err, feed) {
  if ( !err ) {
    console.log(JSON.stringify(feed, null, 2));
  }
});