gtfsrt

package
v0.0.0-...-6b7d312 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gtfs_realtime is a generated protocol buffer package.

It is generated from these files:

gtfs_realtime.proto

It has these top-level messages:

FeedMessage
FeedHeader
FeedEntity
TripUpdate
VehiclePosition
Alert
TimeRange
Position
TripDescriptor
VehicleDescriptor
EntitySelector
TranslatedString

Package capmetricsd is a generated protocol buffer package.

It is generated from these files:

vehiclelocation.proto

It has these top-level messages:

VehicleLocation

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",
}
View Source
var TripDescriptor_ScheduleRelationship_value = map[string]int32{
	"SCHEDULED":   0,
	"ADDED":       1,
	"UNSCHEDULED": 2,
	"CANCELED":    3,
}
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_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",
}
View Source
var 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,
}
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 {
	// 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:"active_period,omitempty"`
	// Entities whose users we should notify of this alert.
	InformedEntity []*EntitySelector `protobuf:"bytes,5,rep,name=informed_entity" json:"informed_entity,omitempty"`
	Cause          *Alert_Cause      `protobuf:"varint,6,opt,name=cause,enum=main.Alert_Cause,def=1" json:"cause,omitempty"`
	Effect         *Alert_Effect     `protobuf:"varint,7,opt,name=effect,enum=main.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:"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:"description_text,omitempty"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

An alert, indicating some sort of incident in the public transit network.

func (*Alert) ExtensionMap

func (m *Alert) ExtensionMap() map[int32]proto.Extension

func (*Alert) ExtensionRangeArray

func (*Alert) ExtensionRangeArray() []proto.ExtensionRange

func (*Alert) GetActivePeriod

func (m *Alert) GetActivePeriod() []*TimeRange

func (*Alert) GetCause

func (m *Alert) GetCause() Alert_Cause

func (*Alert) GetDescriptionText

func (m *Alert) GetDescriptionText() *TranslatedString

func (*Alert) GetEffect

func (m *Alert) GetEffect() Alert_Effect

func (*Alert) GetHeaderText

func (m *Alert) GetHeaderText() *TranslatedString

func (*Alert) GetInformedEntity

func (m *Alert) GetInformedEntity() []*EntitySelector

func (*Alert) GetUrl

func (m *Alert) GetUrl() *TranslatedString

func (*Alert) ProtoMessage

func (*Alert) ProtoMessage()

func (*Alert) Reset

func (m *Alert) Reset()

func (*Alert) String

func (m *Alert) String() string

type Alert_Cause

type Alert_Cause int32

Cause of this alert.

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 (Alert_Cause) Enum

func (x Alert_Cause) Enum() *Alert_Cause

func (Alert_Cause) String

func (x Alert_Cause) String() string

func (*Alert_Cause) UnmarshalJSON

func (x *Alert_Cause) UnmarshalJSON(data []byte) error

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
)
const Default_Alert_Effect Alert_Effect = Alert_UNKNOWN_EFFECT

func (Alert_Effect) Enum

func (x Alert_Effect) Enum() *Alert_Effect

func (Alert_Effect) String

func (x Alert_Effect) String() string

func (*Alert_Effect) UnmarshalJSON

func (x *Alert_Effect) UnmarshalJSON(data []byte) error

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:"agency_id,omitempty"`
	RouteId  *string `protobuf:"bytes,2,opt,name=route_id" json:"route_id,omitempty"`
	// corresponds to route_type in GTFS.
	RouteType        *int32                    `protobuf:"varint,3,opt,name=route_type" 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:"stop_id,omitempty"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

A selector for an entity in a GTFS feed.

func (*EntitySelector) ExtensionMap

func (m *EntitySelector) ExtensionMap() map[int32]proto.Extension

func (*EntitySelector) ExtensionRangeArray

func (*EntitySelector) ExtensionRangeArray() []proto.ExtensionRange

func (*EntitySelector) GetAgencyId

func (m *EntitySelector) GetAgencyId() string

func (*EntitySelector) GetRouteId

func (m *EntitySelector) GetRouteId() string

func (*EntitySelector) GetRouteType

func (m *EntitySelector) GetRouteType() int32

func (*EntitySelector) GetStopId

func (m *EntitySelector) GetStopId() string

func (*EntitySelector) GetTrip

func (m *EntitySelector) GetTrip() *TripDescriptor

func (*EntitySelector) ProtoMessage

func (*EntitySelector) ProtoMessage()

func (*EntitySelector) Reset

func (m *EntitySelector) Reset()

func (*EntitySelector) String

func (m *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,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:"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"`
	XXX_unrecognized []byte           `json:"-"`
}

A definition (or update) of an entity in the transit feed.

func (*FeedEntity) GetAlert

func (m *FeedEntity) GetAlert() *Alert

func (*FeedEntity) GetId

func (m *FeedEntity) GetId() string

func (*FeedEntity) GetIsDeleted

func (m *FeedEntity) GetIsDeleted() bool

func (*FeedEntity) GetTripUpdate

func (m *FeedEntity) GetTripUpdate() *TripUpdate

func (*FeedEntity) GetVehicle

func (m *FeedEntity) GetVehicle() *VehiclePosition

func (*FeedEntity) ProtoMessage

func (*FeedEntity) ProtoMessage()

func (*FeedEntity) Reset

func (m *FeedEntity) Reset()

func (*FeedEntity) String

func (m *FeedEntity) String() string

type FeedHeader

type FeedHeader struct {
	// Version of the feed specification.
	// The current version is 1.0.
	GtfsRealtimeVersion *string                    `protobuf:"bytes,1,req,name=gtfs_realtime_version" json:"gtfs_realtime_version,omitempty"`
	Incrementality      *FeedHeader_Incrementality `protobuf:"varint,2,opt,name=incrementality,enum=main.FeedHeader_Incrementality,def=0" json:"incrementality,omitempty"`
	// 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"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

Metadata about a feed, included in feed messages.

func (*FeedHeader) ExtensionMap

func (m *FeedHeader) ExtensionMap() map[int32]proto.Extension

func (*FeedHeader) ExtensionRangeArray

func (*FeedHeader) ExtensionRangeArray() []proto.ExtensionRange

func (*FeedHeader) GetGtfsRealtimeVersion

func (m *FeedHeader) GetGtfsRealtimeVersion() string

func (*FeedHeader) GetIncrementality

func (m *FeedHeader) GetIncrementality() FeedHeader_Incrementality

func (*FeedHeader) GetTimestamp

func (m *FeedHeader) GetTimestamp() uint64

func (*FeedHeader) ProtoMessage

func (*FeedHeader) ProtoMessage()

func (*FeedHeader) Reset

func (m *FeedHeader) Reset()

func (*FeedHeader) String

func (m *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
)
const Default_FeedHeader_Incrementality FeedHeader_Incrementality = FeedHeader_FULL_DATASET

func (FeedHeader_Incrementality) Enum

func (FeedHeader_Incrementality) String

func (x FeedHeader_Incrementality) String() string

func (*FeedHeader_Incrementality) UnmarshalJSON

func (x *FeedHeader_Incrementality) UnmarshalJSON(data []byte) error

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"`
	XXX_unrecognized []byte        `json:"-"`
}

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.

A feed depends on some external configuration:

  • The corresponding GTFS feed.
  • Feed application (updates, positions or alerts). A feed should contain only items of one specified application; all the other entities will be ignored.
  • Polling frequency

func (*FeedMessage) GetEntity

func (m *FeedMessage) GetEntity() []*FeedEntity

func (*FeedMessage) GetHeader

func (m *FeedMessage) GetHeader() *FeedHeader

func (*FeedMessage) ProtoMessage

func (*FeedMessage) ProtoMessage()

func (*FeedMessage) Reset

func (m *FeedMessage) Reset()

func (*FeedMessage) String

func (m *FeedMessage) String() string

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"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

A position.

func (*Position) ExtensionMap

func (m *Position) ExtensionMap() map[int32]proto.Extension

func (*Position) ExtensionRangeArray

func (*Position) ExtensionRangeArray() []proto.ExtensionRange

func (*Position) GetBearing

func (m *Position) GetBearing() float32

func (*Position) GetLatitude

func (m *Position) GetLatitude() float32

func (*Position) GetLongitude

func (m *Position) GetLongitude() float32

func (*Position) GetOdometer

func (m *Position) GetOdometer() float64

func (*Position) GetSpeed

func (m *Position) GetSpeed() float32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) String

func (m *Position) String() string

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"`
	XXX_unrecognized []byte  `json:"-"`
}

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) GetEnd

func (m *TimeRange) GetEnd() uint64

func (*TimeRange) GetStart

func (m *TimeRange) GetStart() uint64

func (*TimeRange) ProtoMessage

func (*TimeRange) ProtoMessage()

func (*TimeRange) Reset

func (m *TimeRange) Reset()

func (*TimeRange) String

func (m *TimeRange) String() string

type TranslatedString

type TranslatedString struct {
	// At least one translation must be provided.
	Translation      []*TranslatedString_Translation `protobuf:"bytes,1,rep,name=translation" json:"translation,omitempty"`
	XXX_unrecognized []byte                          `json:"-"`
}

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:

  1. If the UI language matches the language code of a translation, the first matching translation is picked.
  2. If a default UI language (e.g., English) matches the language code of a translation, the first matching translation is picked.
  3. If some translation has an unspecified language code, that translation is picked.

func (*TranslatedString) GetTranslation

func (m *TranslatedString) GetTranslation() []*TranslatedString_Translation

func (*TranslatedString) ProtoMessage

func (*TranslatedString) ProtoMessage()

func (*TranslatedString) Reset

func (m *TranslatedString) Reset()

func (*TranslatedString) String

func (m *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"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*TranslatedString_Translation) GetLanguage

func (m *TranslatedString_Translation) GetLanguage() string

func (*TranslatedString_Translation) GetText

func (m *TranslatedString_Translation) GetText() string

func (*TranslatedString_Translation) ProtoMessage

func (*TranslatedString_Translation) ProtoMessage()

func (*TranslatedString_Translation) Reset

func (m *TranslatedString_Translation) Reset()

func (*TranslatedString_Translation) String

type TripDescriptor

type TripDescriptor struct {
	// The trip_id from the GTFS feed that this selector refers to.
	// For non frequency expanded trips, this field is enough to uniquely identify
	// the trip. For frequency expanded, start_time and start_date might also be
	// necessary.
	TripId *string `protobuf:"bytes,1,opt,name=trip_id" 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:"route_id,omitempty"`
	// The scheduled start time of this trip instance.
	// This field should be given only if the trip is frequency-expanded in the
	// GTFS feed. The value must precisely correspond to start_time specified for
	// the route in the GTFS feed plus some multiple of headway_secs.
	// Format 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:"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:"start_date,omitempty"`
	ScheduleRelationship *TripDescriptor_ScheduleRelationship `` /* 135-byte string literal not displayed */
	XXX_extensions       map[int32]proto.Extension            `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
}

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) ExtensionMap

func (m *TripDescriptor) ExtensionMap() map[int32]proto.Extension

func (*TripDescriptor) ExtensionRangeArray

func (*TripDescriptor) ExtensionRangeArray() []proto.ExtensionRange

func (*TripDescriptor) GetRouteId

func (m *TripDescriptor) GetRouteId() string

func (*TripDescriptor) GetScheduleRelationship

func (m *TripDescriptor) GetScheduleRelationship() TripDescriptor_ScheduleRelationship

func (*TripDescriptor) GetStartDate

func (m *TripDescriptor) GetStartDate() string

func (*TripDescriptor) GetStartTime

func (m *TripDescriptor) GetStartTime() string

func (*TripDescriptor) GetTripId

func (m *TripDescriptor) GetTripId() string

func (*TripDescriptor) ProtoMessage

func (*TripDescriptor) ProtoMessage()

func (*TripDescriptor) Reset

func (m *TripDescriptor) Reset()

func (*TripDescriptor) String

func (m *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, for example, if
	// there is no schedule at all.
	TripDescriptor_UNSCHEDULED TripDescriptor_ScheduleRelationship = 2
	// A trip that existed in the schedule but was removed.
	TripDescriptor_CANCELED TripDescriptor_ScheduleRelationship = 3
)

func (TripDescriptor_ScheduleRelationship) Enum

func (TripDescriptor_ScheduleRelationship) String

func (*TripDescriptor_ScheduleRelationship) UnmarshalJSON

func (x *TripDescriptor_ScheduleRelationship) UnmarshalJSON(data []byte) error

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:"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"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

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) ExtensionMap

func (m *TripUpdate) ExtensionMap() map[int32]proto.Extension

func (*TripUpdate) ExtensionRangeArray

func (*TripUpdate) ExtensionRangeArray() []proto.ExtensionRange

func (*TripUpdate) GetStopTimeUpdate

func (m *TripUpdate) GetStopTimeUpdate() []*TripUpdate_StopTimeUpdate

func (*TripUpdate) GetTimestamp

func (m *TripUpdate) GetTimestamp() uint64

func (*TripUpdate) GetTrip

func (m *TripUpdate) GetTrip() *TripDescriptor

func (*TripUpdate) GetVehicle

func (m *TripUpdate) GetVehicle() *VehicleDescriptor

func (*TripUpdate) ProtoMessage

func (*TripUpdate) ProtoMessage()

func (*TripUpdate) Reset

func (m *TripUpdate) Reset()

func (*TripUpdate) String

func (m *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"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

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) ExtensionMap

func (m *TripUpdate_StopTimeEvent) ExtensionMap() map[int32]proto.Extension

func (*TripUpdate_StopTimeEvent) ExtensionRangeArray

func (*TripUpdate_StopTimeEvent) ExtensionRangeArray() []proto.ExtensionRange

func (*TripUpdate_StopTimeEvent) GetDelay

func (m *TripUpdate_StopTimeEvent) GetDelay() int32

func (*TripUpdate_StopTimeEvent) GetTime

func (m *TripUpdate_StopTimeEvent) GetTime() int64

func (*TripUpdate_StopTimeEvent) GetUncertainty

func (m *TripUpdate_StopTimeEvent) GetUncertainty() int32

func (*TripUpdate_StopTimeEvent) ProtoMessage

func (*TripUpdate_StopTimeEvent) ProtoMessage()

func (*TripUpdate_StopTimeEvent) Reset

func (m *TripUpdate_StopTimeEvent) Reset()

func (*TripUpdate_StopTimeEvent) String

func (m *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:"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:"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 `` /* 152-byte string literal not displayed */
	XXX_extensions       map[int32]proto.Extension                       `json:"-"`
	XXX_unrecognized     []byte                                          `json:"-"`
}

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) ExtensionMap

func (m *TripUpdate_StopTimeUpdate) ExtensionMap() map[int32]proto.Extension

func (*TripUpdate_StopTimeUpdate) ExtensionRangeArray

func (*TripUpdate_StopTimeUpdate) ExtensionRangeArray() []proto.ExtensionRange

func (*TripUpdate_StopTimeUpdate) GetArrival

func (*TripUpdate_StopTimeUpdate) GetDeparture

func (*TripUpdate_StopTimeUpdate) GetScheduleRelationship

func (*TripUpdate_StopTimeUpdate) GetStopId

func (m *TripUpdate_StopTimeUpdate) GetStopId() string

func (*TripUpdate_StopTimeUpdate) GetStopSequence

func (m *TripUpdate_StopTimeUpdate) GetStopSequence() uint32

func (*TripUpdate_StopTimeUpdate) ProtoMessage

func (*TripUpdate_StopTimeUpdate) ProtoMessage()

func (*TripUpdate_StopTimeUpdate) Reset

func (m *TripUpdate_StopTimeUpdate) Reset()

func (*TripUpdate_StopTimeUpdate) String

func (m *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.
	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
)
const Default_TripUpdate_StopTimeUpdate_ScheduleRelationship TripUpdate_StopTimeUpdate_ScheduleRelationship = TripUpdate_StopTimeUpdate_SCHEDULED

func (TripUpdate_StopTimeUpdate_ScheduleRelationship) Enum

func (TripUpdate_StopTimeUpdate_ScheduleRelationship) String

func (*TripUpdate_StopTimeUpdate_ScheduleRelationship) UnmarshalJSON

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:"license_plate,omitempty"`
	XXX_extensions   map[int32]proto.Extension `json:"-"`
	XXX_unrecognized []byte                    `json:"-"`
}

Identification information for the vehicle performing the trip.

func (*VehicleDescriptor) ExtensionMap

func (m *VehicleDescriptor) ExtensionMap() map[int32]proto.Extension

func (*VehicleDescriptor) ExtensionRangeArray

func (*VehicleDescriptor) ExtensionRangeArray() []proto.ExtensionRange

func (*VehicleDescriptor) GetId

func (m *VehicleDescriptor) GetId() string

func (*VehicleDescriptor) GetLabel

func (m *VehicleDescriptor) GetLabel() string

func (*VehicleDescriptor) GetLicensePlate

func (m *VehicleDescriptor) GetLicensePlate() string

func (*VehicleDescriptor) ProtoMessage

func (*VehicleDescriptor) ProtoMessage()

func (*VehicleDescriptor) Reset

func (m *VehicleDescriptor) Reset()

func (*VehicleDescriptor) String

func (m *VehicleDescriptor) String() string

type VehicleLocation

type VehicleLocation struct {
	VehicleId        *string  `protobuf:"bytes,1,opt,name=vehicle_id" json:"vehicle_id,omitempty"`
	Timestamp        *int64   `protobuf:"varint,2,opt,name=timestamp" json:"timestamp,omitempty"`
	Speed            *float32 `protobuf:"fixed32,3,opt,name=speed" json:"speed,omitempty"`
	RouteId          *string  `protobuf:"bytes,4,opt,name=route_id" json:"route_id,omitempty"`
	TripId           *string  `protobuf:"bytes,5,opt,name=trip_id" json:"trip_id,omitempty"`
	Bearing          *float32 `protobuf:"fixed32,6,opt,name=bearing" json:"bearing,omitempty"`
	Latitude         *float32 `protobuf:"fixed32,7,opt,name=latitude" json:"latitude,omitempty"`
	Longitude        *float32 `protobuf:"fixed32,8,opt,name=longitude" json:"longitude,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*VehicleLocation) GetBearing

func (m *VehicleLocation) GetBearing() float32

func (*VehicleLocation) GetLatitude

func (m *VehicleLocation) GetLatitude() float32

func (*VehicleLocation) GetLongitude

func (m *VehicleLocation) GetLongitude() float32

func (*VehicleLocation) GetRouteId

func (m *VehicleLocation) GetRouteId() string

func (*VehicleLocation) GetSpeed

func (m *VehicleLocation) GetSpeed() float32

func (*VehicleLocation) GetTimestamp

func (m *VehicleLocation) GetTimestamp() int64

func (*VehicleLocation) GetTripId

func (m *VehicleLocation) GetTripId() string

func (*VehicleLocation) GetVehicleId

func (m *VehicleLocation) GetVehicleId() string

func (*VehicleLocation) ProtoMessage

func (*VehicleLocation) ProtoMessage()

func (*VehicleLocation) Reset

func (m *VehicleLocation) Reset()

func (*VehicleLocation) String

func (m *VehicleLocation) 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:"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:"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 `protobuf:"varint,4,opt,name=current_status,enum=main.VehiclePosition_VehicleStopStatus,def=2" json:"current_status,omitempty"`
	// 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 `protobuf:"varint,6,opt,name=congestion_level,enum=main.VehiclePosition_CongestionLevel" json:"congestion_level,omitempty"`
	OccupancyStatus  *VehiclePosition_OccupancyStatus `protobuf:"varint,9,opt,name=occupancy_status,enum=main.VehiclePosition_OccupancyStatus" json:"occupancy_status,omitempty"`
	XXX_extensions   map[int32]proto.Extension        `json:"-"`
	XXX_unrecognized []byte                           `json:"-"`
}

Realtime positioning information for a given vehicle.

func (*VehiclePosition) ExtensionMap

func (m *VehiclePosition) ExtensionMap() map[int32]proto.Extension

func (*VehiclePosition) ExtensionRangeArray

func (*VehiclePosition) ExtensionRangeArray() []proto.ExtensionRange

func (*VehiclePosition) GetCongestionLevel

func (m *VehiclePosition) GetCongestionLevel() VehiclePosition_CongestionLevel

func (*VehiclePosition) GetCurrentStatus

func (m *VehiclePosition) GetCurrentStatus() VehiclePosition_VehicleStopStatus

func (*VehiclePosition) GetCurrentStopSequence

func (m *VehiclePosition) GetCurrentStopSequence() uint32

func (*VehiclePosition) GetOccupancyStatus

func (m *VehiclePosition) GetOccupancyStatus() VehiclePosition_OccupancyStatus

func (*VehiclePosition) GetPosition

func (m *VehiclePosition) GetPosition() *Position

func (*VehiclePosition) GetStopId

func (m *VehiclePosition) GetStopId() string

func (*VehiclePosition) GetTimestamp

func (m *VehiclePosition) GetTimestamp() uint64

func (*VehiclePosition) GetTrip

func (m *VehiclePosition) GetTrip() *TripDescriptor

func (*VehiclePosition) GetVehicle

func (m *VehiclePosition) GetVehicle() *VehicleDescriptor

func (*VehiclePosition) ProtoMessage

func (*VehiclePosition) ProtoMessage()

func (*VehiclePosition) Reset

func (m *VehiclePosition) Reset()

func (*VehiclePosition) String

func (m *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
)

func (VehiclePosition_CongestionLevel) Enum

func (VehiclePosition_CongestionLevel) String

func (*VehiclePosition_CongestionLevel) UnmarshalJSON

func (x *VehiclePosition_CongestionLevel) UnmarshalJSON(data []byte) error

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) Enum

func (VehiclePosition_OccupancyStatus) String

func (*VehiclePosition_OccupancyStatus) UnmarshalJSON

func (x *VehiclePosition_OccupancyStatus) UnmarshalJSON(data []byte) error

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
)
const Default_VehiclePosition_CurrentStatus VehiclePosition_VehicleStopStatus = VehiclePosition_IN_TRANSIT_TO

func (VehiclePosition_VehicleStopStatus) Enum

func (VehiclePosition_VehicleStopStatus) String

func (*VehiclePosition_VehicleStopStatus) UnmarshalJSON

func (x *VehiclePosition_VehicleStopStatus) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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