-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfeed_free_bike_status.go
31 lines (29 loc) · 1.05 KB
/
feed_free_bike_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
package gbfs
type (
// FeedFreeBikeStatus ...
FeedFreeBikeStatus struct {
FeedCommon
Data *FeedFreeBikeStatusData `json:"data"`
}
// FeedFreeBikeStatusData ...
FeedFreeBikeStatusData struct {
Bikes []*FeedFreeBikeStatusBike `json:"bikes"`
}
// FeedFreeBikeStatusBike ...
FeedFreeBikeStatusBike struct {
BikeID *ID `json:"bike_id"`
SystemID *ID `json:"system_id,omitempty"` // (v3.0-RC)
Lat *Coordinate `json:"lat"`
Lon *Coordinate `json:"lon"`
IsReserved *Boolean `json:"is_reserved"`
IsDisabled *Boolean `json:"is_disabled"`
RentalURIs *RentalURIs `json:"rental_uris,omitempty"` // (v1.1)
VehicleTypeID *ID `json:"vehicle_type_id,omitempty"` // (v2.1-RC)
LastReported *Timestamp `json:"last_reported,omitempty"` // (v2.1-RC)
CurrentRangeMeters *float64 `json:"current_range_meters,omitempty"` // (v2.1-RC)
}
)
// Name ...
func (f *FeedFreeBikeStatus) Name() string {
return FeedNameFreeBikeStatus
}