Documentation ¶
Overview ¶
Package nycttrips contains logic for the New York City Transit GTFS realtime extenstions
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TripIDRegex *regexp.Regexp = regexp.MustCompile(`^([0-9]{6})_([[:alnum:]]{1,2})..([SN])([[:alnum:]]*)$`)
Functions ¶
func Extension ¶
func Extension(opts ExtensionOpts) extensions.Extension
Extension returns the NYCT trips extension
Types ¶
type ExtensionOpts ¶
type ExtensionOpts struct { // Filter out trips which are scheduled to run in the past but have no assigned trip and haven't started. FilterStaleUnassignedTrips bool `yaml:"filterStaleUnassignedTrips"` // The raw MTA data has a bug in which the M train platforms are reported incorrectly for stations // in Williamsburg and Bushwick that the M shares with the J train. In the raw data, M trains going towards // the Williamsburg bridge stop at M11N, but J trains going towards the bridge stop at M11S. By default // this extension fixes these platforms for the M train, so M11N becomes M11S. This fix can be disabled // by setting this option to true. PreserveMTrainPlatformsInBushwick bool `yaml:"preserveMTrainPlatformsInBushwick"` }
ExtensionOpts contains the options for the NYCT trips extension.
Click to show internal directories.
Click to hide internal directories.