Versions in this module Expand all Collapse all v1 v1.0.1 Mar 9, 2023 v1.0.0 Nov 19, 2019 Changes in this version + type Client struct + func NewClient(baseURL, username, password string) *Client + func NewCustomClient(c *http.Client, baseURL, username, password string) *Client + func (c *Client) StationData(ctx context.Context, station string) (*Station, error) + func (c *Client) StationList(ctx context.Context) ([]Station, error) + func (c *Client) VehicleData(ctx context.Context) ([]Train, error) + type LatLng struct + Lat float64 + Lng float64 + type Station struct + Aliases []string + Departures []StationTrain + ID string + Name string + type StationStop struct + Departed bool + Name string + Time time.Time + type StationTrain struct + Destination string + Index int + InlineMsg string + LatLng *LatLng + LatLngTimestamp time.Time + Line string + LineAbbrv string + ScheduledDepartureDate time.Time + SecondsLate time.Duration + Status string + Stops []StationStop + Track string + TrainID int + type Train struct + Direction string + ID int + LastModified time.Time + LatLng *LatLng + Line string + NextStop string + ScheduledDepartureTime time.Time + SecondsLate time.Duration