Versions in this module Expand all Collapse all v0 v0.0.1 Dec 14, 2018 Changes in this version + type APIClient struct + func NewClient(key string) *APIClient + func NewClientWithClient(key string, client *http.Client) *APIClient + func (c *APIClient) GetAllNextDepartures(stopCode, lineCode, destinationCode string) (GetAllNextDeparturesResponse, error) + func (c *APIClient) GetDisruptions() (GetDisruptionsResponse, error) + func (c *APIClient) GetLinesColor() (GetLinesResponse, error) + func (c *APIClient) GetNextDeparturesForLines(linesCodes, destinationsCodes []string) (GetNextDeparturesResponse, error) + func (c *APIClient) GetNextDeparturesForStop(stopCode, departureCode string) (GetNextDeparturesResponse, error) + func (c *APIClient) GetPhysicalStopsByName(name string) (GetPhysicalStopsResponse, error) + func (c *APIClient) GetPhysicalStopsFromCodes(codes []string) (GetPhysicalStopsResponse, error) + func (c *APIClient) GetStops() (GetStopResponse, error) + func (c *APIClient) GetStopsByLine(name string) (GetStopResponse, error) + func (c *APIClient) GetStopsByName(name string) (GetStopResponse, error) + func (c *APIClient) GetStopsClosedToLatLng(pos LatLng) (GetStopResponse, error) + func (c *APIClient) GetStopsFromCodes(codes []string) (GetStopResponse, error) + func (c *APIClient) GetThermometer(departureCode string) (GetThermometerResponse, error) + func (c *APIClient) GetThermometerPhysicalStops(departureCode string) (GetThermometerResponse, error) + type APIError struct + ErrorCode int + ErrorMessage string + Timestamp APITime + type APITime struct + func (t *APITime) UnmarshalJSON(b []byte) error + func (t APITime) Equal(o time.Time) bool + func (t APITime) String() string + type Connection struct + DestinationCode string + DestinationName string + LineCode string + type Coordinates struct + Latitude float64 + Longitude float64 + Referential string + type Departure struct + DepartureCode int64 + Line Connection + Reliability string + Timestamp string + WaitingTime string + WaitingTimeMillis int64 + type Deviation struct + DeviationCode string + type Disruption struct + Code string + Consequence string + LineCode string + Nature string + Place string + StopName string + Timestamp APITime + type GetAllNextDeparturesResponse struct + Departures []Departure + Stop Stop + Timestamp APITime + type GetDisruptionsResponse struct + Disruptions []Disruption + Timestamp APITime + type GetLinesResponse struct + Colors []LineColor + Timestamp APITime + type GetNextDeparturesResponse struct + Departures []NextDeparture + Stop Stop + Timestamp APITime + type GetPhysicalStopsResponse struct + Stops []PhysicalStopInfos + Timestamp APITime + type GetStopResponse struct + Stops []Stop + Timestamp APITime + type GetThermometerResponse struct + DestinationCode string + DestinationName string + Deviations []Deviation + Disruption Disruption + LineCode string + Steps []Step + Stop Stop + Timestamp APITime + type LatLng struct + Lat float64 + Lng float64 + type LineColor struct + Background string + Hexa string + LineCode string + Text string + type NextDeparture struct + Characteristics string + ConnectionWaitingTime int + Deviation Deviation + Disruptions []Disruption + VehiculeNo int64 + VehiculeType string + type PhysicalStop struct + Connections []Connection + Coordinates Coordinates + PhysicalStopCode string + StopName string + type PhysicalStopInfos struct + PhysicalStops []PhysicalStop + StopCode string + StopName string + type Step struct + DepartureCode int64 + Deviation bool + DeviationCode string + Reliability string + Stop Stop + Timestamp string + Visible bool + type Stop struct + Code string + Connections []Connection + Distance int + Name string + type UnknownResponseError struct + func (e UnknownResponseError) Error() string