-
Notifications
You must be signed in to change notification settings - Fork 1
/
feed_station_status.go
42 lines (40 loc) · 1.84 KB
/
feed_station_status.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
package gbfs
type (
// FeedStationStatus ...
FeedStationStatus struct {
FeedCommon
Data *FeedStationStatusData `json:"data"`
}
// FeedStationStatusData ...
FeedStationStatusData struct {
Stations []*FeedStationStatusStation `json:"stations"`
}
// FeedStationStatusStation ...
FeedStationStatusStation struct {
StationID *ID `json:"station_id"`
NumBikesAvailable *int64 `json:"num_bikes_available"`
NumBikesDisabled *int64 `json:"num_bikes_disabled,omitempty"`
NumDocksAvailable *int64 `json:"num_docks_available,omitempty"` // conditionally required (v2.0)
NumDocksDisabled *int64 `json:"num_docks_disabled,omitempty"`
IsInstalled *Boolean `json:"is_installed"`
IsRenting *Boolean `json:"is_renting"`
IsReturning *Boolean `json:"is_returning"`
LastReported *Timestamp `json:"last_reported"`
VehicleTypesAvailable []*FeedStationStatusVehicleType `json:"vehicle_types_available,omitempty"` // conditionally required (v2.1-RC)
VehicleDocksAvailable []*FeedStationStatusVehicleDock `json:"vehicle_docks_available,omitempty"` // conditionally required (v2.1-RC)
}
// FeedStationStatusVehicleType ...
FeedStationStatusVehicleType struct {
VehicleTypeID *ID `json:"vehicle_type_id"` // (v2.1-RC)
Count *int64 `json:"count"` // (v2.1-RC)
}
// FeedStationStatusVehicleDock ...
FeedStationStatusVehicleDock struct {
VehicleTypeIDs []*ID `json:"vehicle_type_ids"` // (v2.1-RC)
Count *int64 `json:"count"` // (v2.1-RC)
}
)
// Name ...
func (f *FeedStationStatus) Name() string {
return FeedNameStationStatus
}