Documentation ¶
Index ¶
- func Delays() []*gtfs.TripDescriptor
- func Entities() []*gtfs.FeedEntity
- func Feed(url string) gtfs.FeedMessage
- type Tracker
- func (t *Tracker) FutureArrivalTime(r *ride.Ride, s *ride.Station) time.Time
- func (t *Tracker) HasArrived(r *ride.Ride, s *ride.Station) (bool, error)
- func (t *Tracker) NotifyWhenArrive(r *ride.Ride, s *ride.Station) (chan bool, error)
- func (t *Tracker) PastArrivalTime(r *ride.Ride, s *ride.Station) time.Time
- func (t *Tracker) RideCapacity(r *ride.Ride) (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delays ¶
func Delays() []*gtfs.TripDescriptor
func Entities ¶
func Entities() []*gtfs.FeedEntity
func Feed ¶
func Feed(url string) gtfs.FeedMessage
Types ¶
type Tracker ¶
type Tracker struct{}
Tracker manages the state of ride execution.
func (*Tracker) FutureArrivalTime ¶
FutureArrivalTime returns the when the ride will reach the station.
func (*Tracker) HasArrived ¶
HasArrived returns whether the ride has reached the station. returns error if ride's route those not include the station
func (*Tracker) NotifyWhenArrive ¶
NotifyWhenArrive send to a channel when ride will reach station.
func (*Tracker) PastArrivalTime ¶
PastArrivalTime returns the when the ride had arrived the station.
Click to show internal directories.
Click to hide internal directories.