-
Notifications
You must be signed in to change notification settings - Fork 1
/
feed_station_information.go
38 lines (36 loc) · 1.68 KB
/
feed_station_information.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
package gbfs
type (
// FeedStationInformation ...
FeedStationInformation struct {
FeedCommon
Data *FeedStationInformationData `json:"data"`
}
// FeedStationInformationData ...
FeedStationInformationData struct {
Stations []*FeedStationInformationStation `json:"stations"`
}
// FeedStationInformationStation ...
FeedStationInformationStation struct {
StationID *ID `json:"station_id"`
Name *string `json:"name"`
ShortName *string `json:"short_name,omitempty"`
Lat *Coordinate `json:"lat"`
Lon *Coordinate `json:"lon"`
Address *string `json:"address,omitempty"`
CrossStreet *string `json:"cross_street,omitempty"`
RegionID *ID `json:"region_id,omitempty"`
PostCode *string `json:"post_code,omitempty"`
RentalMethods []string `json:"rental_methods,omitempty"`
IsVirtualStation *Boolean `json:"is_virtual_station,omitempty"` // (v2.1-RC)
StationArea *GeoJSONGeometry `json:"station_area,omitempty"` // (v2.1-RC)
Capacity *int64 `json:"capacity,omitempty"`
VehicleCapacity map[ID]int64 `json:"vehicle_capacity,omitempty"` // (v2.1-RC)
VehicleTypeCapacity map[ID]int64 `json:"vehicle_type_capacity,omitempty"` // (v2.1-RC)
IsValetStation *Boolean `json:"is_valet_station,omitempty"` // (v2.1-RC)
RentalURIs *RentalURIs `json:"rental_uris,omitempty"` // (v1.1)
}
)
// Name ...
func (f *FeedStationInformation) Name() string {
return FeedNameStationInformation
}