Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TtssListStopsURL = [...]string{
BUS: "http://91.223.13.70:80/internetservice/geoserviceDispatcher/services/stopinfo/stops",
TRAM: "http://185.70.182.51:80/internetservice/geoserviceDispatcher/services/stopinfo/stops",
}
TtssListStopsURL deccribes TTSS API endpoints used to fetch all stops. Separate endpoints exists for buses and trams.
View Source
var TtssStopDearturesURLs = [...]string{ BUS: "http://91.223.13.70/internetservice/services/passageInfo/stopPassages/stop", TRAM: "http://185.70.182.51/internetservice/services/passageInfo/stopPassages/stop", }
TtssStopDearturesURLs deccribes TTSS API endpoints used to query departures. Separate endpoints exists for buses and trams.
Functions ¶
func GetStopDepartures ¶
GetStopDepartures returns bus and tram StopDepartures from given Stop.
Types ¶
type Departure ¶
type Departure struct { PlannedTime string Status string ActualRelativeTime int32 Direction string PatternText string }
Departure describe one Departure - tram or bus from given stop.
type StopDepartures ¶
type StopDepartures struct {
Actual []Departure
}
StopDepartures includes all departures from given Stop.
type Stops ¶
Stops ShortName to Name
func GetAllStopsByURL ¶
GetAllStopsByURL fetches Stops from given endpoint.
Click to show internal directories.
Click to hide internal directories.