Partially working draft
This commit is contained in:
@@ -27,14 +27,15 @@ type Bus struct {
|
||||
LineRef string `json:"lineRef"`
|
||||
}
|
||||
|
||||
type BusStopSchedules struct {
|
||||
type BusStopBuses struct {
|
||||
Buses [] Bus `json:"bus"`
|
||||
BusStopId string `json:"busStopId"`
|
||||
Suspended string `json:"isSuspended"`
|
||||
}
|
||||
|
||||
type BusSchedule struct {
|
||||
RefreshTime int `json:"appRefreshTimeInSecond,string"`
|
||||
BusStops [] BusStopSchedules `json:"busStop"`
|
||||
BusStops [] BusStopBuses `json:"busStop"`
|
||||
}
|
||||
|
||||
func getSchedule( lang string, routeName string ) ( *BusSchedule, error ) {
|
||||
|
||||
Reference in New Issue
Block a user