gtfs

package
v0.0.0-...-cb3fb3f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Default_FeedEntity_IsDeleted bool = false

Variables

View Source
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",
}
View Source
var 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,
}
View Source
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",
}
View Source
var 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,
}
View Source
var FeedHeader_Incrementality_name = map[int32]string{
	0: "FULL_DATASET",
	1: "DIFFERENTIAL",
}
View Source
var FeedHeader_Incrementality_value = map[string]int32{
	"FULL_DATASET": 0,
	"DIFFERENTIAL": 1,
}
View Source
var TripDescriptor_ScheduleRelationship_name = map[int32]string{
	0: "SCHEDULED",
	1: "ADDED",
	2: "UNSCHEDULED",
	3: "CANCELED",
	5: "REPLACEMENT",
}
View Source
var TripDescriptor_ScheduleRelationship_value = map[string]int32{
	"SCHEDULED":   0,
	"ADDED":       1,
	"UNSCHEDULED": 2,
	"CANCELED":    3,
	"REPLACEMENT": 5,
}
View Source
var TripUpdate_StopTimeUpdate_ScheduleRelationship_name = map[int32]string{
	0: "SCHEDULED",
	1: "SKIPPED",
	2: "NO_DATA",
}
View Source
var TripUpdate_StopTimeUpdate_ScheduleRelationship_value = map[string]int32{
	"SCHEDULED": 0,
	"SKIPPED":   1,
	"NO_DATA":   2,
}
View Source
var VehiclePosition_CongestionLevel_name = map[int32]string{
	0: "UNKNOWN_CONGESTION_LEVEL",
	1: "RUNNING_SMOOTHLY",
	2: "STOP_AND_GO",
	3: "CONGESTION",
	4: "SEVERE_CONGESTION",
}
View Source
var VehiclePosition_CongestionLevel_value = map[string]int32{
	"UNKNOWN_CONGESTION_LEVEL": 0,
	"RUNNING_SMOOTHLY":         1,
	"STOP_AND_GO":              2,
	"CONGESTION":               3,
	"SEVERE_CONGESTION":        4,
}
View Source
var VehiclePosition_VehicleStopStatus_name = map[int32]string{
	0: "INCOMING_AT",
	1: "STOPPED_AT",
	2: "IN_TRANSIT_TO",
}
View Source
var VehiclePosition_VehicleStopStatus_value = map[string]int32{
	"INCOMING_AT":   0,
	"STOPPED_AT":    1,
	"IN_TRANSIT_TO": 2,
}

Functions

This section is empty.

Types

type Alert

type Alert struct {
	ActivePeriod     []*TimeRange      `protobuf:"bytes,1,rep,name=active_period" json:"active_period"`
	InformedEntity   []*EntitySelector `protobuf:"bytes,5,rep,name=informed_entity" json:"informed_entity"`
	Cause            *Alert_Cause      `protobuf:"varint,6,opt,name=cause,enum=transit_realtime.Alert_Cause,def=1" json:"cause"`
	Effect           *Alert_Effect     `protobuf:"varint,7,opt,name=effect,enum=transit_realtime.Alert_Effect,def=8" json:"effect"`
	Url              *TranslatedString `protobuf:"bytes,8,opt,name=url" json:"url"`
	HeaderText       *TranslatedString `protobuf:"bytes,10,opt,name=header_text" json:"header_text"`
	DescriptionText  *TranslatedString `protobuf:"bytes,11,opt,name=description_text" json:"description_text"`
	XXX_unrecognized []byte
}

func (*Alert) Reset

func (this *Alert) Reset()

func (*Alert) String

func (this *Alert) String() string

type Alert_Cause

type Alert_Cause int32
const (
	Alert_UNKNOWN_CAUSE     Alert_Cause = 1
	Alert_OTHER_CAUSE       Alert_Cause = 2
	Alert_TECHNICAL_PROBLEM Alert_Cause = 3
	Alert_STRIKE            Alert_Cause = 4
	Alert_DEMONSTRATION     Alert_Cause = 5
	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
)
const Default_Alert_Cause Alert_Cause = Alert_UNKNOWN_CAUSE

func NewAlert_Cause

func NewAlert_Cause(x Alert_Cause) *Alert_Cause

func (Alert_Cause) String

func (x Alert_Cause) String() string

type Alert_Effect

type Alert_Effect int32
const (
	Alert_NO_SERVICE         Alert_Effect = 1
	Alert_REDUCED_SERVICE    Alert_Effect = 2
	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
)
const Default_Alert_Effect Alert_Effect = Alert_UNKNOWN_EFFECT

func NewAlert_Effect

func NewAlert_Effect(x Alert_Effect) *Alert_Effect

func (Alert_Effect) String

func (x Alert_Effect) String() string

type EntitySelector

type EntitySelector struct {
	AgencyId         *string         `protobuf:"bytes,1,opt,name=agency_id" json:"agency_id"`
	RouteId          *string         `protobuf:"bytes,2,opt,name=route_id" json:"route_id"`
	RouteType        *int32          `protobuf:"varint,3,opt,name=route_type" json:"route_type"`
	Trip             *TripDescriptor `protobuf:"bytes,4,opt,name=trip" json:"trip"`
	StopId           *string         `protobuf:"bytes,5,opt,name=stop_id" json:"stop_id"`
	XXX_unrecognized []byte
}

func (*EntitySelector) Reset

func (this *EntitySelector) Reset()

func (*EntitySelector) String

func (this *EntitySelector) String() string

type FeedEntity

type FeedEntity struct {
	Id               *string          `protobuf:"bytes,1,req,name=id" json:"id"`
	IsDeleted        *bool            `protobuf:"varint,2,opt,name=is_deleted,def=0" json:"is_deleted"`
	TripUpdate       *TripUpdate      `protobuf:"bytes,3,opt,name=trip_update" json:"trip_update"`
	Vehicle          *VehiclePosition `protobuf:"bytes,4,opt,name=vehicle" json:"vehicle"`
	Alert            *Alert           `protobuf:"bytes,5,opt,name=alert" json:"alert"`
	XXX_unrecognized []byte
}

func (*FeedEntity) Reset

func (this *FeedEntity) Reset()

func (*FeedEntity) String

func (this *FeedEntity) String() string

type FeedHeader

type FeedHeader struct {
	GtfsRealtimeVersion *string                    `protobuf:"bytes,1,req,name=gtfs_realtime_version" json:"gtfs_realtime_version"`
	Incrementality      *FeedHeader_Incrementality `protobuf:"varint,2,opt,name=incrementality,enum=transit_realtime.FeedHeader_Incrementality,def=0" json:"incrementality"`
	Timestamp           *uint64                    `protobuf:"varint,3,opt,name=timestamp" json:"timestamp"`
	XXX_unrecognized    []byte
}

func (*FeedHeader) Reset

func (this *FeedHeader) Reset()

func (*FeedHeader) String

func (this *FeedHeader) String() string

type FeedHeader_Incrementality

type FeedHeader_Incrementality int32
const (
	FeedHeader_FULL_DATASET FeedHeader_Incrementality = 0
	FeedHeader_DIFFERENTIAL FeedHeader_Incrementality = 1
)
const Default_FeedHeader_Incrementality FeedHeader_Incrementality = FeedHeader_FULL_DATASET

func (FeedHeader_Incrementality) String

func (x FeedHeader_Incrementality) String() string

type FeedMessage

type FeedMessage struct {
	Header           *FeedHeader   `protobuf:"bytes,1,req,name=header" json:"header"`
	Entity           []*FeedEntity `protobuf:"bytes,2,rep,name=entity" json:"entity"`
	XXX_unrecognized []byte
}

func (*FeedMessage) Reset

func (this *FeedMessage) Reset()

func (*FeedMessage) String

func (this *FeedMessage) String() string

type Position

type Position struct {
	Latitude         *float32 `protobuf:"fixed32,1,req,name=latitude" json:"latitude"`
	Longitude        *float32 `protobuf:"fixed32,2,req,name=longitude" json:"longitude"`
	Bearing          *float32 `protobuf:"fixed32,3,opt,name=bearing" json:"bearing"`
	Odometer         *float64 `protobuf:"fixed64,4,opt,name=odometer" json:"odometer"`
	Speed            *float32 `protobuf:"fixed32,5,opt,name=speed" json:"speed"`
	XXX_unrecognized []byte
}

func (*Position) Reset

func (this *Position) Reset()

func (*Position) String

func (this *Position) String() string

type TimeRange

type TimeRange struct {
	Start            *uint64 `protobuf:"varint,1,opt,name=start" json:"start"`
	End              *uint64 `protobuf:"varint,2,opt,name=end" json:"end"`
	XXX_unrecognized []byte
}

func (*TimeRange) Reset

func (this *TimeRange) Reset()

func (*TimeRange) String

func (this *TimeRange) String() string

type TranslatedString

type TranslatedString struct {
	Translation      []*TranslatedString_Translation `protobuf:"bytes,1,rep,name=translation" json:"translation"`
	XXX_unrecognized []byte
}

func (*TranslatedString) Reset

func (this *TranslatedString) Reset()

func (*TranslatedString) String

func (this *TranslatedString) String() string

type TranslatedString_Translation

type TranslatedString_Translation struct {
	Text             *string `protobuf:"bytes,1,req,name=text" json:"text"`
	Language         *string `protobuf:"bytes,2,opt,name=language" json:"language"`
	XXX_unrecognized []byte
}

func (*TranslatedString_Translation) Reset

func (this *TranslatedString_Translation) Reset()

func (*TranslatedString_Translation) String

func (this *TranslatedString_Translation) String() string

type TripDescriptor

type TripDescriptor struct {
	TripId               *string                              `protobuf:"bytes,1,opt,name=trip_id" json:"trip_id"`
	RouteId              *string                              `protobuf:"bytes,5,opt,name=route_id" json:"route_id"`
	StartTime            *string                              `protobuf:"bytes,2,opt,name=start_time" json:"start_time"`
	StartDate            *string                              `protobuf:"bytes,3,opt,name=start_date" json:"start_date"`
	ScheduleRelationship *TripDescriptor_ScheduleRelationship `` /* 137-byte string literal not displayed */
	XXX_unrecognized     []byte
}

func (*TripDescriptor) Reset

func (this *TripDescriptor) Reset()

func (*TripDescriptor) String

func (this *TripDescriptor) String() string

type TripDescriptor_ScheduleRelationship

type TripDescriptor_ScheduleRelationship int32
const (
	TripDescriptor_SCHEDULED   TripDescriptor_ScheduleRelationship = 0
	TripDescriptor_ADDED       TripDescriptor_ScheduleRelationship = 1
	TripDescriptor_UNSCHEDULED TripDescriptor_ScheduleRelationship = 2
	TripDescriptor_CANCELED    TripDescriptor_ScheduleRelationship = 3
	TripDescriptor_REPLACEMENT TripDescriptor_ScheduleRelationship = 5
)

func (TripDescriptor_ScheduleRelationship) String

type TripUpdate

type TripUpdate struct {
	Trip             *TripDescriptor              `protobuf:"bytes,1,req,name=trip" json:"trip"`
	Vehicle          *VehicleDescriptor           `protobuf:"bytes,3,opt,name=vehicle" json:"vehicle"`
	StopTimeUpdate   []*TripUpdate_StopTimeUpdate `protobuf:"bytes,2,rep,name=stop_time_update" json:"stop_time_update"`
	XXX_unrecognized []byte
}

func (*TripUpdate) Reset

func (this *TripUpdate) Reset()

func (*TripUpdate) String

func (this *TripUpdate) String() string

type TripUpdate_StopTimeEvent

type TripUpdate_StopTimeEvent struct {
	Delay            *int32 `protobuf:"varint,1,opt,name=delay" json:"delay"`
	Time             *int64 `protobuf:"varint,2,opt,name=time" json:"time"`
	Uncertainty      *int32 `protobuf:"varint,3,opt,name=uncertainty" json:"uncertainty"`
	XXX_unrecognized []byte
}

func (*TripUpdate_StopTimeEvent) Reset

func (this *TripUpdate_StopTimeEvent) Reset()

func (*TripUpdate_StopTimeEvent) String

func (this *TripUpdate_StopTimeEvent) String() string

type TripUpdate_StopTimeUpdate

type TripUpdate_StopTimeUpdate struct {
	StopSequence         *uint32                                         `protobuf:"varint,1,opt,name=stop_sequence" json:"stop_sequence"`
	StopId               *string                                         `protobuf:"bytes,4,opt,name=stop_id" json:"stop_id"`
	Arrival              *TripUpdate_StopTimeEvent                       `protobuf:"bytes,2,opt,name=arrival" json:"arrival"`
	Departure            *TripUpdate_StopTimeEvent                       `protobuf:"bytes,3,opt,name=departure" json:"departure"`
	ScheduleRelationship *TripUpdate_StopTimeUpdate_ScheduleRelationship `` /* 154-byte string literal not displayed */
	XXX_unrecognized     []byte
}

func (*TripUpdate_StopTimeUpdate) Reset

func (this *TripUpdate_StopTimeUpdate) Reset()

func (*TripUpdate_StopTimeUpdate) String

func (this *TripUpdate_StopTimeUpdate) String() string

type TripUpdate_StopTimeUpdate_ScheduleRelationship

type TripUpdate_StopTimeUpdate_ScheduleRelationship int32
const (
	TripUpdate_StopTimeUpdate_SCHEDULED TripUpdate_StopTimeUpdate_ScheduleRelationship = 0
	TripUpdate_StopTimeUpdate_SKIPPED   TripUpdate_StopTimeUpdate_ScheduleRelationship = 1
	TripUpdate_StopTimeUpdate_NO_DATA   TripUpdate_StopTimeUpdate_ScheduleRelationship = 2
)
const Default_TripUpdate_StopTimeUpdate_ScheduleRelationship TripUpdate_StopTimeUpdate_ScheduleRelationship = TripUpdate_StopTimeUpdate_SCHEDULED

func (TripUpdate_StopTimeUpdate_ScheduleRelationship) String

type VehicleDescriptor

type VehicleDescriptor struct {
	Id               *string `protobuf:"bytes,1,opt,name=id" json:"id"`
	Label            *string `protobuf:"bytes,2,opt,name=label" json:"label"`
	LicensePlate     *string `protobuf:"bytes,3,opt,name=license_plate" json:"license_plate"`
	XXX_unrecognized []byte
}

func (*VehicleDescriptor) Reset

func (this *VehicleDescriptor) Reset()

func (*VehicleDescriptor) String

func (this *VehicleDescriptor) String() string

type VehiclePosition

type VehiclePosition struct {
	Trip                *TripDescriptor                    `protobuf:"bytes,1,opt,name=trip" json:"trip"`
	Vehicle             *VehicleDescriptor                 `protobuf:"bytes,8,opt,name=vehicle" json:"vehicle"`
	Position            *Position                          `protobuf:"bytes,2,opt,name=position" json:"position"`
	CurrentStopSequence *uint32                            `protobuf:"varint,3,opt,name=current_stop_sequence" json:"current_stop_sequence"`
	StopId              *string                            `protobuf:"bytes,7,opt,name=stop_id" json:"stop_id"`
	CurrentStatus       *VehiclePosition_VehicleStopStatus `` /* 127-byte string literal not displayed */
	Timestamp           *uint64                            `protobuf:"varint,5,opt,name=timestamp" json:"timestamp"`
	CongestionLevel     *VehiclePosition_CongestionLevel   `protobuf:"varint,6,opt,name=congestion_level,enum=transit_realtime.VehiclePosition_CongestionLevel" json:"congestion_level"`
	XXX_unrecognized    []byte
}

func (*VehiclePosition) Reset

func (this *VehiclePosition) Reset()

func (*VehiclePosition) String

func (this *VehiclePosition) String() string

type VehiclePosition_CongestionLevel

type VehiclePosition_CongestionLevel int32
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
)

func (VehiclePosition_CongestionLevel) String

type VehiclePosition_VehicleStopStatus

type VehiclePosition_VehicleStopStatus int32
const (
	VehiclePosition_INCOMING_AT   VehiclePosition_VehicleStopStatus = 0
	VehiclePosition_STOPPED_AT    VehiclePosition_VehicleStopStatus = 1
	VehiclePosition_IN_TRANSIT_TO VehiclePosition_VehicleStopStatus = 2
)
const Default_VehiclePosition_CurrentStatus VehiclePosition_VehicleStopStatus = VehiclePosition_IN_TRANSIT_TO

func (VehiclePosition_VehicleStopStatus) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL