Versions in this module Expand all Collapse all v0 v0.1.0 May 9, 2019 Changes in this version + type AllDayParking struct + NonRiderCost float64 + RiderCost float64 + SaturdayNonRiderCost float64 + SaturdayRiderCost float64 + TotalCount int + type GetLinesResponse struct + Lines []LineResponse + XMLName xml.Name + type GetParkingInformationResponse struct + ParkingInformation []StationParking + XMLName xml.Name + type GetPathBetweenStationsResponse struct + Path []PathItem + XMLName xml.Name + type GetStationEntrancesRequest struct + Latitude float64 + Longitude float64 + Radius float64 + type GetStationEntrancesResponse struct + Entrances []StationEntrance + XMLName xml.Name + type GetStationInformationResponse struct + Address StationAddress + Latitude float64 + LineCode1 string + LineCode2 string + Longitude float64 + Name string + StationCode string + StationTogether1 string + StationTogether2 string + XMLName xml.Name + type GetStationListResponse struct + Stations []GetStationListResponseItem + XMLName xml.Name + type GetStationListResponseItem struct + Address StationAddress + Latitude float64 + LineCode1 string + LineCode2 string + LineCode3 string + LineCode4 string + Longitude float64 + Name string + StationCode string + StationTogether1 string + StationTogether2 string + type GetStationTimingsResponse struct + StationTimes []StationTime + XMLName xml.Name + type GetStationToStationInformationResponse struct + StationToStationInformation []StationToStation + XMLName xml.Name + type LineResponse struct + DisplayName string + EndStationCode string + InternalDestination1 string + InternalDestination2 string + LineCode string + StartStationCode string + type PathItem struct + DistanceToPreviousStation int + LineCode string + SequenceNumber int + StationCode string + StationName string + type RailFare struct + OffPeakTime float64 + PeakTime float64 + SeniorDisabled float64 + type RailInfo interface + GetLines func() (*GetLinesResponse, error) + GetParkingInformation func(stationCode string) (*GetParkingInformationResponse, error) + GetPathBetweenStations func(fromStation, toStation string) (*GetPathBetweenStationsResponse, error) + GetStationEntrances func(getStationEntranceRequest *GetStationEntrancesRequest) (*GetStationEntrancesResponse, error) + GetStationInformation func(stationCode string) (*GetStationInformationResponse, error) + GetStationList func(lineCode string) (*GetStationListResponse, error) + GetStationTimings func(stationCode string) (*GetStationTimingsResponse, error) + GetStationToStationInformation func(fromStation, toStation string) (*GetStationToStationInformationResponse, error) + type Service struct + func NewService(client *wmata.Client, responseType wmata.ResponseType) *Service + func (railService *Service) GetLines() (*GetLinesResponse, error) + func (railService *Service) GetParkingInformation(stationCode string) (*GetParkingInformationResponse, error) + func (railService *Service) GetPathBetweenStations(fromStation, toStation string) (*GetPathBetweenStationsResponse, error) + func (railService *Service) GetStationEntrances(getStationEntranceRequest *GetStationEntrancesRequest) (*GetStationEntrancesResponse, error) + func (railService *Service) GetStationInformation(stationCode string) (*GetStationInformationResponse, error) + func (railService *Service) GetStationList(lineCode string) (*GetStationListResponse, error) + func (railService *Service) GetStationTimings(stationCode string) (*GetStationTimingsResponse, error) + func (railService *Service) GetStationToStationInformation(fromStation, toStation string) (*GetStationToStationInformationResponse, error) + type ShortTermParking struct + Notes string + TotalCount int + type StationAddress struct + City string + State string + Street string + Zip string + type StationDayItem struct + FirstTrains []StationTrainInformation + LastTrains []StationTrainInformation + OpeningTime string + type StationEntrance struct + Description string + ID string + Latitude float64 + Longitude float64 + Name string + StationCode1 string + StationCode2 string + type StationParking struct + AllDay AllDayParking + Notes string + ShortTerm ShortTermParking + StationCode string + type StationTime struct + Friday StationDayItem + Monday StationDayItem + Saturday StationDayItem + StationCode string + StationName string + Sunday StationDayItem + Thursday StationDayItem + Tuesday StationDayItem + Wednesday StationDayItem + type StationToStation struct + CompositeMiles float64 + DestinationStation string + Fare RailFare + SourceStation string + Time int + type StationTrainInformation struct + DestinationStation string + Time string