Documentation ¶
Index ¶
- Constants
- Variables
- type Alert
- func (*Alert) Descriptor() ([]byte, []int)deprecated
- func (x *Alert) GetActivePeriod() []*TimeRange
- func (x *Alert) GetCause() Alert_Cause
- func (x *Alert) GetDescriptionText() *TranslatedString
- func (x *Alert) GetEffect() Alert_Effect
- func (x *Alert) GetHeaderText() *TranslatedString
- func (x *Alert) GetInformedEntity() []*EntitySelector
- func (x *Alert) GetSeverityLevel() Alert_SeverityLevel
- func (x *Alert) GetTtsDescriptionText() *TranslatedString
- func (x *Alert) GetTtsHeaderText() *TranslatedString
- func (x *Alert) GetUrl() *TranslatedString
- func (*Alert) ProtoMessage()
- func (x *Alert) ProtoReflect() protoreflect.Message
- func (x *Alert) Reset()
- func (x *Alert) String() string
- type Alert_Cause
- func (Alert_Cause) Descriptor() protoreflect.EnumDescriptor
- func (x Alert_Cause) Enum() *Alert_Cause
- func (Alert_Cause) EnumDescriptor() ([]byte, []int)deprecated
- func (x Alert_Cause) Number() protoreflect.EnumNumber
- func (x Alert_Cause) String() string
- func (Alert_Cause) Type() protoreflect.EnumType
- func (x *Alert_Cause) UnmarshalJSON(b []byte) errordeprecated
- type Alert_Effect
- func (Alert_Effect) Descriptor() protoreflect.EnumDescriptor
- func (x Alert_Effect) Enum() *Alert_Effect
- func (Alert_Effect) EnumDescriptor() ([]byte, []int)deprecated
- func (x Alert_Effect) Number() protoreflect.EnumNumber
- func (x Alert_Effect) String() string
- func (Alert_Effect) Type() protoreflect.EnumType
- func (x *Alert_Effect) UnmarshalJSON(b []byte) errordeprecated
- type Alert_SeverityLevel
- func (Alert_SeverityLevel) Descriptor() protoreflect.EnumDescriptor
- func (x Alert_SeverityLevel) Enum() *Alert_SeverityLevel
- func (Alert_SeverityLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x Alert_SeverityLevel) Number() protoreflect.EnumNumber
- func (x Alert_SeverityLevel) String() string
- func (Alert_SeverityLevel) Type() protoreflect.EnumType
- func (x *Alert_SeverityLevel) UnmarshalJSON(b []byte) errordeprecated
- type EntitySelector
- func (*EntitySelector) Descriptor() ([]byte, []int)deprecated
- func (x *EntitySelector) GetAgencyId() string
- func (x *EntitySelector) GetDirectionId() uint32
- func (x *EntitySelector) GetRouteId() string
- func (x *EntitySelector) GetRouteType() int32
- func (x *EntitySelector) GetStopId() string
- func (x *EntitySelector) GetTrip() *TripDescriptor
- func (*EntitySelector) ProtoMessage()
- func (x *EntitySelector) ProtoReflect() protoreflect.Message
- func (x *EntitySelector) Reset()
- func (x *EntitySelector) String() string
- type FeedEntity
- func (*FeedEntity) Descriptor() ([]byte, []int)deprecated
- func (x *FeedEntity) GetAlert() *Alert
- func (x *FeedEntity) GetId() string
- func (x *FeedEntity) GetIsDeleted() bool
- func (x *FeedEntity) GetTripUpdate() *TripUpdate
- func (x *FeedEntity) GetVehicle() *VehiclePosition
- func (*FeedEntity) ProtoMessage()
- func (x *FeedEntity) ProtoReflect() protoreflect.Message
- func (x *FeedEntity) Reset()
- func (x *FeedEntity) String() string
- type FeedHeader
- func (*FeedHeader) Descriptor() ([]byte, []int)deprecated
- func (x *FeedHeader) GetGtfsRealtimeVersion() string
- func (x *FeedHeader) GetIncrementality() FeedHeader_Incrementality
- func (x *FeedHeader) GetTimestamp() uint64
- func (*FeedHeader) ProtoMessage()
- func (x *FeedHeader) ProtoReflect() protoreflect.Message
- func (x *FeedHeader) Reset()
- func (x *FeedHeader) String() string
- type FeedHeader_Incrementality
- func (FeedHeader_Incrementality) Descriptor() protoreflect.EnumDescriptor
- func (x FeedHeader_Incrementality) Enum() *FeedHeader_Incrementality
- func (FeedHeader_Incrementality) EnumDescriptor() ([]byte, []int)deprecated
- func (x FeedHeader_Incrementality) Number() protoreflect.EnumNumber
- func (x FeedHeader_Incrementality) String() string
- func (FeedHeader_Incrementality) Type() protoreflect.EnumType
- func (x *FeedHeader_Incrementality) UnmarshalJSON(b []byte) errordeprecated
- type FeedMessage
- func (*FeedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *FeedMessage) GetEntity() []*FeedEntity
- func (x *FeedMessage) GetHeader() *FeedHeader
- func (*FeedMessage) ProtoMessage()
- func (x *FeedMessage) ProtoReflect() protoreflect.Message
- func (x *FeedMessage) Reset()
- func (x *FeedMessage) String() string
- type MercuryAlert
- func (*MercuryAlert) Descriptor() ([]byte, []int)deprecated
- func (x *MercuryAlert) GetAffectedStations() []*EntitySelector
- func (x *MercuryAlert) GetAlertType() string
- func (x *MercuryAlert) GetCloneId() string
- func (x *MercuryAlert) GetCreatedAt() uint64
- func (x *MercuryAlert) GetDirectionality() uint64
- func (x *MercuryAlert) GetDisplayBeforeActive() uint64
- func (x *MercuryAlert) GetGeneralOrderNumber() []string
- func (x *MercuryAlert) GetHumanReadableActivePeriod() *TranslatedString
- func (x *MercuryAlert) GetNoAffectedStations() bool
- func (x *MercuryAlert) GetScreensSummary() *TranslatedString
- func (x *MercuryAlert) GetServicePlanNumber() []string
- func (x *MercuryAlert) GetStationAlternative() []*MercuryStationAlternative
- func (x *MercuryAlert) GetUpdatedAt() uint64
- func (*MercuryAlert) ProtoMessage()
- func (x *MercuryAlert) ProtoReflect() protoreflect.Message
- func (x *MercuryAlert) Reset()
- func (x *MercuryAlert) String() string
- type MercuryEntitySelector
- func (*MercuryEntitySelector) Descriptor() ([]byte, []int)deprecated
- func (x *MercuryEntitySelector) GetSortOrder() string
- func (*MercuryEntitySelector) ProtoMessage()
- func (x *MercuryEntitySelector) ProtoReflect() protoreflect.Message
- func (x *MercuryEntitySelector) Reset()
- func (x *MercuryEntitySelector) String() string
- type MercuryEntitySelector_Priority
- func (MercuryEntitySelector_Priority) Descriptor() protoreflect.EnumDescriptor
- func (x MercuryEntitySelector_Priority) Enum() *MercuryEntitySelector_Priority
- func (MercuryEntitySelector_Priority) EnumDescriptor() ([]byte, []int)deprecated
- func (x MercuryEntitySelector_Priority) Number() protoreflect.EnumNumber
- func (x MercuryEntitySelector_Priority) String() string
- func (MercuryEntitySelector_Priority) Type() protoreflect.EnumType
- func (x *MercuryEntitySelector_Priority) UnmarshalJSON(b []byte) errordeprecated
- type MercuryFeedHeader
- func (*MercuryFeedHeader) Descriptor() ([]byte, []int)deprecated
- func (x *MercuryFeedHeader) GetMercuryVersion() string
- func (*MercuryFeedHeader) ProtoMessage()
- func (x *MercuryFeedHeader) ProtoReflect() protoreflect.Message
- func (x *MercuryFeedHeader) Reset()
- func (x *MercuryFeedHeader) String() string
- type MercuryStationAlternative
- func (*MercuryStationAlternative) Descriptor() ([]byte, []int)deprecated
- func (x *MercuryStationAlternative) GetAffectedEntity() *EntitySelector
- func (x *MercuryStationAlternative) GetNotes() *TranslatedString
- func (*MercuryStationAlternative) ProtoMessage()
- func (x *MercuryStationAlternative) ProtoReflect() protoreflect.Message
- func (x *MercuryStationAlternative) Reset()
- func (x *MercuryStationAlternative) String() string
- 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 Position
- func (*Position) Descriptor() ([]byte, []int)deprecated
- func (x *Position) GetBearing() float32
- func (x *Position) GetLatitude() float32
- func (x *Position) GetLongitude() float32
- func (x *Position) GetOdometer() float64
- func (x *Position) GetSpeed() float32
- func (*Position) ProtoMessage()
- func (x *Position) ProtoReflect() protoreflect.Message
- func (x *Position) Reset()
- func (x *Position) String() string
- type TimeRange
- type TranslatedString
- func (*TranslatedString) Descriptor() ([]byte, []int)deprecated
- func (x *TranslatedString) GetTranslation() []*TranslatedString_Translation
- func (*TranslatedString) ProtoMessage()
- func (x *TranslatedString) ProtoReflect() protoreflect.Message
- func (x *TranslatedString) Reset()
- func (x *TranslatedString) String() string
- type TranslatedString_Translation
- func (*TranslatedString_Translation) Descriptor() ([]byte, []int)deprecated
- func (x *TranslatedString_Translation) GetLanguage() string
- func (x *TranslatedString_Translation) GetText() string
- func (*TranslatedString_Translation) ProtoMessage()
- func (x *TranslatedString_Translation) ProtoReflect() protoreflect.Message
- func (x *TranslatedString_Translation) Reset()
- func (x *TranslatedString_Translation) String() string
- type TripDescriptor
- func (*TripDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *TripDescriptor) GetDirectionId() uint32
- func (x *TripDescriptor) GetRouteId() string
- func (x *TripDescriptor) GetScheduleRelationship() TripDescriptor_ScheduleRelationship
- func (x *TripDescriptor) GetStartDate() string
- func (x *TripDescriptor) GetStartTime() string
- func (x *TripDescriptor) GetTripId() string
- func (*TripDescriptor) ProtoMessage()
- func (x *TripDescriptor) ProtoReflect() protoreflect.Message
- func (x *TripDescriptor) Reset()
- func (x *TripDescriptor) String() string
- type TripDescriptor_ScheduleRelationship
- func (TripDescriptor_ScheduleRelationship) Descriptor() protoreflect.EnumDescriptor
- func (x TripDescriptor_ScheduleRelationship) Enum() *TripDescriptor_ScheduleRelationship
- func (TripDescriptor_ScheduleRelationship) EnumDescriptor() ([]byte, []int)deprecated
- func (x TripDescriptor_ScheduleRelationship) Number() protoreflect.EnumNumber
- func (x TripDescriptor_ScheduleRelationship) String() string
- func (TripDescriptor_ScheduleRelationship) Type() protoreflect.EnumType
- func (x *TripDescriptor_ScheduleRelationship) UnmarshalJSON(b []byte) errordeprecated
- type TripReplacementPeriod
- func (*TripReplacementPeriod) Descriptor() ([]byte, []int)deprecated
- func (x *TripReplacementPeriod) GetReplacementPeriod() *TimeRange
- func (x *TripReplacementPeriod) GetRouteId() string
- func (*TripReplacementPeriod) ProtoMessage()
- func (x *TripReplacementPeriod) ProtoReflect() protoreflect.Message
- func (x *TripReplacementPeriod) Reset()
- func (x *TripReplacementPeriod) String() string
- type TripUpdate
- func (*TripUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *TripUpdate) GetDelay() int32
- func (x *TripUpdate) GetStopTimeUpdate() []*TripUpdate_StopTimeUpdate
- func (x *TripUpdate) GetTimestamp() uint64
- func (x *TripUpdate) GetTrip() *TripDescriptor
- func (x *TripUpdate) GetVehicle() *VehicleDescriptor
- func (*TripUpdate) ProtoMessage()
- func (x *TripUpdate) ProtoReflect() protoreflect.Message
- func (x *TripUpdate) Reset()
- func (x *TripUpdate) String() string
- type TripUpdate_StopTimeEvent
- func (*TripUpdate_StopTimeEvent) Descriptor() ([]byte, []int)deprecated
- func (x *TripUpdate_StopTimeEvent) GetDelay() int32
- func (x *TripUpdate_StopTimeEvent) GetTime() int64
- func (x *TripUpdate_StopTimeEvent) GetUncertainty() int32
- func (*TripUpdate_StopTimeEvent) ProtoMessage()
- func (x *TripUpdate_StopTimeEvent) ProtoReflect() protoreflect.Message
- func (x *TripUpdate_StopTimeEvent) Reset()
- func (x *TripUpdate_StopTimeEvent) String() string
- type TripUpdate_StopTimeUpdate
- func (*TripUpdate_StopTimeUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *TripUpdate_StopTimeUpdate) GetArrival() *TripUpdate_StopTimeEvent
- func (x *TripUpdate_StopTimeUpdate) GetDeparture() *TripUpdate_StopTimeEvent
- func (x *TripUpdate_StopTimeUpdate) GetScheduleRelationship() TripUpdate_StopTimeUpdate_ScheduleRelationship
- func (x *TripUpdate_StopTimeUpdate) GetStopId() string
- func (x *TripUpdate_StopTimeUpdate) GetStopSequence() uint32
- func (*TripUpdate_StopTimeUpdate) ProtoMessage()
- func (x *TripUpdate_StopTimeUpdate) ProtoReflect() protoreflect.Message
- func (x *TripUpdate_StopTimeUpdate) Reset()
- func (x *TripUpdate_StopTimeUpdate) String() string
- type TripUpdate_StopTimeUpdate_ScheduleRelationship
- func (TripUpdate_StopTimeUpdate_ScheduleRelationship) Descriptor() protoreflect.EnumDescriptor
- func (x TripUpdate_StopTimeUpdate_ScheduleRelationship) Enum() *TripUpdate_StopTimeUpdate_ScheduleRelationship
- func (TripUpdate_StopTimeUpdate_ScheduleRelationship) EnumDescriptor() ([]byte, []int)deprecated
- func (x TripUpdate_StopTimeUpdate_ScheduleRelationship) Number() protoreflect.EnumNumber
- func (x TripUpdate_StopTimeUpdate_ScheduleRelationship) String() string
- func (TripUpdate_StopTimeUpdate_ScheduleRelationship) Type() protoreflect.EnumType
- func (x *TripUpdate_StopTimeUpdate_ScheduleRelationship) UnmarshalJSON(b []byte) errordeprecated
- type VehicleDescriptor
- func (*VehicleDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *VehicleDescriptor) GetId() string
- func (x *VehicleDescriptor) GetLabel() string
- func (x *VehicleDescriptor) GetLicensePlate() string
- func (*VehicleDescriptor) ProtoMessage()
- func (x *VehicleDescriptor) ProtoReflect() protoreflect.Message
- func (x *VehicleDescriptor) Reset()
- func (x *VehicleDescriptor) String() string
- type VehiclePosition
- func (*VehiclePosition) Descriptor() ([]byte, []int)deprecated
- func (x *VehiclePosition) GetCongestionLevel() VehiclePosition_CongestionLevel
- func (x *VehiclePosition) GetCurrentStatus() VehiclePosition_VehicleStopStatus
- func (x *VehiclePosition) GetCurrentStopSequence() uint32
- func (x *VehiclePosition) GetOccupancyPercentage() uint32
- func (x *VehiclePosition) GetOccupancyStatus() VehiclePosition_OccupancyStatus
- func (x *VehiclePosition) GetPosition() *Position
- func (x *VehiclePosition) GetStopId() string
- func (x *VehiclePosition) GetTimestamp() uint64
- func (x *VehiclePosition) GetTrip() *TripDescriptor
- func (x *VehiclePosition) GetVehicle() *VehicleDescriptor
- func (*VehiclePosition) ProtoMessage()
- func (x *VehiclePosition) ProtoReflect() protoreflect.Message
- func (x *VehiclePosition) Reset()
- func (x *VehiclePosition) String() string
- type VehiclePosition_CongestionLevel
- func (VehiclePosition_CongestionLevel) Descriptor() protoreflect.EnumDescriptor
- func (x VehiclePosition_CongestionLevel) Enum() *VehiclePosition_CongestionLevel
- func (VehiclePosition_CongestionLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x VehiclePosition_CongestionLevel) Number() protoreflect.EnumNumber
- func (x VehiclePosition_CongestionLevel) String() string
- func (VehiclePosition_CongestionLevel) Type() protoreflect.EnumType
- func (x *VehiclePosition_CongestionLevel) UnmarshalJSON(b []byte) errordeprecated
- type VehiclePosition_OccupancyStatus
- func (VehiclePosition_OccupancyStatus) Descriptor() protoreflect.EnumDescriptor
- func (x VehiclePosition_OccupancyStatus) Enum() *VehiclePosition_OccupancyStatus
- func (VehiclePosition_OccupancyStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x VehiclePosition_OccupancyStatus) Number() protoreflect.EnumNumber
- func (x VehiclePosition_OccupancyStatus) String() string
- func (VehiclePosition_OccupancyStatus) Type() protoreflect.EnumType
- func (x *VehiclePosition_OccupancyStatus) UnmarshalJSON(b []byte) errordeprecated
- type VehiclePosition_VehicleStopStatus
- func (VehiclePosition_VehicleStopStatus) Descriptor() protoreflect.EnumDescriptor
- func (x VehiclePosition_VehicleStopStatus) Enum() *VehiclePosition_VehicleStopStatus
- func (VehiclePosition_VehicleStopStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x VehiclePosition_VehicleStopStatus) Number() protoreflect.EnumNumber
- func (x VehiclePosition_VehicleStopStatus) String() string
- func (VehiclePosition_VehicleStopStatus) Type() protoreflect.EnumType
- func (x *VehiclePosition_VehicleStopStatus) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_Alert_Cause = Alert_UNKNOWN_CAUSE Default_Alert_Effect = Alert_UNKNOWN_EFFECT Default_Alert_SeverityLevel = Alert_UNKNOWN_SEVERITY )
Default values for Alert fields.
const (
Default_FeedEntity_IsDeleted = bool(false)
)
Default values for FeedEntity fields.
const (
Default_FeedHeader_Incrementality = FeedHeader_FULL_DATASET
)
Default values for FeedHeader fields.
const (
Default_TripUpdate_StopTimeUpdate_ScheduleRelationship = TripUpdate_StopTimeUpdate_SCHEDULED
)
Default values for TripUpdate_StopTimeUpdate fields.
const (
Default_VehiclePosition_CurrentStatus = VehiclePosition_IN_TRANSIT_TO
)
Default values for VehiclePosition fields.
Variables ¶
var ( FeedHeader_Incrementality_name = map[int32]string{ 0: "FULL_DATASET", 1: "DIFFERENTIAL", } FeedHeader_Incrementality_value = map[string]int32{ "FULL_DATASET": 0, "DIFFERENTIAL": 1, } )
Enum value maps for FeedHeader_Incrementality.
var ( TripUpdate_StopTimeUpdate_ScheduleRelationship_name = map[int32]string{ 0: "SCHEDULED", 1: "SKIPPED", 2: "NO_DATA", 3: "UNSCHEDULED", } TripUpdate_StopTimeUpdate_ScheduleRelationship_value = map[string]int32{ "SCHEDULED": 0, "SKIPPED": 1, "NO_DATA": 2, "UNSCHEDULED": 3, } )
Enum value maps for TripUpdate_StopTimeUpdate_ScheduleRelationship.
var ( VehiclePosition_VehicleStopStatus_name = map[int32]string{ 0: "INCOMING_AT", 1: "STOPPED_AT", 2: "IN_TRANSIT_TO", } VehiclePosition_VehicleStopStatus_value = map[string]int32{ "INCOMING_AT": 0, "STOPPED_AT": 1, "IN_TRANSIT_TO": 2, } )
Enum value maps for VehiclePosition_VehicleStopStatus.
var ( VehiclePosition_CongestionLevel_name = map[int32]string{ 0: "UNKNOWN_CONGESTION_LEVEL", 1: "RUNNING_SMOOTHLY", 2: "STOP_AND_GO", 3: "CONGESTION", 4: "SEVERE_CONGESTION", } VehiclePosition_CongestionLevel_value = map[string]int32{ "UNKNOWN_CONGESTION_LEVEL": 0, "RUNNING_SMOOTHLY": 1, "STOP_AND_GO": 2, "CONGESTION": 3, "SEVERE_CONGESTION": 4, } )
Enum value maps for VehiclePosition_CongestionLevel.
var ( VehiclePosition_OccupancyStatus_name = map[int32]string{ 0: "EMPTY", 1: "MANY_SEATS_AVAILABLE", 2: "FEW_SEATS_AVAILABLE", 3: "STANDING_ROOM_ONLY", 4: "CRUSHED_STANDING_ROOM_ONLY", 5: "FULL", 6: "NOT_ACCEPTING_PASSENGERS", } VehiclePosition_OccupancyStatus_value = map[string]int32{ "EMPTY": 0, "MANY_SEATS_AVAILABLE": 1, "FEW_SEATS_AVAILABLE": 2, "STANDING_ROOM_ONLY": 3, "CRUSHED_STANDING_ROOM_ONLY": 4, "FULL": 5, "NOT_ACCEPTING_PASSENGERS": 6, } )
Enum value maps for VehiclePosition_OccupancyStatus.
var ( Alert_Cause_name = map[int32]string{ 1: "UNKNOWN_CAUSE", 2: "OTHER_CAUSE", 3: "TECHNICAL_PROBLEM", 4: "STRIKE", 5: "DEMONSTRATION", 6: "ACCIDENT", 7: "HOLIDAY", 8: "WEATHER", 9: "MAINTENANCE", 10: "CONSTRUCTION", 11: "POLICE_ACTIVITY", 12: "MEDICAL_EMERGENCY", } Alert_Cause_value = map[string]int32{ "UNKNOWN_CAUSE": 1, "OTHER_CAUSE": 2, "TECHNICAL_PROBLEM": 3, "STRIKE": 4, "DEMONSTRATION": 5, "ACCIDENT": 6, "HOLIDAY": 7, "WEATHER": 8, "MAINTENANCE": 9, "CONSTRUCTION": 10, "POLICE_ACTIVITY": 11, "MEDICAL_EMERGENCY": 12, } )
Enum value maps for Alert_Cause.
var ( Alert_Effect_name = map[int32]string{ 1: "NO_SERVICE", 2: "REDUCED_SERVICE", 3: "SIGNIFICANT_DELAYS", 4: "DETOUR", 5: "ADDITIONAL_SERVICE", 6: "MODIFIED_SERVICE", 7: "OTHER_EFFECT", 8: "UNKNOWN_EFFECT", 9: "STOP_MOVED", 10: "NO_EFFECT", 11: "ACCESSIBILITY_ISSUE", } Alert_Effect_value = map[string]int32{ "NO_SERVICE": 1, "REDUCED_SERVICE": 2, "SIGNIFICANT_DELAYS": 3, "DETOUR": 4, "ADDITIONAL_SERVICE": 5, "MODIFIED_SERVICE": 6, "OTHER_EFFECT": 7, "UNKNOWN_EFFECT": 8, "STOP_MOVED": 9, "NO_EFFECT": 10, "ACCESSIBILITY_ISSUE": 11, } )
Enum value maps for Alert_Effect.
var ( Alert_SeverityLevel_name = map[int32]string{ 1: "UNKNOWN_SEVERITY", 2: "INFO", 3: "WARNING", 4: "SEVERE", } Alert_SeverityLevel_value = map[string]int32{ "UNKNOWN_SEVERITY": 1, "INFO": 2, "WARNING": 3, "SEVERE": 4, } )
Enum value maps for Alert_SeverityLevel.
var ( TripDescriptor_ScheduleRelationship_name = map[int32]string{ 0: "SCHEDULED", 1: "ADDED", 2: "UNSCHEDULED", 3: "CANCELED", 5: "REPLACEMENT", } TripDescriptor_ScheduleRelationship_value = map[string]int32{ "SCHEDULED": 0, "ADDED": 1, "UNSCHEDULED": 2, "CANCELED": 3, "REPLACEMENT": 5, } )
Enum value maps for TripDescriptor_ScheduleRelationship.
var ( MercuryEntitySelector_Priority_name = map[int32]string{ 1: "PRIORITY_NO_SCHEDULED_SERVICE", 2: "PRIORITY_NO_MIDDAY_SERVICE", 3: "PRIORITY_NO_OVERNIGHT_SERVICE", 4: "PRIORITY_NO_WEEKEND_SERVICE", 5: "PRIORITY_WEEKDAY_SCHEDULE", 6: "PRIORITY_WEEKEND_SCHEDULE", 7: "PRIORITY_SATURDAY_SCHEDULE", 8: "PRIORITY_SUNDAY_SCHEDULE", 9: "PRIORITY_EXTRA_SERVICE", 10: "PRIORITY_SPECIAL_SCHEDULE", 11: "PRIORITY_STATION_NOTICE", 12: "PRIORITY_SPECIAL_EVENT", 13: "PRIORITY_PLANNED_BOARDING_CHANGE", 14: "PRIORITY_BOARDING_CHANGE", 15: "PRIORITY_REDUCED_SERVICE", 16: "PRIORITY_PLANNED_WORK", 17: "PRIORITY_PLANNED_STATIONS_SKIPPED", 18: "PRIORITY_PLANNED_EXPRESS_TO_LOCAL", 19: "PRIORITY_SLOW_SPEEDS", 20: "PRIORITY_EXPECT_DELAYS", 21: "PRIORITY_PLANNED_LOCAL_TO_EXPRESS", 22: "PRIORITY_PLANNED_BUSES_DETOURED", 23: "PRIORITY_PLANNED_TRAINS_REROUTED", 24: "PRIORITY_PLANNED_SUBSTITUTE_BUSES", 25: "PRIORITY_PLANNED_PART_SUSPENDED", 26: "PRIORITY_PLANNED_MULTIPLE_CHANGES", 27: "PRIORITY_SOME_DELAYS", 28: "PRIORITY_STATIONS_SKIPPED", 29: "PRIORITY_EXPRESS_TO_LOCAL", 30: "PRIORITY_DELAYS", 31: "PRIORITY_SOME_REROUTES", 32: "PRIORITY_LOCAL_TO_EXPRESS", 33: "PRIORITY_BUSES_DETOURED", 34: "PRIORITY_SERVICE_CHANGE", 35: "PRIORITY_TRAINS_REROUTED", 36: "PRIORITY_SUBSTITUTE_BUSES", 37: "PRIORITY_PART_SUSPENDED", 38: "PRIORITY_MULTIPLE_CHANGES", 39: "PRIORITY_PLANNED_SUSPENDED", 40: "PRIORITY_SUSPENDED", } MercuryEntitySelector_Priority_value = map[string]int32{ "PRIORITY_NO_SCHEDULED_SERVICE": 1, "PRIORITY_NO_MIDDAY_SERVICE": 2, "PRIORITY_NO_OVERNIGHT_SERVICE": 3, "PRIORITY_NO_WEEKEND_SERVICE": 4, "PRIORITY_WEEKDAY_SCHEDULE": 5, "PRIORITY_WEEKEND_SCHEDULE": 6, "PRIORITY_SATURDAY_SCHEDULE": 7, "PRIORITY_SUNDAY_SCHEDULE": 8, "PRIORITY_EXTRA_SERVICE": 9, "PRIORITY_SPECIAL_SCHEDULE": 10, "PRIORITY_STATION_NOTICE": 11, "PRIORITY_SPECIAL_EVENT": 12, "PRIORITY_PLANNED_BOARDING_CHANGE": 13, "PRIORITY_BOARDING_CHANGE": 14, "PRIORITY_REDUCED_SERVICE": 15, "PRIORITY_PLANNED_WORK": 16, "PRIORITY_PLANNED_STATIONS_SKIPPED": 17, "PRIORITY_PLANNED_EXPRESS_TO_LOCAL": 18, "PRIORITY_SLOW_SPEEDS": 19, "PRIORITY_EXPECT_DELAYS": 20, "PRIORITY_PLANNED_LOCAL_TO_EXPRESS": 21, "PRIORITY_PLANNED_BUSES_DETOURED": 22, "PRIORITY_PLANNED_TRAINS_REROUTED": 23, "PRIORITY_PLANNED_SUBSTITUTE_BUSES": 24, "PRIORITY_PLANNED_PART_SUSPENDED": 25, "PRIORITY_PLANNED_MULTIPLE_CHANGES": 26, "PRIORITY_SOME_DELAYS": 27, "PRIORITY_STATIONS_SKIPPED": 28, "PRIORITY_EXPRESS_TO_LOCAL": 29, "PRIORITY_DELAYS": 30, "PRIORITY_SOME_REROUTES": 31, "PRIORITY_LOCAL_TO_EXPRESS": 32, "PRIORITY_BUSES_DETOURED": 33, "PRIORITY_SERVICE_CHANGE": 34, "PRIORITY_TRAINS_REROUTED": 35, "PRIORITY_SUBSTITUTE_BUSES": 36, "PRIORITY_PART_SUSPENDED": 37, "PRIORITY_MULTIPLE_CHANGES": 38, "PRIORITY_PLANNED_SUSPENDED": 39, "PRIORITY_SUSPENDED": 40, } )
Enum value maps for MercuryEntitySelector_Priority.
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 transit_realtime.MercuryAlert mercury_alert = 1001;
E_MercuryAlert = &file_proto_us_ny_mta_alerts_extension_proto_extTypes[0]
)
Extension fields to Alert.
var (
// optional transit_realtime.MercuryEntitySelector mercury_entity_selector = 1001;
E_MercuryEntitySelector = &file_proto_us_ny_mta_alerts_extension_proto_extTypes[1]
)
Extension fields to EntitySelector.
var (
// optional transit_realtime.NyctFeedHeader nyct_feed_header = 1001;
E_NyctFeedHeader = &file_proto_us_ny_mta_trips_extension_proto_extTypes[0]
)
Extension fields to FeedHeader.
var (
// optional transit_realtime.NyctStopTimeUpdate nyct_stop_time_update = 1001;
E_NyctStopTimeUpdate = &file_proto_us_ny_mta_trips_extension_proto_extTypes[2]
)
Extension fields to TripUpdate_StopTimeUpdate.
var (
// optional transit_realtime.NyctTripDescriptor nyct_trip_descriptor = 1001;
E_NyctTripDescriptor = &file_proto_us_ny_mta_trips_extension_proto_extTypes[1]
)
Extension fields to TripDescriptor.
var File_proto_gtfs_realtime_proto protoreflect.FileDescriptor
var File_proto_us_ny_mta_alerts_extension_proto protoreflect.FileDescriptor
var File_proto_us_ny_mta_trips_extension_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { // Time when the alert should be shown to the user. If missing, the // alert will be shown as long as it appears in the feed. // If multiple ranges are given, the alert will be shown during all of them. ActivePeriod []*TimeRange `protobuf:"bytes,1,rep,name=active_period,json=activePeriod" json:"active_period,omitempty"` // Entities whose users we should notify of this alert. InformedEntity []*EntitySelector `protobuf:"bytes,5,rep,name=informed_entity,json=informedEntity" json:"informed_entity,omitempty"` Cause *Alert_Cause `protobuf:"varint,6,opt,name=cause,enum=transit_realtime.Alert_Cause,def=1" json:"cause,omitempty"` Effect *Alert_Effect `protobuf:"varint,7,opt,name=effect,enum=transit_realtime.Alert_Effect,def=8" json:"effect,omitempty"` // The URL which provides additional information about the alert. Url *TranslatedString `protobuf:"bytes,8,opt,name=url" json:"url,omitempty"` // Alert header. Contains a short summary of the alert text as plain-text. HeaderText *TranslatedString `protobuf:"bytes,10,opt,name=header_text,json=headerText" json:"header_text,omitempty"` // Full description for the alert as plain-text. The information in the // description should add to the information of the header. DescriptionText *TranslatedString `protobuf:"bytes,11,opt,name=description_text,json=descriptionText" json:"description_text,omitempty"` // Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text. // This field is still experimental, and subject to change. It may be formally adopted in the future. TtsHeaderText *TranslatedString `protobuf:"bytes,12,opt,name=tts_header_text,json=ttsHeaderText" json:"tts_header_text,omitempty"` // Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text. // This field is still experimental, and subject to change. It may be formally adopted in the future. TtsDescriptionText *TranslatedString `protobuf:"bytes,13,opt,name=tts_description_text,json=ttsDescriptionText" json:"tts_description_text,omitempty"` SeverityLevel *Alert_SeverityLevel `` /* 143-byte string literal not displayed */ // contains filtered or unexported fields }
An alert, indicating some sort of incident in the public transit network.
func (*Alert) Descriptor
deprecated
func (*Alert) GetActivePeriod ¶
func (*Alert) GetCause ¶
func (x *Alert) GetCause() Alert_Cause
func (*Alert) GetDescriptionText ¶
func (x *Alert) GetDescriptionText() *TranslatedString
func (*Alert) GetEffect ¶
func (x *Alert) GetEffect() Alert_Effect
func (*Alert) GetHeaderText ¶
func (x *Alert) GetHeaderText() *TranslatedString
func (*Alert) GetInformedEntity ¶
func (x *Alert) GetInformedEntity() []*EntitySelector
func (*Alert) GetSeverityLevel ¶
func (x *Alert) GetSeverityLevel() Alert_SeverityLevel
func (*Alert) GetTtsDescriptionText ¶
func (x *Alert) GetTtsDescriptionText() *TranslatedString
func (*Alert) GetTtsHeaderText ¶
func (x *Alert) GetTtsHeaderText() *TranslatedString
func (*Alert) GetUrl ¶
func (x *Alert) GetUrl() *TranslatedString
func (*Alert) ProtoMessage ¶
func (*Alert) ProtoMessage()
func (*Alert) ProtoReflect ¶
func (x *Alert) ProtoReflect() protoreflect.Message
type Alert_Cause ¶
type Alert_Cause int32
Cause of this alert.
const ( Alert_UNKNOWN_CAUSE Alert_Cause = 1 Alert_OTHER_CAUSE Alert_Cause = 2 // Not machine-representable. Alert_TECHNICAL_PROBLEM Alert_Cause = 3 Alert_STRIKE Alert_Cause = 4 // Public transit agency employees stopped working. Alert_DEMONSTRATION Alert_Cause = 5 // People are blocking the streets. Alert_ACCIDENT Alert_Cause = 6 Alert_HOLIDAY Alert_Cause = 7 Alert_WEATHER Alert_Cause = 8 Alert_MAINTENANCE Alert_Cause = 9 Alert_CONSTRUCTION Alert_Cause = 10 Alert_POLICE_ACTIVITY Alert_Cause = 11 Alert_MEDICAL_EMERGENCY Alert_Cause = 12 )
func (Alert_Cause) Descriptor ¶
func (Alert_Cause) Descriptor() protoreflect.EnumDescriptor
func (Alert_Cause) Enum ¶
func (x Alert_Cause) Enum() *Alert_Cause
func (Alert_Cause) EnumDescriptor
deprecated
func (Alert_Cause) EnumDescriptor() ([]byte, []int)
Deprecated: Use Alert_Cause.Descriptor instead.
func (Alert_Cause) Number ¶
func (x Alert_Cause) Number() protoreflect.EnumNumber
func (Alert_Cause) String ¶
func (x Alert_Cause) String() string
func (Alert_Cause) Type ¶
func (Alert_Cause) Type() protoreflect.EnumType
func (*Alert_Cause) UnmarshalJSON
deprecated
func (x *Alert_Cause) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Alert_Effect ¶
type Alert_Effect int32
What is the effect of this problem on the affected entity.
const ( Alert_NO_SERVICE Alert_Effect = 1 Alert_REDUCED_SERVICE Alert_Effect = 2 // We don't care about INsignificant delays: they are hard to detect, have // little impact on the user, and would clutter the results as they are too // frequent. Alert_SIGNIFICANT_DELAYS Alert_Effect = 3 Alert_DETOUR Alert_Effect = 4 Alert_ADDITIONAL_SERVICE Alert_Effect = 5 Alert_MODIFIED_SERVICE Alert_Effect = 6 Alert_OTHER_EFFECT Alert_Effect = 7 Alert_UNKNOWN_EFFECT Alert_Effect = 8 Alert_STOP_MOVED Alert_Effect = 9 Alert_NO_EFFECT Alert_Effect = 10 Alert_ACCESSIBILITY_ISSUE Alert_Effect = 11 )
func (Alert_Effect) Descriptor ¶
func (Alert_Effect) Descriptor() protoreflect.EnumDescriptor
func (Alert_Effect) Enum ¶
func (x Alert_Effect) Enum() *Alert_Effect
func (Alert_Effect) EnumDescriptor
deprecated
func (Alert_Effect) EnumDescriptor() ([]byte, []int)
Deprecated: Use Alert_Effect.Descriptor instead.
func (Alert_Effect) Number ¶
func (x Alert_Effect) Number() protoreflect.EnumNumber
func (Alert_Effect) String ¶
func (x Alert_Effect) String() string
func (Alert_Effect) Type ¶
func (Alert_Effect) Type() protoreflect.EnumType
func (*Alert_Effect) UnmarshalJSON
deprecated
func (x *Alert_Effect) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type Alert_SeverityLevel ¶
type Alert_SeverityLevel int32
Severity of this alert.
const ( Alert_UNKNOWN_SEVERITY Alert_SeverityLevel = 1 Alert_INFO Alert_SeverityLevel = 2 Alert_WARNING Alert_SeverityLevel = 3 Alert_SEVERE Alert_SeverityLevel = 4 )
func (Alert_SeverityLevel) Descriptor ¶
func (Alert_SeverityLevel) Descriptor() protoreflect.EnumDescriptor
func (Alert_SeverityLevel) Enum ¶
func (x Alert_SeverityLevel) Enum() *Alert_SeverityLevel
func (Alert_SeverityLevel) EnumDescriptor
deprecated
func (Alert_SeverityLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use Alert_SeverityLevel.Descriptor instead.
func (Alert_SeverityLevel) Number ¶
func (x Alert_SeverityLevel) Number() protoreflect.EnumNumber
func (Alert_SeverityLevel) String ¶
func (x Alert_SeverityLevel) String() string
func (Alert_SeverityLevel) Type ¶
func (Alert_SeverityLevel) Type() protoreflect.EnumType
func (*Alert_SeverityLevel) UnmarshalJSON
deprecated
func (x *Alert_SeverityLevel) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type EntitySelector ¶
type EntitySelector struct { // The values of the fields should correspond to the appropriate fields in the // GTFS feed. // At least one specifier must be given. If several are given, then the // matching has to apply to all the given specifiers. AgencyId *string `protobuf:"bytes,1,opt,name=agency_id,json=agencyId" json:"agency_id,omitempty"` RouteId *string `protobuf:"bytes,2,opt,name=route_id,json=routeId" json:"route_id,omitempty"` // corresponds to route_type in GTFS. RouteType *int32 `protobuf:"varint,3,opt,name=route_type,json=routeType" json:"route_type,omitempty"` Trip *TripDescriptor `protobuf:"bytes,4,opt,name=trip" json:"trip,omitempty"` StopId *string `protobuf:"bytes,5,opt,name=stop_id,json=stopId" json:"stop_id,omitempty"` // Corresponds to trip direction_id in GTFS trips.txt. If provided the // route_id must also be provided. DirectionId *uint32 `protobuf:"varint,6,opt,name=direction_id,json=directionId" json:"direction_id,omitempty"` // contains filtered or unexported fields }
A selector for an entity in a GTFS feed.
func (*EntitySelector) Descriptor
deprecated
func (*EntitySelector) Descriptor() ([]byte, []int)
Deprecated: Use EntitySelector.ProtoReflect.Descriptor instead.
func (*EntitySelector) GetAgencyId ¶
func (x *EntitySelector) GetAgencyId() string
func (*EntitySelector) GetDirectionId ¶
func (x *EntitySelector) GetDirectionId() uint32
func (*EntitySelector) GetRouteId ¶
func (x *EntitySelector) GetRouteId() string
func (*EntitySelector) GetRouteType ¶
func (x *EntitySelector) GetRouteType() int32
func (*EntitySelector) GetStopId ¶
func (x *EntitySelector) GetStopId() string
func (*EntitySelector) GetTrip ¶
func (x *EntitySelector) GetTrip() *TripDescriptor
func (*EntitySelector) ProtoMessage ¶
func (*EntitySelector) ProtoMessage()
func (*EntitySelector) ProtoReflect ¶
func (x *EntitySelector) ProtoReflect() protoreflect.Message
func (*EntitySelector) Reset ¶
func (x *EntitySelector) Reset()
func (*EntitySelector) String ¶
func (x *EntitySelector) String() string
type FeedEntity ¶
type FeedEntity struct { // The ids are used only to provide incrementality support. The id should be // unique within a FeedMessage. Consequent FeedMessages may contain // FeedEntities with the same id. In case of a DIFFERENTIAL update the new // FeedEntity with some id will replace the old FeedEntity with the same id // (or delete it - see is_deleted below). // The actual GTFS entities (e.g. stations, routes, trips) referenced by the // feed must be specified by explicit selectors (see EntitySelector below for // more info). Id *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"` // Whether this entity is to be deleted. Relevant only for incremental // fetches. IsDeleted *bool `protobuf:"varint,2,opt,name=is_deleted,json=isDeleted,def=0" json:"is_deleted,omitempty"` // Data about the entity itself. Exactly one of the following fields must be // present (unless the entity is being deleted). TripUpdate *TripUpdate `protobuf:"bytes,3,opt,name=trip_update,json=tripUpdate" json:"trip_update,omitempty"` Vehicle *VehiclePosition `protobuf:"bytes,4,opt,name=vehicle" json:"vehicle,omitempty"` Alert *Alert `protobuf:"bytes,5,opt,name=alert" json:"alert,omitempty"` // contains filtered or unexported fields }
A definition (or update) of an entity in the transit feed.
func (*FeedEntity) Descriptor
deprecated
func (*FeedEntity) Descriptor() ([]byte, []int)
Deprecated: Use FeedEntity.ProtoReflect.Descriptor instead.
func (*FeedEntity) GetAlert ¶
func (x *FeedEntity) GetAlert() *Alert
func (*FeedEntity) GetId ¶
func (x *FeedEntity) GetId() string
func (*FeedEntity) GetIsDeleted ¶
func (x *FeedEntity) GetIsDeleted() bool
func (*FeedEntity) GetTripUpdate ¶
func (x *FeedEntity) GetTripUpdate() *TripUpdate
func (*FeedEntity) GetVehicle ¶
func (x *FeedEntity) GetVehicle() *VehiclePosition
func (*FeedEntity) ProtoMessage ¶
func (*FeedEntity) ProtoMessage()
func (*FeedEntity) ProtoReflect ¶
func (x *FeedEntity) ProtoReflect() protoreflect.Message
func (*FeedEntity) Reset ¶
func (x *FeedEntity) Reset()
func (*FeedEntity) String ¶
func (x *FeedEntity) String() string
type FeedHeader ¶
type FeedHeader struct { // Version of the feed specification. // The current version is 2.0. Valid versions are "2.0", "1.0". GtfsRealtimeVersion *string `protobuf:"bytes,1,req,name=gtfs_realtime_version,json=gtfsRealtimeVersion" json:"gtfs_realtime_version,omitempty"` Incrementality *FeedHeader_Incrementality `` /* 129-byte string literal not displayed */ // This timestamp identifies the moment when the content of this feed has been // created (in server time). In POSIX time (i.e., number of seconds since // January 1st 1970 00:00:00 UTC). Timestamp *uint64 `protobuf:"varint,3,opt,name=timestamp" json:"timestamp,omitempty"` // contains filtered or unexported fields }
Metadata about a feed, included in feed messages.
func (*FeedHeader) Descriptor
deprecated
func (*FeedHeader) Descriptor() ([]byte, []int)
Deprecated: Use FeedHeader.ProtoReflect.Descriptor instead.
func (*FeedHeader) GetGtfsRealtimeVersion ¶
func (x *FeedHeader) GetGtfsRealtimeVersion() string
func (*FeedHeader) GetIncrementality ¶
func (x *FeedHeader) GetIncrementality() FeedHeader_Incrementality
func (*FeedHeader) GetTimestamp ¶
func (x *FeedHeader) GetTimestamp() uint64
func (*FeedHeader) ProtoMessage ¶
func (*FeedHeader) ProtoMessage()
func (*FeedHeader) ProtoReflect ¶
func (x *FeedHeader) ProtoReflect() protoreflect.Message
func (*FeedHeader) Reset ¶
func (x *FeedHeader) Reset()
func (*FeedHeader) String ¶
func (x *FeedHeader) String() string
type FeedHeader_Incrementality ¶
type FeedHeader_Incrementality int32
Determines whether the current fetch is incremental. Currently, DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds that use this mode. There are discussions on the GTFS Realtime mailing list around fully specifying the behavior of DIFFERENTIAL mode and the documentation will be updated when those discussions are finalized.
const ( FeedHeader_FULL_DATASET FeedHeader_Incrementality = 0 FeedHeader_DIFFERENTIAL FeedHeader_Incrementality = 1 )
func (FeedHeader_Incrementality) Descriptor ¶
func (FeedHeader_Incrementality) Descriptor() protoreflect.EnumDescriptor
func (FeedHeader_Incrementality) Enum ¶
func (x FeedHeader_Incrementality) Enum() *FeedHeader_Incrementality
func (FeedHeader_Incrementality) EnumDescriptor
deprecated
func (FeedHeader_Incrementality) EnumDescriptor() ([]byte, []int)
Deprecated: Use FeedHeader_Incrementality.Descriptor instead.
func (FeedHeader_Incrementality) Number ¶
func (x FeedHeader_Incrementality) Number() protoreflect.EnumNumber
func (FeedHeader_Incrementality) String ¶
func (x FeedHeader_Incrementality) String() string
func (FeedHeader_Incrementality) Type ¶
func (FeedHeader_Incrementality) Type() protoreflect.EnumType
func (*FeedHeader_Incrementality) UnmarshalJSON
deprecated
func (x *FeedHeader_Incrementality) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type FeedMessage ¶
type FeedMessage struct { // Metadata about this feed and feed message. Header *FeedHeader `protobuf:"bytes,1,req,name=header" json:"header,omitempty"` // Contents of the feed. Entity []*FeedEntity `protobuf:"bytes,2,rep,name=entity" json:"entity,omitempty"` // contains filtered or unexported fields }
The contents of a feed message. A feed is a continuous stream of feed messages. Each message in the stream is obtained as a response to an appropriate HTTP GET request. A realtime feed is always defined with relation to an existing GTFS feed. All the entity ids are resolved with respect to the GTFS feed. Note that "required" and "optional" as stated in this file refer to Protocol Buffer cardinality, not semantic cardinality. See reference.md at https://github.com/google/transit/tree/master/gtfs-realtime for field semantic cardinality.
func (*FeedMessage) Descriptor
deprecated
func (*FeedMessage) Descriptor() ([]byte, []int)
Deprecated: Use FeedMessage.ProtoReflect.Descriptor instead.
func (*FeedMessage) GetEntity ¶
func (x *FeedMessage) GetEntity() []*FeedEntity
func (*FeedMessage) GetHeader ¶
func (x *FeedMessage) GetHeader() *FeedHeader
func (*FeedMessage) ProtoMessage ¶
func (*FeedMessage) ProtoMessage()
func (*FeedMessage) ProtoReflect ¶
func (x *FeedMessage) ProtoReflect() protoreflect.Message
func (*FeedMessage) Reset ¶
func (x *FeedMessage) Reset()
func (*FeedMessage) String ¶
func (x *FeedMessage) String() string
type MercuryAlert ¶ added in v0.1.8
type MercuryAlert struct { CreatedAt *uint64 `protobuf:"varint,1,req,name=created_at,json=createdAt" json:"created_at,omitempty"` UpdatedAt *uint64 `protobuf:"varint,2,req,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` AlertType *string `protobuf:"bytes,3,req,name=alert_type,json=alertType" json:"alert_type,omitempty"` StationAlternative []*MercuryStationAlternative `protobuf:"bytes,4,rep,name=station_alternative,json=stationAlternative" json:"station_alternative,omitempty"` ServicePlanNumber []string `protobuf:"bytes,5,rep,name=service_plan_number,json=servicePlanNumber" json:"service_plan_number,omitempty"` GeneralOrderNumber []string `protobuf:"bytes,6,rep,name=general_order_number,json=generalOrderNumber" json:"general_order_number,omitempty"` // A time interval, in seconds, indicating how long before each active period // consumers should display this alert. A value of 3600 here, for example, // suggests that this alert should be displayed 1 hour before each active // period. Consumers may choose to ignore this recommendation and display (or // not display) alerts based on their own logic if they so choose. DisplayBeforeActive *uint64 `protobuf:"varint,7,opt,name=display_before_active,json=displayBeforeActive" json:"display_before_active,omitempty"` // A human-friendly string that summarizes all active periods for this Alert, // i.e. "Sundays in May from 10:45pm to midnight" HumanReadableActivePeriod *TranslatedString `` /* 133-byte string literal not displayed */ Directionality *uint64 `protobuf:"varint,9,opt,name=directionality" json:"directionality,omitempty"` AffectedStations []*EntitySelector `protobuf:"bytes,10,rep,name=affected_stations,json=affectedStations" json:"affected_stations,omitempty"` ScreensSummary *TranslatedString `protobuf:"bytes,11,opt,name=screens_summary,json=screensSummary" json:"screens_summary,omitempty"` NoAffectedStations *bool `protobuf:"varint,12,opt,name=no_affected_stations,json=noAffectedStations" json:"no_affected_stations,omitempty"` // The ids of the planned work cloned from CloneId *string `protobuf:"bytes,13,opt,name=clone_id,json=cloneId" json:"clone_id,omitempty"` // contains filtered or unexported fields }
Mercury extensions for the Feed Alert
func (*MercuryAlert) Descriptor
deprecated
added in
v0.1.8
func (*MercuryAlert) Descriptor() ([]byte, []int)
Deprecated: Use MercuryAlert.ProtoReflect.Descriptor instead.
func (*MercuryAlert) GetAffectedStations ¶ added in v0.1.8
func (x *MercuryAlert) GetAffectedStations() []*EntitySelector
func (*MercuryAlert) GetAlertType ¶ added in v0.1.8
func (x *MercuryAlert) GetAlertType() string
func (*MercuryAlert) GetCloneId ¶ added in v0.1.8
func (x *MercuryAlert) GetCloneId() string
func (*MercuryAlert) GetCreatedAt ¶ added in v0.1.8
func (x *MercuryAlert) GetCreatedAt() uint64
func (*MercuryAlert) GetDirectionality ¶ added in v0.1.8
func (x *MercuryAlert) GetDirectionality() uint64
func (*MercuryAlert) GetDisplayBeforeActive ¶ added in v0.1.8
func (x *MercuryAlert) GetDisplayBeforeActive() uint64
func (*MercuryAlert) GetGeneralOrderNumber ¶ added in v0.1.8
func (x *MercuryAlert) GetGeneralOrderNumber() []string
func (*MercuryAlert) GetHumanReadableActivePeriod ¶ added in v0.1.8
func (x *MercuryAlert) GetHumanReadableActivePeriod() *TranslatedString
func (*MercuryAlert) GetNoAffectedStations ¶ added in v0.1.8
func (x *MercuryAlert) GetNoAffectedStations() bool
func (*MercuryAlert) GetScreensSummary ¶ added in v0.1.8
func (x *MercuryAlert) GetScreensSummary() *TranslatedString
func (*MercuryAlert) GetServicePlanNumber ¶ added in v0.1.8
func (x *MercuryAlert) GetServicePlanNumber() []string
func (*MercuryAlert) GetStationAlternative ¶ added in v0.1.8
func (x *MercuryAlert) GetStationAlternative() []*MercuryStationAlternative
func (*MercuryAlert) GetUpdatedAt ¶ added in v0.1.8
func (x *MercuryAlert) GetUpdatedAt() uint64
func (*MercuryAlert) ProtoMessage ¶ added in v0.1.8
func (*MercuryAlert) ProtoMessage()
func (*MercuryAlert) ProtoReflect ¶ added in v0.1.8
func (x *MercuryAlert) ProtoReflect() protoreflect.Message
func (*MercuryAlert) Reset ¶ added in v0.1.8
func (x *MercuryAlert) Reset()
func (*MercuryAlert) String ¶ added in v0.1.8
func (x *MercuryAlert) String() string
type MercuryEntitySelector ¶ added in v0.1.8
type MercuryEntitySelector struct { // Format for sort_order is 'GTFS-ID:Priority', e.g. 'MTASBWY:G:16' SortOrder *string `protobuf:"bytes,1,req,name=sort_order,json=sortOrder" json:"sort_order,omitempty"` // contains filtered or unexported fields }
Mercury extensions for the Feed Entity Selector
func (*MercuryEntitySelector) Descriptor
deprecated
added in
v0.1.8
func (*MercuryEntitySelector) Descriptor() ([]byte, []int)
Deprecated: Use MercuryEntitySelector.ProtoReflect.Descriptor instead.
func (*MercuryEntitySelector) GetSortOrder ¶ added in v0.1.8
func (x *MercuryEntitySelector) GetSortOrder() string
func (*MercuryEntitySelector) ProtoMessage ¶ added in v0.1.8
func (*MercuryEntitySelector) ProtoMessage()
func (*MercuryEntitySelector) ProtoReflect ¶ added in v0.1.8
func (x *MercuryEntitySelector) ProtoReflect() protoreflect.Message
func (*MercuryEntitySelector) Reset ¶ added in v0.1.8
func (x *MercuryEntitySelector) Reset()
func (*MercuryEntitySelector) String ¶ added in v0.1.8
func (x *MercuryEntitySelector) String() string
type MercuryEntitySelector_Priority ¶ added in v0.1.8
type MercuryEntitySelector_Priority int32
const ( MercuryEntitySelector_PRIORITY_NO_SCHEDULED_SERVICE MercuryEntitySelector_Priority = 1 MercuryEntitySelector_PRIORITY_NO_MIDDAY_SERVICE MercuryEntitySelector_Priority = 2 MercuryEntitySelector_PRIORITY_NO_OVERNIGHT_SERVICE MercuryEntitySelector_Priority = 3 MercuryEntitySelector_PRIORITY_NO_WEEKEND_SERVICE MercuryEntitySelector_Priority = 4 MercuryEntitySelector_PRIORITY_WEEKDAY_SCHEDULE MercuryEntitySelector_Priority = 5 MercuryEntitySelector_PRIORITY_WEEKEND_SCHEDULE MercuryEntitySelector_Priority = 6 MercuryEntitySelector_PRIORITY_SATURDAY_SCHEDULE MercuryEntitySelector_Priority = 7 MercuryEntitySelector_PRIORITY_SUNDAY_SCHEDULE MercuryEntitySelector_Priority = 8 MercuryEntitySelector_PRIORITY_EXTRA_SERVICE MercuryEntitySelector_Priority = 9 MercuryEntitySelector_PRIORITY_SPECIAL_SCHEDULE MercuryEntitySelector_Priority = 10 MercuryEntitySelector_PRIORITY_STATION_NOTICE MercuryEntitySelector_Priority = 11 MercuryEntitySelector_PRIORITY_SPECIAL_EVENT MercuryEntitySelector_Priority = 12 MercuryEntitySelector_PRIORITY_PLANNED_BOARDING_CHANGE MercuryEntitySelector_Priority = 13 MercuryEntitySelector_PRIORITY_BOARDING_CHANGE MercuryEntitySelector_Priority = 14 MercuryEntitySelector_PRIORITY_REDUCED_SERVICE MercuryEntitySelector_Priority = 15 MercuryEntitySelector_PRIORITY_PLANNED_WORK MercuryEntitySelector_Priority = 16 MercuryEntitySelector_PRIORITY_PLANNED_STATIONS_SKIPPED MercuryEntitySelector_Priority = 17 MercuryEntitySelector_PRIORITY_PLANNED_EXPRESS_TO_LOCAL MercuryEntitySelector_Priority = 18 MercuryEntitySelector_PRIORITY_SLOW_SPEEDS MercuryEntitySelector_Priority = 19 MercuryEntitySelector_PRIORITY_EXPECT_DELAYS MercuryEntitySelector_Priority = 20 MercuryEntitySelector_PRIORITY_PLANNED_LOCAL_TO_EXPRESS MercuryEntitySelector_Priority = 21 MercuryEntitySelector_PRIORITY_PLANNED_BUSES_DETOURED MercuryEntitySelector_Priority = 22 MercuryEntitySelector_PRIORITY_PLANNED_TRAINS_REROUTED MercuryEntitySelector_Priority = 23 MercuryEntitySelector_PRIORITY_PLANNED_SUBSTITUTE_BUSES MercuryEntitySelector_Priority = 24 MercuryEntitySelector_PRIORITY_PLANNED_PART_SUSPENDED MercuryEntitySelector_Priority = 25 MercuryEntitySelector_PRIORITY_PLANNED_MULTIPLE_CHANGES MercuryEntitySelector_Priority = 26 MercuryEntitySelector_PRIORITY_SOME_DELAYS MercuryEntitySelector_Priority = 27 MercuryEntitySelector_PRIORITY_STATIONS_SKIPPED MercuryEntitySelector_Priority = 28 MercuryEntitySelector_PRIORITY_EXPRESS_TO_LOCAL MercuryEntitySelector_Priority = 29 MercuryEntitySelector_PRIORITY_DELAYS MercuryEntitySelector_Priority = 30 MercuryEntitySelector_PRIORITY_SOME_REROUTES MercuryEntitySelector_Priority = 31 MercuryEntitySelector_PRIORITY_LOCAL_TO_EXPRESS MercuryEntitySelector_Priority = 32 MercuryEntitySelector_PRIORITY_BUSES_DETOURED MercuryEntitySelector_Priority = 33 MercuryEntitySelector_PRIORITY_SERVICE_CHANGE MercuryEntitySelector_Priority = 34 MercuryEntitySelector_PRIORITY_TRAINS_REROUTED MercuryEntitySelector_Priority = 35 MercuryEntitySelector_PRIORITY_SUBSTITUTE_BUSES MercuryEntitySelector_Priority = 36 MercuryEntitySelector_PRIORITY_PART_SUSPENDED MercuryEntitySelector_Priority = 37 MercuryEntitySelector_PRIORITY_MULTIPLE_CHANGES MercuryEntitySelector_Priority = 38 MercuryEntitySelector_PRIORITY_PLANNED_SUSPENDED MercuryEntitySelector_Priority = 39 MercuryEntitySelector_PRIORITY_SUSPENDED MercuryEntitySelector_Priority = 40 )
func (MercuryEntitySelector_Priority) Descriptor ¶ added in v0.1.8
func (MercuryEntitySelector_Priority) Descriptor() protoreflect.EnumDescriptor
func (MercuryEntitySelector_Priority) Enum ¶ added in v0.1.8
func (x MercuryEntitySelector_Priority) Enum() *MercuryEntitySelector_Priority
func (MercuryEntitySelector_Priority) EnumDescriptor
deprecated
added in
v0.1.8
func (MercuryEntitySelector_Priority) EnumDescriptor() ([]byte, []int)
Deprecated: Use MercuryEntitySelector_Priority.Descriptor instead.
func (MercuryEntitySelector_Priority) Number ¶ added in v0.1.8
func (x MercuryEntitySelector_Priority) Number() protoreflect.EnumNumber
func (MercuryEntitySelector_Priority) String ¶ added in v0.1.8
func (x MercuryEntitySelector_Priority) String() string
func (MercuryEntitySelector_Priority) Type ¶ added in v0.1.8
func (MercuryEntitySelector_Priority) Type() protoreflect.EnumType
func (*MercuryEntitySelector_Priority) UnmarshalJSON
deprecated
added in
v0.1.8
func (x *MercuryEntitySelector_Priority) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type MercuryFeedHeader ¶ added in v0.1.8
type MercuryFeedHeader struct { // Version of the Mercury extensions // The current version is 1.0 MercuryVersion *string `protobuf:"bytes,1,req,name=mercury_version,json=mercuryVersion" json:"mercury_version,omitempty"` // contains filtered or unexported fields }
Mercury extensions for the Feed Header
func (*MercuryFeedHeader) Descriptor
deprecated
added in
v0.1.8
func (*MercuryFeedHeader) Descriptor() ([]byte, []int)
Deprecated: Use MercuryFeedHeader.ProtoReflect.Descriptor instead.
func (*MercuryFeedHeader) GetMercuryVersion ¶ added in v0.1.8
func (x *MercuryFeedHeader) GetMercuryVersion() string
func (*MercuryFeedHeader) ProtoMessage ¶ added in v0.1.8
func (*MercuryFeedHeader) ProtoMessage()
func (*MercuryFeedHeader) ProtoReflect ¶ added in v0.1.8
func (x *MercuryFeedHeader) ProtoReflect() protoreflect.Message
func (*MercuryFeedHeader) Reset ¶ added in v0.1.8
func (x *MercuryFeedHeader) Reset()
func (*MercuryFeedHeader) String ¶ added in v0.1.8
func (x *MercuryFeedHeader) String() string
type MercuryStationAlternative ¶ added in v0.1.8
type MercuryStationAlternative struct { AffectedEntity *EntitySelector `protobuf:"bytes,1,req,name=affected_entity,json=affectedEntity" json:"affected_entity,omitempty"` Notes *TranslatedString `protobuf:"bytes,2,req,name=notes" json:"notes,omitempty"` // contains filtered or unexported fields }
func (*MercuryStationAlternative) Descriptor
deprecated
added in
v0.1.8
func (*MercuryStationAlternative) Descriptor() ([]byte, []int)
Deprecated: Use MercuryStationAlternative.ProtoReflect.Descriptor instead.
func (*MercuryStationAlternative) GetAffectedEntity ¶ added in v0.1.8
func (x *MercuryStationAlternative) GetAffectedEntity() *EntitySelector
func (*MercuryStationAlternative) GetNotes ¶ added in v0.1.8
func (x *MercuryStationAlternative) GetNotes() *TranslatedString
func (*MercuryStationAlternative) ProtoMessage ¶ added in v0.1.8
func (*MercuryStationAlternative) ProtoMessage()
func (*MercuryStationAlternative) ProtoReflect ¶ added in v0.1.8
func (x *MercuryStationAlternative) ProtoReflect() protoreflect.Message
func (*MercuryStationAlternative) Reset ¶ added in v0.1.8
func (x *MercuryStationAlternative) Reset()
func (*MercuryStationAlternative) String ¶ added in v0.1.8
func (x *MercuryStationAlternative) String() string
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=transit_realtime.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 Position ¶
type Position struct { // Degrees North, in the WGS-84 coordinate system. Latitude *float32 `protobuf:"fixed32,1,req,name=latitude" json:"latitude,omitempty"` // Degrees East, in the WGS-84 coordinate system. Longitude *float32 `protobuf:"fixed32,2,req,name=longitude" json:"longitude,omitempty"` // Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East. // This can be the compass bearing, or the direction towards the next stop // or intermediate location. // This should not be direction deduced from the sequence of previous // positions, which can be computed from previous data. Bearing *float32 `protobuf:"fixed32,3,opt,name=bearing" json:"bearing,omitempty"` // Odometer value, in meters. Odometer *float64 `protobuf:"fixed64,4,opt,name=odometer" json:"odometer,omitempty"` // Momentary speed measured by the vehicle, in meters per second. Speed *float32 `protobuf:"fixed32,5,opt,name=speed" json:"speed,omitempty"` // contains filtered or unexported fields }
A position.
func (*Position) Descriptor
deprecated
func (*Position) GetBearing ¶
func (*Position) GetLatitude ¶
func (*Position) GetLongitude ¶
func (*Position) GetOdometer ¶
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type TimeRange ¶
type TimeRange struct { // Start time, in POSIX time (i.e., number of seconds since January 1st 1970 // 00:00:00 UTC). // If missing, the interval starts at minus infinity. Start *uint64 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` // End time, in POSIX time (i.e., number of seconds since January 1st 1970 // 00:00:00 UTC). // If missing, the interval ends at plus infinity. End *uint64 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` // contains filtered or unexported fields }
A time interval. The interval is considered active at time 't' if 't' is greater than or equal to the start time and less than the end time.
func (*TimeRange) Descriptor
deprecated
func (*TimeRange) ProtoMessage ¶
func (*TimeRange) ProtoMessage()
func (*TimeRange) ProtoReflect ¶
func (x *TimeRange) ProtoReflect() protoreflect.Message
type TranslatedString ¶
type TranslatedString struct { // At least one translation must be provided. Translation []*TranslatedString_Translation `protobuf:"bytes,1,rep,name=translation" json:"translation,omitempty"` // contains filtered or unexported fields }
An internationalized message containing per-language versions of a snippet of text or a URL. One of the strings from a message will be picked up. The resolution proceeds as follows:
- If the UI language matches the language code of a translation, the first matching translation is picked.
- If a default UI language (e.g., English) matches the language code of a translation, the first matching translation is picked.
- If some translation has an unspecified language code, that translation is picked.
func (*TranslatedString) Descriptor
deprecated
func (*TranslatedString) Descriptor() ([]byte, []int)
Deprecated: Use TranslatedString.ProtoReflect.Descriptor instead.
func (*TranslatedString) GetTranslation ¶
func (x *TranslatedString) GetTranslation() []*TranslatedString_Translation
func (*TranslatedString) ProtoMessage ¶
func (*TranslatedString) ProtoMessage()
func (*TranslatedString) ProtoReflect ¶
func (x *TranslatedString) ProtoReflect() protoreflect.Message
func (*TranslatedString) Reset ¶
func (x *TranslatedString) Reset()
func (*TranslatedString) String ¶
func (x *TranslatedString) String() string
type TranslatedString_Translation ¶
type TranslatedString_Translation struct { // A UTF-8 string containing the message. Text *string `protobuf:"bytes,1,req,name=text" json:"text,omitempty"` // BCP-47 language code. Can be omitted if the language is unknown or if // no i18n is done at all for the feed. At most one translation is // allowed to have an unspecified language tag. Language *string `protobuf:"bytes,2,opt,name=language" json:"language,omitempty"` // contains filtered or unexported fields }
func (*TranslatedString_Translation) Descriptor
deprecated
func (*TranslatedString_Translation) Descriptor() ([]byte, []int)
Deprecated: Use TranslatedString_Translation.ProtoReflect.Descriptor instead.
func (*TranslatedString_Translation) GetLanguage ¶
func (x *TranslatedString_Translation) GetLanguage() string
func (*TranslatedString_Translation) GetText ¶
func (x *TranslatedString_Translation) GetText() string
func (*TranslatedString_Translation) ProtoMessage ¶
func (*TranslatedString_Translation) ProtoMessage()
func (*TranslatedString_Translation) ProtoReflect ¶
func (x *TranslatedString_Translation) ProtoReflect() protoreflect.Message
func (*TranslatedString_Translation) Reset ¶
func (x *TranslatedString_Translation) Reset()
func (*TranslatedString_Translation) String ¶
func (x *TranslatedString_Translation) String() string
type TripDescriptor ¶
type TripDescriptor struct { // The trip_id from the GTFS feed that this selector refers to. // For non frequency-based trips, this field is enough to uniquely identify // the trip. For frequency-based trip, start_time and start_date might also be // necessary. TripId *string `protobuf:"bytes,1,opt,name=trip_id,json=tripId" json:"trip_id,omitempty"` // The route_id from the GTFS that this selector refers to. RouteId *string `protobuf:"bytes,5,opt,name=route_id,json=routeId" json:"route_id,omitempty"` // The direction_id from the GTFS feed trips.txt file, indicating the // direction of travel for trips this selector refers to. DirectionId *uint32 `protobuf:"varint,6,opt,name=direction_id,json=directionId" json:"direction_id,omitempty"` // The initially scheduled start time of this trip instance. // When the trip_id corresponds to a non-frequency-based trip, this field // should either be omitted or be equal to the value in the GTFS feed. When // the trip_id correponds to a frequency-based trip, the start_time must be // specified for trip updates and vehicle positions. If the trip corresponds // to exact_times=1 GTFS record, then start_time must be some multiple // (including zero) of headway_secs later than frequencies.txt start_time for // the corresponding time period. If the trip corresponds to exact_times=0, // then its start_time may be arbitrary, and is initially expected to be the // first departure of the trip. Once established, the start_time of this // frequency-based trip should be considered immutable, even if the first // departure time changes -- that time change may instead be reflected in a // StopTimeUpdate. // Format and semantics of the field is same as that of // GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35. StartTime *string `protobuf:"bytes,2,opt,name=start_time,json=startTime" json:"start_time,omitempty"` // The scheduled start date of this trip instance. // Must be provided to disambiguate trips that are so late as to collide with // a scheduled trip on a next day. For example, for a train that departs 8:00 // and 20:00 every day, and is 12 hours late, there would be two distinct // trips on the same time. // This field can be provided but is not mandatory for schedules in which such // collisions are impossible - for example, a service running on hourly // schedule where a vehicle that is one hour late is not considered to be // related to schedule anymore. // In YYYYMMDD format. StartDate *string `protobuf:"bytes,3,opt,name=start_date,json=startDate" json:"start_date,omitempty"` ScheduleRelationship *TripDescriptor_ScheduleRelationship `` /* 173-byte string literal not displayed */ // contains filtered or unexported fields }
A descriptor that identifies an instance of a GTFS trip, or all instances of a trip along a route.
- To specify a single trip instance, the trip_id (and if necessary, start_time) is set. If route_id is also set, then it should be same as one that the given trip corresponds to.
- To specify all the trips along a given route, only the route_id should be set. Note that if the trip_id is not known, then stop sequence ids in TripUpdate are not sufficient, and stop_ids must be provided as well. In addition, absolute arrival/departure times must be provided.
func (*TripDescriptor) Descriptor
deprecated
func (*TripDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use TripDescriptor.ProtoReflect.Descriptor instead.
func (*TripDescriptor) GetDirectionId ¶
func (x *TripDescriptor) GetDirectionId() uint32
func (*TripDescriptor) GetRouteId ¶
func (x *TripDescriptor) GetRouteId() string
func (*TripDescriptor) GetScheduleRelationship ¶
func (x *TripDescriptor) GetScheduleRelationship() TripDescriptor_ScheduleRelationship
func (*TripDescriptor) GetStartDate ¶
func (x *TripDescriptor) GetStartDate() string
func (*TripDescriptor) GetStartTime ¶
func (x *TripDescriptor) GetStartTime() string
func (*TripDescriptor) GetTripId ¶
func (x *TripDescriptor) GetTripId() string
func (*TripDescriptor) ProtoMessage ¶
func (*TripDescriptor) ProtoMessage()
func (*TripDescriptor) ProtoReflect ¶
func (x *TripDescriptor) ProtoReflect() protoreflect.Message
func (*TripDescriptor) Reset ¶
func (x *TripDescriptor) Reset()
func (*TripDescriptor) String ¶
func (x *TripDescriptor) String() string
type TripDescriptor_ScheduleRelationship ¶
type TripDescriptor_ScheduleRelationship int32
The relation between this trip and the static schedule. If a trip is done in accordance with temporary schedule, not reflected in GTFS, then it shouldn't be marked as SCHEDULED, but likely as ADDED.
const ( // Trip that is running in accordance with its GTFS schedule, or is close // enough to the scheduled trip to be associated with it. TripDescriptor_SCHEDULED TripDescriptor_ScheduleRelationship = 0 // An extra trip that was added in addition to a running schedule, for // example, to replace a broken vehicle or to respond to sudden passenger // load. TripDescriptor_ADDED TripDescriptor_ScheduleRelationship = 1 // A trip that is running with no schedule associated to it (GTFS frequencies.txt exact_times=0). // Trips with ScheduleRelationship=UNSCHEDULED must also set all StopTimeUpdates.ScheduleRelationship=UNSCHEDULED. TripDescriptor_UNSCHEDULED TripDescriptor_ScheduleRelationship = 2 // A trip that existed in the schedule but was removed. TripDescriptor_CANCELED TripDescriptor_ScheduleRelationship = 3 // Should not be used - for backwards-compatibility only. // // Deprecated: Do not use. TripDescriptor_REPLACEMENT TripDescriptor_ScheduleRelationship = 5 )
func (TripDescriptor_ScheduleRelationship) Descriptor ¶
func (TripDescriptor_ScheduleRelationship) Descriptor() protoreflect.EnumDescriptor
func (TripDescriptor_ScheduleRelationship) Enum ¶
func (x TripDescriptor_ScheduleRelationship) Enum() *TripDescriptor_ScheduleRelationship
func (TripDescriptor_ScheduleRelationship) EnumDescriptor
deprecated
func (TripDescriptor_ScheduleRelationship) EnumDescriptor() ([]byte, []int)
Deprecated: Use TripDescriptor_ScheduleRelationship.Descriptor instead.
func (TripDescriptor_ScheduleRelationship) Number ¶
func (x TripDescriptor_ScheduleRelationship) Number() protoreflect.EnumNumber
func (TripDescriptor_ScheduleRelationship) String ¶
func (x TripDescriptor_ScheduleRelationship) String() string
func (TripDescriptor_ScheduleRelationship) Type ¶
func (TripDescriptor_ScheduleRelationship) Type() protoreflect.EnumType
func (*TripDescriptor_ScheduleRelationship) UnmarshalJSON
deprecated
func (x *TripDescriptor_ScheduleRelationship) 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 *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() *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
type TripUpdate ¶
type TripUpdate struct { // The Trip that this message applies to. There can be at most one // TripUpdate entity for each actual trip instance. // If there is none, that means there is no prediction information available. // It does *not* mean that the trip is progressing according to schedule. Trip *TripDescriptor `protobuf:"bytes,1,req,name=trip" json:"trip,omitempty"` // Additional information on the vehicle that is serving this trip. Vehicle *VehicleDescriptor `protobuf:"bytes,3,opt,name=vehicle" json:"vehicle,omitempty"` // Updates to StopTimes for the trip (both future, i.e., predictions, and in // some cases, past ones, i.e., those that already happened). // The updates must be sorted by stop_sequence, and apply for all the // following stops of the trip up to the next specified one. // // Example 1: // For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure // delay of 0 for stop_sequence of the current stop means that the trip is // exactly on time. // // Example 2: // For the same trip instance, 3 StopTimeUpdates are provided: // - delay of 5 min for stop_sequence 3 // - delay of 1 min for stop_sequence 8 // - delay of unspecified duration for stop_sequence 10 // This will be interpreted as: // - stop_sequences 3,4,5,6,7 have delay of 5 min. // - stop_sequences 8,9 have delay of 1 min. // - stop_sequences 10,... have unknown delay. StopTimeUpdate []*TripUpdate_StopTimeUpdate `protobuf:"bytes,2,rep,name=stop_time_update,json=stopTimeUpdate" json:"stop_time_update,omitempty"` // Moment at which the vehicle's real-time progress was measured. In POSIX // time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC). Timestamp *uint64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` // The current schedule deviation for the trip. Delay should only be // specified when the prediction is given relative to some existing schedule // in GTFS. // // Delay (in seconds) can be positive (meaning that the vehicle is late) or // negative (meaning that the vehicle is ahead of schedule). Delay of 0 // means that the vehicle is exactly on time. // // Delay information in StopTimeUpdates take precedent of trip-level delay // information, such that trip-level delay is only propagated until the next // stop along the trip with a StopTimeUpdate delay value specified. // // Feed providers are strongly encouraged to provide a TripUpdate.timestamp // value indicating when the delay value was last updated, in order to // evaluate the freshness of the data. // // NOTE: This field is still experimental, and subject to change. It may be // formally adopted in the future. Delay *int32 `protobuf:"varint,5,opt,name=delay" json:"delay,omitempty"` // contains filtered or unexported fields }
Realtime update of the progress of a vehicle along a trip. Depending on the value of ScheduleRelationship, a TripUpdate can specify: - A trip that proceeds along the schedule. - A trip that proceeds along a route but has no fixed schedule. - A trip that have been added or removed with regard to schedule.
The updates can be for future, predicted arrival/departure events, or for past events that already occurred. Normally, updates should get more precise and more certain (see uncertainty below) as the events gets closer to current time. Even if that is not possible, the information for past events should be precise and certain. In particular, if an update points to time in the past but its update's uncertainty is not 0, the client should conclude that the update is a (wrong) prediction and that the trip has not completed yet.
Note that the update can describe a trip that is already completed. To this end, it is enough to provide an update for the last stop of the trip. If the time of that is in the past, the client will conclude from that that the whole trip is in the past (it is possible, although inconsequential, to also provide updates for preceding stops). This option is most relevant for a trip that has completed ahead of schedule, but according to the schedule, the trip is still proceeding at the current time. Removing the updates for this trip could make the client assume that the trip is still proceeding. Note that the feed provider is allowed, but not required, to purge past updates - this is one case where this would be practically useful.
func (*TripUpdate) Descriptor
deprecated
func (*TripUpdate) Descriptor() ([]byte, []int)
Deprecated: Use TripUpdate.ProtoReflect.Descriptor instead.
func (*TripUpdate) GetDelay ¶
func (x *TripUpdate) GetDelay() int32
func (*TripUpdate) GetStopTimeUpdate ¶
func (x *TripUpdate) GetStopTimeUpdate() []*TripUpdate_StopTimeUpdate
func (*TripUpdate) GetTimestamp ¶
func (x *TripUpdate) GetTimestamp() uint64
func (*TripUpdate) GetTrip ¶
func (x *TripUpdate) GetTrip() *TripDescriptor
func (*TripUpdate) GetVehicle ¶
func (x *TripUpdate) GetVehicle() *VehicleDescriptor
func (*TripUpdate) ProtoMessage ¶
func (*TripUpdate) ProtoMessage()
func (*TripUpdate) ProtoReflect ¶
func (x *TripUpdate) ProtoReflect() protoreflect.Message
func (*TripUpdate) Reset ¶
func (x *TripUpdate) Reset()
func (*TripUpdate) String ¶
func (x *TripUpdate) String() string
type TripUpdate_StopTimeEvent ¶
type TripUpdate_StopTimeEvent struct { // Delay (in seconds) can be positive (meaning that the vehicle is late) or // negative (meaning that the vehicle is ahead of schedule). Delay of 0 // means that the vehicle is exactly on time. Delay *int32 `protobuf:"varint,1,opt,name=delay" json:"delay,omitempty"` // Event as absolute time. // In Unix time (i.e., number of seconds since January 1st 1970 00:00:00 // UTC). Time *int64 `protobuf:"varint,2,opt,name=time" json:"time,omitempty"` // If uncertainty is omitted, it is interpreted as unknown. // If the prediction is unknown or too uncertain, the delay (or time) field // should be empty. In such case, the uncertainty field is ignored. // To specify a completely certain prediction, set its uncertainty to 0. Uncertainty *int32 `protobuf:"varint,3,opt,name=uncertainty" json:"uncertainty,omitempty"` // contains filtered or unexported fields }
Timing information for a single predicted event (either arrival or departure). Timing consists of delay and/or estimated time, and uncertainty.
- delay should be used when the prediction is given relative to some existing schedule in GTFS.
- time should be given whether there is a predicted schedule or not. If both time and delay are specified, time will take precedence (although normally, time, if given for a scheduled trip, should be equal to scheduled time in GTFS + delay).
Uncertainty applies equally to both time and delay. The uncertainty roughly specifies the expected error in true delay (but note, we don't yet define its precise statistical meaning). It's possible for the uncertainty to be 0, for example for trains that are driven under computer timing control.
func (*TripUpdate_StopTimeEvent) Descriptor
deprecated
func (*TripUpdate_StopTimeEvent) Descriptor() ([]byte, []int)
Deprecated: Use TripUpdate_StopTimeEvent.ProtoReflect.Descriptor instead.
func (*TripUpdate_StopTimeEvent) GetDelay ¶
func (x *TripUpdate_StopTimeEvent) GetDelay() int32
func (*TripUpdate_StopTimeEvent) GetTime ¶
func (x *TripUpdate_StopTimeEvent) GetTime() int64
func (*TripUpdate_StopTimeEvent) GetUncertainty ¶
func (x *TripUpdate_StopTimeEvent) GetUncertainty() int32
func (*TripUpdate_StopTimeEvent) ProtoMessage ¶
func (*TripUpdate_StopTimeEvent) ProtoMessage()
func (*TripUpdate_StopTimeEvent) ProtoReflect ¶
func (x *TripUpdate_StopTimeEvent) ProtoReflect() protoreflect.Message
func (*TripUpdate_StopTimeEvent) Reset ¶
func (x *TripUpdate_StopTimeEvent) Reset()
func (*TripUpdate_StopTimeEvent) String ¶
func (x *TripUpdate_StopTimeEvent) String() string
type TripUpdate_StopTimeUpdate ¶
type TripUpdate_StopTimeUpdate struct { // Must be the same as in stop_times.txt in the corresponding GTFS feed. StopSequence *uint32 `protobuf:"varint,1,opt,name=stop_sequence,json=stopSequence" json:"stop_sequence,omitempty"` // Must be the same as in stops.txt in the corresponding GTFS feed. StopId *string `protobuf:"bytes,4,opt,name=stop_id,json=stopId" json:"stop_id,omitempty"` Arrival *TripUpdate_StopTimeEvent `protobuf:"bytes,2,opt,name=arrival" json:"arrival,omitempty"` Departure *TripUpdate_StopTimeEvent `protobuf:"bytes,3,opt,name=departure" json:"departure,omitempty"` ScheduleRelationship *TripUpdate_StopTimeUpdate_ScheduleRelationship `` /* 190-byte string literal not displayed */ // contains filtered or unexported fields }
Realtime update for arrival and/or departure events for a given stop on a trip. Updates can be supplied for both past and future events. The producer is allowed, although not required, to drop past events.
func (*TripUpdate_StopTimeUpdate) Descriptor
deprecated
func (*TripUpdate_StopTimeUpdate) Descriptor() ([]byte, []int)
Deprecated: Use TripUpdate_StopTimeUpdate.ProtoReflect.Descriptor instead.
func (*TripUpdate_StopTimeUpdate) GetArrival ¶
func (x *TripUpdate_StopTimeUpdate) GetArrival() *TripUpdate_StopTimeEvent
func (*TripUpdate_StopTimeUpdate) GetDeparture ¶
func (x *TripUpdate_StopTimeUpdate) GetDeparture() *TripUpdate_StopTimeEvent
func (*TripUpdate_StopTimeUpdate) GetScheduleRelationship ¶
func (x *TripUpdate_StopTimeUpdate) GetScheduleRelationship() TripUpdate_StopTimeUpdate_ScheduleRelationship
func (*TripUpdate_StopTimeUpdate) GetStopId ¶
func (x *TripUpdate_StopTimeUpdate) GetStopId() string
func (*TripUpdate_StopTimeUpdate) GetStopSequence ¶
func (x *TripUpdate_StopTimeUpdate) GetStopSequence() uint32
func (*TripUpdate_StopTimeUpdate) ProtoMessage ¶
func (*TripUpdate_StopTimeUpdate) ProtoMessage()
func (*TripUpdate_StopTimeUpdate) ProtoReflect ¶
func (x *TripUpdate_StopTimeUpdate) ProtoReflect() protoreflect.Message
func (*TripUpdate_StopTimeUpdate) Reset ¶
func (x *TripUpdate_StopTimeUpdate) Reset()
func (*TripUpdate_StopTimeUpdate) String ¶
func (x *TripUpdate_StopTimeUpdate) String() string
type TripUpdate_StopTimeUpdate_ScheduleRelationship ¶
type TripUpdate_StopTimeUpdate_ScheduleRelationship int32
The relation between this StopTime and the static schedule.
const ( // The vehicle is proceeding in accordance with its static schedule of // stops, although not necessarily according to the times of the schedule. // At least one of arrival and departure must be provided. If the schedule // for this stop contains both arrival and departure times then so must // this update. Frequency-based trips (GTFS frequencies.txt with exact_times = 0) // should not have a SCHEDULED value and should use UNSCHEDULED instead. TripUpdate_StopTimeUpdate_SCHEDULED TripUpdate_StopTimeUpdate_ScheduleRelationship = 0 // The stop is skipped, i.e., the vehicle will not stop at this stop. // Arrival and departure are optional. TripUpdate_StopTimeUpdate_SKIPPED TripUpdate_StopTimeUpdate_ScheduleRelationship = 1 // No data is given for this stop. The main intention for this value is to // give the predictions only for part of a trip, i.e., if the last update // for a trip has a NO_DATA specifier, then StopTimes for the rest of the // stops in the trip are considered to be unspecified as well. // Neither arrival nor departure should be supplied. TripUpdate_StopTimeUpdate_NO_DATA TripUpdate_StopTimeUpdate_ScheduleRelationship = 2 // The vehicle is operating a trip defined in GTFS frequencies.txt with exact_times = 0. // This value should not be used for trips that are not defined in GTFS frequencies.txt, // or trips in GTFS frequencies.txt with exact_times = 1. Trips containing StopTimeUpdates // with ScheduleRelationship=UNSCHEDULED must also set TripDescriptor.ScheduleRelationship=UNSCHEDULED. // NOTE: This field is still experimental, and subject to change. It may be // formally adopted in the future. TripUpdate_StopTimeUpdate_UNSCHEDULED TripUpdate_StopTimeUpdate_ScheduleRelationship = 3 )
func (TripUpdate_StopTimeUpdate_ScheduleRelationship) Descriptor ¶
func (TripUpdate_StopTimeUpdate_ScheduleRelationship) Descriptor() protoreflect.EnumDescriptor
func (TripUpdate_StopTimeUpdate_ScheduleRelationship) EnumDescriptor
deprecated
func (TripUpdate_StopTimeUpdate_ScheduleRelationship) EnumDescriptor() ([]byte, []int)
Deprecated: Use TripUpdate_StopTimeUpdate_ScheduleRelationship.Descriptor instead.
func (TripUpdate_StopTimeUpdate_ScheduleRelationship) Number ¶
func (x TripUpdate_StopTimeUpdate_ScheduleRelationship) Number() protoreflect.EnumNumber
func (TripUpdate_StopTimeUpdate_ScheduleRelationship) String ¶
func (x TripUpdate_StopTimeUpdate_ScheduleRelationship) String() string
func (*TripUpdate_StopTimeUpdate_ScheduleRelationship) UnmarshalJSON
deprecated
func (x *TripUpdate_StopTimeUpdate_ScheduleRelationship) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type VehicleDescriptor ¶
type VehicleDescriptor struct { // Internal system identification of the vehicle. Should be unique per // vehicle, and can be used for tracking the vehicle as it proceeds through // the system. Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` // User visible label, i.e., something that must be shown to the passenger to // help identify the correct vehicle. Label *string `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"` // The license plate of the vehicle. LicensePlate *string `protobuf:"bytes,3,opt,name=license_plate,json=licensePlate" json:"license_plate,omitempty"` // contains filtered or unexported fields }
Identification information for the vehicle performing the trip.
func (*VehicleDescriptor) Descriptor
deprecated
func (*VehicleDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use VehicleDescriptor.ProtoReflect.Descriptor instead.
func (*VehicleDescriptor) GetId ¶
func (x *VehicleDescriptor) GetId() string
func (*VehicleDescriptor) GetLabel ¶
func (x *VehicleDescriptor) GetLabel() string
func (*VehicleDescriptor) GetLicensePlate ¶
func (x *VehicleDescriptor) GetLicensePlate() string
func (*VehicleDescriptor) ProtoMessage ¶
func (*VehicleDescriptor) ProtoMessage()
func (*VehicleDescriptor) ProtoReflect ¶
func (x *VehicleDescriptor) ProtoReflect() protoreflect.Message
func (*VehicleDescriptor) Reset ¶
func (x *VehicleDescriptor) Reset()
func (*VehicleDescriptor) String ¶
func (x *VehicleDescriptor) String() string
type VehiclePosition ¶
type VehiclePosition struct { // The Trip that this vehicle is serving. // Can be empty or partial if the vehicle can not be identified with a given // trip instance. Trip *TripDescriptor `protobuf:"bytes,1,opt,name=trip" json:"trip,omitempty"` // Additional information on the vehicle that is serving this trip. Vehicle *VehicleDescriptor `protobuf:"bytes,8,opt,name=vehicle" json:"vehicle,omitempty"` // Current position of this vehicle. Position *Position `protobuf:"bytes,2,opt,name=position" json:"position,omitempty"` // The stop sequence index of the current stop. The meaning of // current_stop_sequence (i.e., the stop that it refers to) is determined by // current_status. // If current_status is missing IN_TRANSIT_TO is assumed. CurrentStopSequence *uint32 `protobuf:"varint,3,opt,name=current_stop_sequence,json=currentStopSequence" json:"current_stop_sequence,omitempty"` // Identifies the current stop. The value must be the same as in stops.txt in // the corresponding GTFS feed. StopId *string `protobuf:"bytes,7,opt,name=stop_id,json=stopId" json:"stop_id,omitempty"` // The exact status of the vehicle with respect to the current stop. // Ignored if current_stop_sequence is missing. CurrentStatus *VehiclePosition_VehicleStopStatus `` /* 156-byte string literal not displayed */ // Moment at which the vehicle's position was measured. In POSIX time // (i.e., number of seconds since January 1st 1970 00:00:00 UTC). Timestamp *uint64 `protobuf:"varint,5,opt,name=timestamp" json:"timestamp,omitempty"` CongestionLevel *VehiclePosition_CongestionLevel `` /* 154-byte string literal not displayed */ OccupancyStatus *VehiclePosition_OccupancyStatus `` /* 154-byte string literal not displayed */ // A percentage value representing the degree of passenger occupancy of the vehicle. // The values are represented as an integer without decimals. 0 means 0% and 100 means 100%. // The value 100 should represent the total maximum occupancy the vehicle was designed for, // including both seated and standing capacity, and current operating regulations allow. // It is possible that the value goes over 100 if there are currently more passengers than what the vehicle was designed for. // The precision of occupancy_percentage should be low enough that you can't track a single person boarding and alighting for privacy reasons. // This field is still experimental, and subject to change. It may be formally adopted in the future. OccupancyPercentage *uint32 `protobuf:"varint,10,opt,name=occupancy_percentage,json=occupancyPercentage" json:"occupancy_percentage,omitempty"` // contains filtered or unexported fields }
Realtime positioning information for a given vehicle.
func (*VehiclePosition) Descriptor
deprecated
func (*VehiclePosition) Descriptor() ([]byte, []int)
Deprecated: Use VehiclePosition.ProtoReflect.Descriptor instead.
func (*VehiclePosition) GetCongestionLevel ¶
func (x *VehiclePosition) GetCongestionLevel() VehiclePosition_CongestionLevel
func (*VehiclePosition) GetCurrentStatus ¶
func (x *VehiclePosition) GetCurrentStatus() VehiclePosition_VehicleStopStatus
func (*VehiclePosition) GetCurrentStopSequence ¶
func (x *VehiclePosition) GetCurrentStopSequence() uint32
func (*VehiclePosition) GetOccupancyPercentage ¶
func (x *VehiclePosition) GetOccupancyPercentage() uint32
func (*VehiclePosition) GetOccupancyStatus ¶
func (x *VehiclePosition) GetOccupancyStatus() VehiclePosition_OccupancyStatus
func (*VehiclePosition) GetPosition ¶
func (x *VehiclePosition) GetPosition() *Position
func (*VehiclePosition) GetStopId ¶
func (x *VehiclePosition) GetStopId() string
func (*VehiclePosition) GetTimestamp ¶
func (x *VehiclePosition) GetTimestamp() uint64
func (*VehiclePosition) GetTrip ¶
func (x *VehiclePosition) GetTrip() *TripDescriptor
func (*VehiclePosition) GetVehicle ¶
func (x *VehiclePosition) GetVehicle() *VehicleDescriptor
func (*VehiclePosition) ProtoMessage ¶
func (*VehiclePosition) ProtoMessage()
func (*VehiclePosition) ProtoReflect ¶
func (x *VehiclePosition) ProtoReflect() protoreflect.Message
func (*VehiclePosition) Reset ¶
func (x *VehiclePosition) Reset()
func (*VehiclePosition) String ¶
func (x *VehiclePosition) String() string
type VehiclePosition_CongestionLevel ¶
type VehiclePosition_CongestionLevel int32
Congestion level that is affecting this vehicle.
const ( VehiclePosition_UNKNOWN_CONGESTION_LEVEL VehiclePosition_CongestionLevel = 0 VehiclePosition_RUNNING_SMOOTHLY VehiclePosition_CongestionLevel = 1 VehiclePosition_STOP_AND_GO VehiclePosition_CongestionLevel = 2 VehiclePosition_CONGESTION VehiclePosition_CongestionLevel = 3 VehiclePosition_SEVERE_CONGESTION VehiclePosition_CongestionLevel = 4 // People leaving their cars. )
func (VehiclePosition_CongestionLevel) Descriptor ¶
func (VehiclePosition_CongestionLevel) Descriptor() protoreflect.EnumDescriptor
func (VehiclePosition_CongestionLevel) Enum ¶
func (x VehiclePosition_CongestionLevel) Enum() *VehiclePosition_CongestionLevel
func (VehiclePosition_CongestionLevel) EnumDescriptor
deprecated
func (VehiclePosition_CongestionLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use VehiclePosition_CongestionLevel.Descriptor instead.
func (VehiclePosition_CongestionLevel) Number ¶
func (x VehiclePosition_CongestionLevel) Number() protoreflect.EnumNumber
func (VehiclePosition_CongestionLevel) String ¶
func (x VehiclePosition_CongestionLevel) String() string
func (VehiclePosition_CongestionLevel) Type ¶
func (VehiclePosition_CongestionLevel) Type() protoreflect.EnumType
func (*VehiclePosition_CongestionLevel) UnmarshalJSON
deprecated
func (x *VehiclePosition_CongestionLevel) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type VehiclePosition_OccupancyStatus ¶
type VehiclePosition_OccupancyStatus int32
The degree of passenger occupancy of the vehicle. This field is still experimental, and subject to change. It may be formally adopted in the future.
const ( // The vehicle is considered empty by most measures, and has few or no // passengers onboard, but is still accepting passengers. VehiclePosition_EMPTY VehiclePosition_OccupancyStatus = 0 // The vehicle has a relatively large percentage of seats available. // What percentage of free seats out of the total seats available is to be // considered large enough to fall into this category is determined at the // discretion of the producer. VehiclePosition_MANY_SEATS_AVAILABLE VehiclePosition_OccupancyStatus = 1 // The vehicle has a relatively small percentage of seats available. // What percentage of free seats out of the total seats available is to be // considered small enough to fall into this category is determined at the // discretion of the feed producer. VehiclePosition_FEW_SEATS_AVAILABLE VehiclePosition_OccupancyStatus = 2 // The vehicle can currently accommodate only standing passengers. VehiclePosition_STANDING_ROOM_ONLY VehiclePosition_OccupancyStatus = 3 // The vehicle can currently accommodate only standing passengers // and has limited space for them. VehiclePosition_CRUSHED_STANDING_ROOM_ONLY VehiclePosition_OccupancyStatus = 4 // The vehicle is considered full by most measures, but may still be // allowing passengers to board. VehiclePosition_FULL VehiclePosition_OccupancyStatus = 5 // The vehicle is not accepting additional passengers. VehiclePosition_NOT_ACCEPTING_PASSENGERS VehiclePosition_OccupancyStatus = 6 )
func (VehiclePosition_OccupancyStatus) Descriptor ¶
func (VehiclePosition_OccupancyStatus) Descriptor() protoreflect.EnumDescriptor
func (VehiclePosition_OccupancyStatus) Enum ¶
func (x VehiclePosition_OccupancyStatus) Enum() *VehiclePosition_OccupancyStatus
func (VehiclePosition_OccupancyStatus) EnumDescriptor
deprecated
func (VehiclePosition_OccupancyStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use VehiclePosition_OccupancyStatus.Descriptor instead.
func (VehiclePosition_OccupancyStatus) Number ¶
func (x VehiclePosition_OccupancyStatus) Number() protoreflect.EnumNumber
func (VehiclePosition_OccupancyStatus) String ¶
func (x VehiclePosition_OccupancyStatus) String() string
func (VehiclePosition_OccupancyStatus) Type ¶
func (VehiclePosition_OccupancyStatus) Type() protoreflect.EnumType
func (*VehiclePosition_OccupancyStatus) UnmarshalJSON
deprecated
func (x *VehiclePosition_OccupancyStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type VehiclePosition_VehicleStopStatus ¶
type VehiclePosition_VehicleStopStatus int32
const ( // The vehicle is just about to arrive at the stop (on a stop // display, the vehicle symbol typically flashes). VehiclePosition_INCOMING_AT VehiclePosition_VehicleStopStatus = 0 // The vehicle is standing at the stop. VehiclePosition_STOPPED_AT VehiclePosition_VehicleStopStatus = 1 // The vehicle has departed and is in transit to the next stop. VehiclePosition_IN_TRANSIT_TO VehiclePosition_VehicleStopStatus = 2 )
func (VehiclePosition_VehicleStopStatus) Descriptor ¶
func (VehiclePosition_VehicleStopStatus) Descriptor() protoreflect.EnumDescriptor
func (VehiclePosition_VehicleStopStatus) Enum ¶
func (x VehiclePosition_VehicleStopStatus) Enum() *VehiclePosition_VehicleStopStatus
func (VehiclePosition_VehicleStopStatus) EnumDescriptor
deprecated
func (VehiclePosition_VehicleStopStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use VehiclePosition_VehicleStopStatus.Descriptor instead.
func (VehiclePosition_VehicleStopStatus) Number ¶
func (x VehiclePosition_VehicleStopStatus) Number() protoreflect.EnumNumber
func (VehiclePosition_VehicleStopStatus) String ¶
func (x VehiclePosition_VehicleStopStatus) String() string
func (VehiclePosition_VehicleStopStatus) Type ¶
func (VehiclePosition_VehicleStopStatus) Type() protoreflect.EnumType
func (*VehiclePosition_VehicleStopStatus) UnmarshalJSON
deprecated
func (x *VehiclePosition_VehicleStopStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.