Documentation ¶
Index ¶
- Variables
- type NyctFeedHeader
- func (*NyctFeedHeader) Descriptor() ([]byte, []int)deprecated
- func (x *NyctFeedHeader) GetNyctSubwayVersion() string
- func (x *NyctFeedHeader) GetTripReplacementPeriod() []*TripReplacementPeriod
- func (*NyctFeedHeader) ProtoMessage()
- func (x *NyctFeedHeader) ProtoReflect() protoreflect.Message
- func (x *NyctFeedHeader) Reset()
- func (x *NyctFeedHeader) String() string
- type NyctStopTimeUpdate
- func (*NyctStopTimeUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *NyctStopTimeUpdate) GetActualTrack() string
- func (x *NyctStopTimeUpdate) GetScheduledTrack() string
- func (*NyctStopTimeUpdate) ProtoMessage()
- func (x *NyctStopTimeUpdate) ProtoReflect() protoreflect.Message
- func (x *NyctStopTimeUpdate) Reset()
- func (x *NyctStopTimeUpdate) String() string
- type NyctTripDescriptor
- func (*NyctTripDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *NyctTripDescriptor) GetDirection() NyctTripDescriptor_Direction
- func (x *NyctTripDescriptor) GetIsAssigned() bool
- func (x *NyctTripDescriptor) GetTrainId() string
- func (*NyctTripDescriptor) ProtoMessage()
- func (x *NyctTripDescriptor) ProtoReflect() protoreflect.Message
- func (x *NyctTripDescriptor) Reset()
- func (x *NyctTripDescriptor) String() string
- type NyctTripDescriptor_Direction
- func (NyctTripDescriptor_Direction) Descriptor() protoreflect.EnumDescriptor
- func (x NyctTripDescriptor_Direction) Enum() *NyctTripDescriptor_Direction
- func (NyctTripDescriptor_Direction) EnumDescriptor() ([]byte, []int)deprecated
- func (x NyctTripDescriptor_Direction) Number() protoreflect.EnumNumber
- func (x NyctTripDescriptor_Direction) String() string
- func (NyctTripDescriptor_Direction) Type() protoreflect.EnumType
- func (x *NyctTripDescriptor_Direction) UnmarshalJSON(b []byte) errordeprecated
- type TripReplacementPeriod
- func (*TripReplacementPeriod) Descriptor() ([]byte, []int)deprecated
- func (x *TripReplacementPeriod) GetReplacementPeriod() *transit_realtime.TimeRange
- func (x *TripReplacementPeriod) GetRouteId() string
- func (*TripReplacementPeriod) ProtoMessage()
- func (x *TripReplacementPeriod) ProtoReflect() protoreflect.Message
- func (x *TripReplacementPeriod) Reset()
- func (x *TripReplacementPeriod) String() string
Constants ¶
This section is empty.
Variables ¶
var ( NyctTripDescriptor_Direction_name = map[int32]string{ 1: "NORTH", 2: "EAST", 3: "SOUTH", 4: "WEST", } NyctTripDescriptor_Direction_value = map[string]int32{ "NORTH": 1, "EAST": 2, "SOUTH": 3, "WEST": 4, } )
Enum value maps for NyctTripDescriptor_Direction.
var (
// optional subway.NyctFeedHeader nyct_feed_header = 1001;
E_NyctFeedHeader = &file_subway_nyct_subway_proto_extTypes[0]
)
Extension fields to transit_realtime.FeedHeader.
var (
// optional subway.NyctStopTimeUpdate nyct_stop_time_update = 1001;
E_NyctStopTimeUpdate = &file_subway_nyct_subway_proto_extTypes[2]
)
Extension fields to transit_realtime.TripUpdate_StopTimeUpdate.
var (
// optional subway.NyctTripDescriptor nyct_trip_descriptor = 1001;
E_NyctTripDescriptor = &file_subway_nyct_subway_proto_extTypes[1]
)
Extension fields to transit_realtime.TripDescriptor.
var File_subway_nyct_subway_proto protoreflect.FileDescriptor
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=nyctSubwayVersion" 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=tripReplacementPeriod" json:"trip_replacement_period,omitempty"` // contains filtered or unexported fields }
NYCT Subway extensions for the feed header
func (*NyctFeedHeader) Descriptor
deprecated
func (*NyctFeedHeader) Descriptor() ([]byte, []int)
Deprecated: Use NyctFeedHeader.ProtoReflect.Descriptor instead.
func (*NyctFeedHeader) GetNyctSubwayVersion ¶
func (x *NyctFeedHeader) GetNyctSubwayVersion() string
func (*NyctFeedHeader) GetTripReplacementPeriod ¶
func (x *NyctFeedHeader) GetTripReplacementPeriod() []*TripReplacementPeriod
func (*NyctFeedHeader) ProtoMessage ¶
func (*NyctFeedHeader) ProtoMessage()
func (*NyctFeedHeader) ProtoReflect ¶
func (x *NyctFeedHeader) ProtoReflect() protoreflect.Message
func (*NyctFeedHeader) Reset ¶
func (x *NyctFeedHeader) Reset()
func (*NyctFeedHeader) String ¶
func (x *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=scheduledTrack" 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=actualTrack" json:"actual_track,omitempty"` // contains filtered or unexported fields }
NYCT Subway extensions for the stop time update
func (*NyctStopTimeUpdate) Descriptor
deprecated
func (*NyctStopTimeUpdate) Descriptor() ([]byte, []int)
Deprecated: Use NyctStopTimeUpdate.ProtoReflect.Descriptor instead.
func (*NyctStopTimeUpdate) GetActualTrack ¶
func (x *NyctStopTimeUpdate) GetActualTrack() string
func (*NyctStopTimeUpdate) GetScheduledTrack ¶
func (x *NyctStopTimeUpdate) GetScheduledTrack() string
func (*NyctStopTimeUpdate) ProtoMessage ¶
func (*NyctStopTimeUpdate) ProtoMessage()
func (*NyctStopTimeUpdate) ProtoReflect ¶
func (x *NyctStopTimeUpdate) ProtoReflect() protoreflect.Message
func (*NyctStopTimeUpdate) Reset ¶
func (x *NyctStopTimeUpdate) Reset()
func (*NyctStopTimeUpdate) String ¶
func (x *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=trainId" 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=isAssigned" 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=subway.NyctTripDescriptor_Direction" json:"direction,omitempty"` // contains filtered or unexported fields }
NYCT Subway extensions for the trip descriptor
func (*NyctTripDescriptor) Descriptor
deprecated
func (*NyctTripDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use NyctTripDescriptor.ProtoReflect.Descriptor instead.
func (*NyctTripDescriptor) GetDirection ¶
func (x *NyctTripDescriptor) GetDirection() NyctTripDescriptor_Direction
func (*NyctTripDescriptor) GetIsAssigned ¶
func (x *NyctTripDescriptor) GetIsAssigned() bool
func (*NyctTripDescriptor) GetTrainId ¶
func (x *NyctTripDescriptor) GetTrainId() string
func (*NyctTripDescriptor) ProtoMessage ¶
func (*NyctTripDescriptor) ProtoMessage()
func (*NyctTripDescriptor) ProtoReflect ¶
func (x *NyctTripDescriptor) ProtoReflect() protoreflect.Message
func (*NyctTripDescriptor) Reset ¶
func (x *NyctTripDescriptor) Reset()
func (*NyctTripDescriptor) String ¶
func (x *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) Descriptor ¶
func (NyctTripDescriptor_Direction) Descriptor() protoreflect.EnumDescriptor
func (NyctTripDescriptor_Direction) Enum ¶
func (x NyctTripDescriptor_Direction) Enum() *NyctTripDescriptor_Direction
func (NyctTripDescriptor_Direction) EnumDescriptor
deprecated
func (NyctTripDescriptor_Direction) EnumDescriptor() ([]byte, []int)
Deprecated: Use NyctTripDescriptor_Direction.Descriptor instead.
func (NyctTripDescriptor_Direction) Number ¶
func (x NyctTripDescriptor_Direction) Number() protoreflect.EnumNumber
func (NyctTripDescriptor_Direction) String ¶
func (x NyctTripDescriptor_Direction) String() string
func (NyctTripDescriptor_Direction) Type ¶
func (NyctTripDescriptor_Direction) Type() protoreflect.EnumType
func (*NyctTripDescriptor_Direction) UnmarshalJSON
deprecated
func (x *NyctTripDescriptor_Direction) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type TripReplacementPeriod ¶
type TripReplacementPeriod struct { // The replacement period is for this route RouteId *string `protobuf:"bytes,1,opt,name=route_id,json=routeId" 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=replacementPeriod" json:"replacement_period,omitempty"` // contains filtered or unexported fields }
func (*TripReplacementPeriod) Descriptor
deprecated
func (*TripReplacementPeriod) Descriptor() ([]byte, []int)
Deprecated: Use TripReplacementPeriod.ProtoReflect.Descriptor instead.
func (*TripReplacementPeriod) GetReplacementPeriod ¶
func (x *TripReplacementPeriod) GetReplacementPeriod() *transit_realtime.TimeRange
func (*TripReplacementPeriod) GetRouteId ¶
func (x *TripReplacementPeriod) GetRouteId() string
func (*TripReplacementPeriod) ProtoMessage ¶
func (*TripReplacementPeriod) ProtoMessage()
func (*TripReplacementPeriod) ProtoReflect ¶
func (x *TripReplacementPeriod) ProtoReflect() protoreflect.Message
func (*TripReplacementPeriod) Reset ¶
func (x *TripReplacementPeriod) Reset()
func (*TripReplacementPeriod) String ¶
func (x *TripReplacementPeriod) String() string