Versions in this module Expand all Collapse all v0 v0.4.0 Sep 26, 2017 Changes in this version type Client + Forecast *ForecastService + type ForecastLine struct + DestinationSign string + Direction int64 + FullSign string + Id int64 + OriginSign string + QuantityVehicles int64 + Vehicles []*ForecastVehicle + type ForecastLineResponse struct + Hour string + Stops []*ForecastLineStop + type ForecastLineStop struct + Id int64 + Latitude float64 + Longitude float64 + Name string + Vehicles []*ForecastVehicle + type ForecastResponse struct + Hour string + Stop ForecastStop + type ForecastService service + func (r *ForecastService) Search(stopId int, lineId int) (ForecastStop, error) + func (r *ForecastService) SearchByLine(lineId int) ([]*ForecastLineStop, error) + func (r *ForecastService) SearchByStop(stopId int) (ForecastStop, error) + type ForecastStop struct + Id int64 + Latitude float64 + Lines []*ForecastLine + Longitude float64 + Name string + type ForecastVehicle struct + Accessible bool + Hour string + Latitude float64 + Longitude float64 + Prefix int64 + UpdateTime string v0.3.0 Sep 20, 2017 Changes in this version type Client + VehiclePosition *VehiclePositionService + type VehiclePosition struct + Accessible bool + Hour string + Latitude float64 + Longitude float64 + Prefix int64 + type VehiclePositionLine struct + DestinationSign string + Direction int64 + FullSign string + Id int64 + OriginSign string + QuantityVehicles int64 + Vehicles []*VehiclePosition + type VehiclePositionLineResponse struct + Hour string + Vehicles []*VehiclePosition + type VehiclePositionResponse struct + Hour string + Lines []*VehiclePositionLine + type VehiclePositionService service + func (r *VehiclePositionService) All() ([]*VehiclePositionLine, error) + func (r *VehiclePositionService) SearchByCompany(companyId int) ([]*VehiclePositionLine, error) + func (r *VehiclePositionService) SearchByLine(lineId int) ([]*VehiclePosition, error) v0.2.0 Sep 18, 2017 Changes in this version type Client + Company *CompanyService + Corridor *CorridorService + Line *LineService + Stop *StopService + type Company struct + Id int64 + Name string + OperationId int64 + type CompanyOperation struct + Companies []*Company + Id int64 + type CompanyResponse struct + Hour string + Operations []*CompanyOperation + type CompanyService service + func (r *CompanyService) All() ([]*CompanyOperation, error) + type Corridor struct + Id int64 + Name string + type CorridorService service + func (r *CorridorService) All() ([]*Corridor, error) + type Line struct + Circular bool + Direction int64 + DisplaySign string + Id int64 + MainTerminal string + SecondaryTerminal string + Type int64 + type LineService service + func (r *LineService) Search(filter string) ([]*Line, error) + func (r *LineService) SearchByDirection(filter string, direction int) ([]*Line, error) + type Stop struct + Address string + Id int64 + Latitude float64 + Longitude float64 + Name string + type StopService service + func (r *StopService) Search(filter string) ([]*Stop, error) + func (r *StopService) SearchByCorridor(corridorId int) ([]*Stop, error) + func (r *StopService) SearchByLine(lineId int) ([]*Stop, error) v0.1.0 Sep 17, 2017 Changes in this version + type Client struct + BaseURL *url.URL + HTTP *http.Client + Route *RouteService + Token string + func NewClient(token string) *Client + func (c *Client) Authenticate() (bool, error) + func (c *Client) Request(method, path string, bodyParams interface{}, decoder interface{}) (*http.Response, error) + type Route struct + Cl int64 + Lc bool + Lt string + Sl int64 + Tl int64 + Tp string + Ts string + type RouteService service + func (r *RouteService) Search(filter string) ([]*Route, error) + func (r *RouteService) SearchByDirection(filter string, direction int) ([]*Route, error)