Versions in this module Expand all Collapse all v0 v0.1.0 May 9, 2019 Changes in this version + type BusInfo interface + GetPositions func(request *GetPositionsRequest) (*GetPositionsResponse, error) + GetRouteDetails func(routeID, date string) (*GetRouteDetailsResponse, error) + GetRoutes func() (*GetRoutesResponse, error) + GetSchedule func(routeID, date string, includeVariations bool) (*GetScheduleResponse, error) + GetScheduleAtStop func(stopID, date string) (*GetScheduleAtStopResponse, error) + GetStops func(request *GetStopsRequest) (*GetStopsResponse, error) + type BusPosition struct + BlockNumber string + DateTime string + Deviation int + DirectionNumber int + DirectionText string + Latitude float64 + Longitude float64 + RouteID string + TripDestination string + TripEndTime string + TripID string + TripStartTime string + VehicleID string + type Direction struct + DirectionNumber string + DirectionText string + Shapes []ShapePoint + Stops []Stop + TripDestination string + type GetPositionsRequest struct + Latitude float64 + Longitude float64 + Radius float64 + RouteID string + type GetPositionsResponse struct + BusPositions []BusPosition + XMLName xml.Name + type GetRouteDetailsResponse struct + Direction0 Direction + Direction1 Direction + Name string + RouteID string + XMLName xml.Name + type GetRoutesResponse struct + Routes []Route + XMLName xml.Name + type GetScheduleAtStopResponse struct + ScheduleArrivals []ScheduleArrival + StopInfo Stop + XMLName xml.Name + type GetScheduleResponse struct + Direction0 []Trip + Direction1 []Trip + Name string + XMLName xml.Name + type GetStopsRequest struct + Latitude float64 + Longitude float64 + Radius float64 + type GetStopsResponse struct + Stops []Stop + XMLName xml.Name + type Route struct + LineDescription string + Name string + RouteID string + type ScheduleArrival struct + DirectionNumber string + EndTime string + RouteID string + ScheduleTime string + StartTime string + TripDestination string + TripDirection string + TripID string + type Service struct + func NewService(client *wmata.Client, responseType wmata.ResponseType) *Service + func (busService *Service) GetPositions(request *GetPositionsRequest) (*GetPositionsResponse, error) + func (busService *Service) GetRouteDetails(routeID, date string) (*GetRouteDetailsResponse, error) + func (busService *Service) GetRoutes() (*GetRoutesResponse, error) + func (busService *Service) GetSchedule(routeID, date string, includeVariations bool) (*GetScheduleResponse, error) + func (busService *Service) GetScheduleAtStop(stopID, date string) (*GetScheduleAtStopResponse, error) + func (busService *Service) GetStops(request *GetStopsRequest) (*GetStopsResponse, error) + type ShapePoint struct + Latitude float64 + Longitude float64 + SequenceNumber int + type Stop struct + Latitude float64 + Longitude float64 + Name string + Routes []string + StopID string + type StopTime struct + StopID string + StopName string + StopSequence int + Time string + type Trip struct + DirectionNumber string + EndTime string + RouteID string + StartTime string + StopTimes []StopTime + TripDestination string + TripDirection string + TripID string