Documentation ¶
Overview ¶
Package nyct_subway is a generated protocol buffer package.
It is generated from these files:
nyct_subway/nyct-subway.proto
It has these top-level messages:
TripReplacementPeriod NyctFeedHeader NyctTripDescriptor NyctStopTimeUpdate
Index ¶
- Variables
- type NyctFeedHeader
- type NyctStopTimeUpdate
- type NyctTripDescriptor
- func (*NyctTripDescriptor) Descriptor() ([]byte, []int)
- func (m *NyctTripDescriptor) GetDirection() NyctTripDescriptor_Direction
- func (m *NyctTripDescriptor) GetIsAssigned() bool
- func (m *NyctTripDescriptor) GetTrainId() string
- func (*NyctTripDescriptor) ProtoMessage()
- func (m *NyctTripDescriptor) Reset()
- func (m *NyctTripDescriptor) String() string
- type NyctTripDescriptor_Direction
- type TripReplacementPeriod
- func (*TripReplacementPeriod) Descriptor() ([]byte, []int)
- func (m *TripReplacementPeriod) GetReplacementPeriod() *transit_realtime.TimeRange
- func (m *TripReplacementPeriod) GetRouteId() string
- func (*TripReplacementPeriod) ProtoMessage()
- func (m *TripReplacementPeriod) Reset()
- func (m *TripReplacementPeriod) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var E_NyctFeedHeader = &proto.ExtensionDesc{ ExtendedType: (*transit_realtime.FeedHeader)(nil), ExtensionType: (*NyctFeedHeader)(nil), Field: 1001, Name: "nyct_feed_header", Tag: "bytes,1001,opt,name=nyct_feed_header", }
View Source
var E_NyctStopTimeUpdate = &proto.ExtensionDesc{ ExtendedType: (*transit_realtime.TripUpdate_StopTimeUpdate)(nil), ExtensionType: (*NyctStopTimeUpdate)(nil), Field: 1001, Name: "nyct_stop_time_update", Tag: "bytes,1001,opt,name=nyct_stop_time_update", }
View Source
var E_NyctTripDescriptor = &proto.ExtensionDesc{ ExtendedType: (*transit_realtime.TripDescriptor)(nil), ExtensionType: (*NyctTripDescriptor)(nil), Field: 1001, Name: "nyct_trip_descriptor", Tag: "bytes,1001,opt,name=nyct_trip_descriptor", }
View Source
var NyctTripDescriptor_Direction_name = map[int32]string{
1: "NORTH",
2: "EAST",
3: "SOUTH",
4: "WEST",
}
View Source
var NyctTripDescriptor_Direction_value = map[string]int32{
"NORTH": 1,
"EAST": 2,
"SOUTH": 3,
"WEST": 4,
}
Functions ¶
This section is empty.
Types ¶
type NyctFeedHeader ¶
type NyctFeedHeader struct { // Version of the NYCT Subway extensions // The current version is 1.0 NyctSubwayVersion *string `protobuf:"bytes,1,req,name=nyct_subway_version" json:"nyct_subway_version,omitempty"` // For the NYCT Subway, the GTFS-realtime feed replaces any scheduled // trip within the trip_replacement_period. // This feed is a full dataset, it contains all trips starting // in the trip_replacement_period. If a trip from the static GTFS is not // found in the GTFS-realtime feed, it should be considered as cancelled. // The replacement period can be different for each route, so here is // a list of the routes where the trips in the feed replace all // scheduled trips within the replacement period. TripReplacementPeriod []*TripReplacementPeriod `protobuf:"bytes,2,rep,name=trip_replacement_period" json:"trip_replacement_period,omitempty"` XXX_unrecognized []byte `json:"-"` }
NYCT Subway extensions for the feed header
func (*NyctFeedHeader) Descriptor ¶
func (*NyctFeedHeader) Descriptor() ([]byte, []int)
func (*NyctFeedHeader) GetNyctSubwayVersion ¶
func (m *NyctFeedHeader) GetNyctSubwayVersion() string
func (*NyctFeedHeader) GetTripReplacementPeriod ¶
func (m *NyctFeedHeader) GetTripReplacementPeriod() []*TripReplacementPeriod
func (*NyctFeedHeader) ProtoMessage ¶
func (*NyctFeedHeader) ProtoMessage()
func (*NyctFeedHeader) Reset ¶
func (m *NyctFeedHeader) Reset()
func (*NyctFeedHeader) String ¶
func (m *NyctFeedHeader) String() string
type NyctStopTimeUpdate ¶
type NyctStopTimeUpdate struct { // Provides the planned station arrival track. The following is the Manhattan // track configurations: // 1: southbound local // 2: southbound express // 3: northbound express // 4: northbound local // // In the Bronx (except Dyre Ave line) // M: bi-directional express (in the AM express to Manhattan, in the PM // express away). // // The Dyre Ave line is configured: // 1: southbound // 2: northbound // 3: bi-directional ScheduledTrack *string `protobuf:"bytes,1,opt,name=scheduled_track" json:"scheduled_track,omitempty"` // This is the actual track that the train is operating on and can be used to // determine if a train is operating according to its current schedule // (plan). // // The actual track is known only shortly before the train reaches a station, // typically not before it leaves the previous station. Therefore, the NYCT // feed sets this field only for the first station of the remaining trip. // // Different actual and scheduled track is the result of manually rerouting a // train off it scheduled path. When this occurs, prediction data may become // unreliable since the train is no longer operating in accordance to its // schedule. The rules engine for the 'countdown' clocks will remove this // train from all schedule stations. ActualTrack *string `protobuf:"bytes,2,opt,name=actual_track" json:"actual_track,omitempty"` XXX_unrecognized []byte `json:"-"` }
NYCT Subway extensions for the stop time update
func (*NyctStopTimeUpdate) Descriptor ¶
func (*NyctStopTimeUpdate) Descriptor() ([]byte, []int)
func (*NyctStopTimeUpdate) GetActualTrack ¶
func (m *NyctStopTimeUpdate) GetActualTrack() string
func (*NyctStopTimeUpdate) GetScheduledTrack ¶
func (m *NyctStopTimeUpdate) GetScheduledTrack() string
func (*NyctStopTimeUpdate) ProtoMessage ¶
func (*NyctStopTimeUpdate) ProtoMessage()
func (*NyctStopTimeUpdate) Reset ¶
func (m *NyctStopTimeUpdate) Reset()
func (*NyctStopTimeUpdate) String ¶
func (m *NyctStopTimeUpdate) String() string
type NyctTripDescriptor ¶
type NyctTripDescriptor struct { // The nyct_train_id is meant for internal use only. It provides an // easy way to associated GTFS-realtime trip identifiers with NYCT rail // operations identifier // // The ATS office system assigns unique train identification (Train ID) to // each train operating within or ready to enter the mainline of the // monitored territory. An example of this is 06 0123+ PEL/BBR and is decoded // as follows: // // The first character represents the trip type designator. 0 identifies a // scheduled revenue trip. Other revenue trip values that are a result of a // change to the base schedule include; [= reroute], [/ skip stop], [$ turn // train] also known as shortly lined service. // // The second character 6 represents the trip line i.e. number 6 train The // third set of characters identify the decoded origin time. The last // character may be blank "on the whole minute" or + "30 seconds" // // Note: Origin times will not change when there is a trip type change. This // is followed by a three character "Origin Location" / "Destination // Location" TrainId *string `protobuf:"bytes,1,opt,name=train_id" json:"train_id,omitempty"` // This trip has been assigned to a physical train. If true, this trip is // already underway or most likely will depart shortly. // // Train Assignment is a function of the Automatic Train Supervision (ATS) // office system used by NYCT Rail Operations to monitor and track train // movements. ATS provides the ability to "assign" the nyct_train_id // attribute when a physical train is at its origin terminal. These assigned // trips have the is_assigned field set in the TripDescriptor. // // When a train is at a terminal but has not been given a work program it is // declared unassigned and is tagged as such. Unassigned trains can be moved // to a storage location or assigned a nyct_train_id when a determination for // service is made. IsAssigned *bool `protobuf:"varint,2,opt,name=is_assigned" json:"is_assigned,omitempty"` // Uptown and Bronx-bound trains are moving NORTH. // Times Square Shuttle to Grand Central is also northbound. // // Downtown and Brooklyn-bound trains are moving SOUTH. // Times Square Shuttle to Times Square is also southbound. // // EAST and WEST are not used currently. Direction *NyctTripDescriptor_Direction `protobuf:"varint,3,opt,name=direction,enum=NyctTripDescriptor_Direction" json:"direction,omitempty"` XXX_unrecognized []byte `json:"-"` }
NYCT Subway extensions for the trip descriptor
func (*NyctTripDescriptor) Descriptor ¶
func (*NyctTripDescriptor) Descriptor() ([]byte, []int)
func (*NyctTripDescriptor) GetDirection ¶
func (m *NyctTripDescriptor) GetDirection() NyctTripDescriptor_Direction
func (*NyctTripDescriptor) GetIsAssigned ¶
func (m *NyctTripDescriptor) GetIsAssigned() bool
func (*NyctTripDescriptor) GetTrainId ¶
func (m *NyctTripDescriptor) GetTrainId() string
func (*NyctTripDescriptor) ProtoMessage ¶
func (*NyctTripDescriptor) ProtoMessage()
func (*NyctTripDescriptor) Reset ¶
func (m *NyctTripDescriptor) Reset()
func (*NyctTripDescriptor) String ¶
func (m *NyctTripDescriptor) String() string
type NyctTripDescriptor_Direction ¶
type NyctTripDescriptor_Direction int32
The direction the train is moving.
const ( NyctTripDescriptor_NORTH NyctTripDescriptor_Direction = 1 NyctTripDescriptor_EAST NyctTripDescriptor_Direction = 2 NyctTripDescriptor_SOUTH NyctTripDescriptor_Direction = 3 NyctTripDescriptor_WEST NyctTripDescriptor_Direction = 4 )
func (NyctTripDescriptor_Direction) Enum ¶
func (x NyctTripDescriptor_Direction) Enum() *NyctTripDescriptor_Direction
func (NyctTripDescriptor_Direction) EnumDescriptor ¶
func (NyctTripDescriptor_Direction) EnumDescriptor() ([]byte, []int)
func (NyctTripDescriptor_Direction) String ¶
func (x NyctTripDescriptor_Direction) String() string
func (*NyctTripDescriptor_Direction) UnmarshalJSON ¶
func (x *NyctTripDescriptor_Direction) UnmarshalJSON(data []byte) error
type TripReplacementPeriod ¶
type TripReplacementPeriod struct { // The replacement period is for this route RouteId *string `protobuf:"bytes,1,opt,name=route_id" json:"route_id,omitempty"` // The start time is omitted, the end time is currently now + 30 minutes for // all routes of the A division ReplacementPeriod *transit_realtime.TimeRange `protobuf:"bytes,2,opt,name=replacement_period" json:"replacement_period,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*TripReplacementPeriod) Descriptor ¶
func (*TripReplacementPeriod) Descriptor() ([]byte, []int)
func (*TripReplacementPeriod) GetReplacementPeriod ¶
func (m *TripReplacementPeriod) GetReplacementPeriod() *transit_realtime.TimeRange
func (*TripReplacementPeriod) GetRouteId ¶
func (m *TripReplacementPeriod) GetRouteId() string
func (*TripReplacementPeriod) ProtoMessage ¶
func (*TripReplacementPeriod) ProtoMessage()
func (*TripReplacementPeriod) Reset ¶
func (m *TripReplacementPeriod) Reset()
func (*TripReplacementPeriod) String ¶
func (m *TripReplacementPeriod) String() string
Click to show internal directories.
Click to hide internal directories.