Partially working draft

This commit is contained in:
2022-09-14 21:21:39 +08:00
parent afb73b70ff
commit 534bc70f0f
6 changed files with 151 additions and 40 deletions

View File

@@ -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 ) {