Documentation ¶
Index ¶
- Constants
- func GetStops() (res map[string]*protocol.Stop, err error)
- func GetTrip(tripID string) (*protocol.Trip, error)
- func GetTripPath(tripID string) []protocol.Location
- func GetVehicle(vehicleID string) protocol.Vehicle
- func GetVehicles() (res map[string]*protocol.Vehicle, err error)
- type DepartureStatus
- type Platform
- type StopDepartures
- type StopDetails
Constants ¶
View Source
const IDPrefix = "kvg-"
Variables ¶
This section is empty.
Functions ¶
func GetTripPath ¶
func GetVehicle ¶
Types ¶
type DepartureStatus ¶
type DepartureStatus string
type Platform ¶
type Platform struct { StopPoint string `json:"stopPoint"` ShortName string `json:"shortName"` Label string `json:"label"` }
func GetPlatforms ¶
type StopDepartures ¶
type StopDepartures struct { Departures []departure `json:"actual"` GeneralAlerts []alert `json:"generalAlerts"` Routes []routes `json:"routes"` }
func GetPlatformDepartures ¶
func GetPlatformDepartures(stopPoint string) (*StopDepartures, error)
type StopDetails ¶
type StopDetails struct { Departures []protocol.StopArrival Alerts []string }
func GetStopDetails ¶
func GetStopDetails(stopShortName string) (*StopDetails, error)
Click to show internal directories.
Click to hide internal directories.