-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraindata_structs.go
96 lines (86 loc) · 3.66 KB
/
traindata_structs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package njtransit
type GetStationListResponse struct {
Stations []GetStationListResponseStation `xml:"STATION"`
}
type GetStationListResponseStation struct {
TwoChar string `xml:"STATION_2CHAR"`
Name string `xml:"STATIONNAME"`
}
type GetStationScheduleResponse struct {
TwoChar string `xml:"STATION_2CHAR"`
Name string `xml:"STATIONNAME"`
Items []GetStationScheduleResponseItem `xml:"ITEMS>ITEM"`
}
type GetStationScheduleResponseItem struct {
ItemIndex int `xml:"ITEM_INDEX"`
SchedDepDate string `xml:"SCHED_DEP_DATE"`
Destination string `xml:"DESTINATION"`
SchedTrack string `xml:"SCHED_TRACK"` // see Appendix II
TrainID string `xml:"TRAIN_ID"`
Line string `xml:"LINE"`
StationPosition string `xml:"STATION_POSITION"` // see Appendix III
Direction string `xml:"DIRECTION"`
DwellTimeSeconds int `xml:"DWELL_TIME"`
PermConnectingTrainID string `xml:"PERM_CONNECTING_TRAIN_ID"`
PermPickup string `xml:"PERM_PICKUP"`
PermDropoff string `xml:"PERM_DROPOFF"`
StopCode string `xml:"STOP_CODE"` // see Appendix IV
StoppingAt string `xml:"STOPPING_AT"`
}
type GetStationMessageResponse struct {
TwoChar string `xml:"STATION_2CHAR"`
Name string `xml:"STATIONNAME"`
BannerMessage string `xml:"BANNERMSGS"`
Items []*GetStationMessageResponseItem `xml:"ITEMS>ITEM"`
}
type GetStationMessageResponseItem struct {
ItemIndex string `xml:"ITEM_INDEX"`
SchedDepDate string `xml:"SCHED_DEP_DATE"`
Destination string `xml:"DESTINATION"`
Track string `xml:"TRACK"`
Line string `xml:"LINE"`
TrainID string `xml:"TRAIN_ID"`
ConnectingTrainID string `xml:"CONNECTING_TRAIN_ID"`
Status string `xml:"STATUS"`
SecLate string `xml:"SEC_LATE"`
LastModified string `xml:"LAST_MODIFIED"`
BackgroundColor string `xml:"BACKCOLOR"`
ForegroundColor string `xml:"FORECOLOR"`
ShadowColor string `xml:"SHADOWCOLOR"`
GPSLatitude string `xml:"GPSLATITUDE"`
GPSLongitude string `xml:"GPSLONGITUDE"`
GPSTime string `xml:"GPSTIME"`
StationPosition string `xml:"STATION_POSITION"`
LineAbbreviation string `xml:"LINEABBREVIATION"`
InlineMessage string `xml:"INLINEMSG"`
}
type GetTrainScheduleResponse struct {
}
type GetTrainSchedule19RecResponse struct {
TwoChar string `xml:"STATION_2CHAR"`
Name string `xml:"STATIONNAME"`
Items []*GetTrainSchedule19RecResponseItem `xml:"ITEMS>ITEM"`
}
type GetTrainSchedule19RecResponseItem struct {
ItemIndex int `xml:"ITEM_INDEX"`
SchedDepDate string `xml:"SCHED_DEP_DATE"`
Destination string `xml:"DESTINATION"`
Track string `xml:"TRACK"`
Line string `xml:"LINE"`
TrainID string `xml:"TRAIN_ID"`
ConnectingTrainID string `xml:"CONNECTING_TRAIN_ID"`
Status string `xml:"STATUS"`
SecLate int `xml:"SEC_LATE"`
LastModified string `xml:"LAST_MODIFIED"`
BackgroundColor string `xml:"BACKCOLOR"`
ForegroundColor string `xml:"FORECOLOR"`
ShadowColor string `xml:"SHADOWCOLOR"`
GPSLatitude string `xml:"GPSLATITUDE"`
GPSLongitude string `xml:"GPSLONGITUDE"`
GPSTime string `xml:"GPSTIME"`
StationPosition string `xml:"STATION_POSITION"`
LineAbbreviation string `xml:"LINEABBREVIATION"`
InlineMessage string `xml:"INLINEMSG"`
}
type GetVehicleDataResponse struct {
}