initial commit
This commit is contained in:
63
internal/types/types.go
Normal file
63
internal/types/types.go
Normal file
@@ -0,0 +1,63 @@
|
||||
package types
|
||||
|
||||
|
||||
type TripMeta struct {
|
||||
TripId string
|
||||
RouteShortName string
|
||||
DisplayName string `json:"omitempty"`
|
||||
}
|
||||
|
||||
type MapTrip struct {
|
||||
Trips []TripMeta
|
||||
RouteColor string
|
||||
Mode string
|
||||
Distance float32
|
||||
Departure string
|
||||
Arrival string
|
||||
From Place
|
||||
To Place
|
||||
ScheduledDeparture string
|
||||
ScheduledArrival string
|
||||
RealTime bool
|
||||
Polyline string
|
||||
}
|
||||
|
||||
type Trip struct {
|
||||
Duration int64
|
||||
StartTime string
|
||||
EndTine string
|
||||
Transfers int
|
||||
Id string
|
||||
Legs []TripLeg
|
||||
}
|
||||
|
||||
type TripLeg struct {
|
||||
Mode string
|
||||
From Place
|
||||
To Place
|
||||
Duration int64
|
||||
StartTime string
|
||||
EndTime string
|
||||
ScheduledStartTime string
|
||||
ScheduledEndTime string
|
||||
RealTime bool
|
||||
Scheduled bool
|
||||
Distance float32
|
||||
Headsign string
|
||||
TripFrom Place
|
||||
TripTo Place
|
||||
}
|
||||
|
||||
type Place struct {
|
||||
Name string
|
||||
StopId string
|
||||
Lat float32
|
||||
Lon float32
|
||||
Arrival string
|
||||
Departure string
|
||||
Track string
|
||||
StopCode string
|
||||
Description string
|
||||
Cancelled bool
|
||||
Modes []string
|
||||
}
|
||||
Reference in New Issue
Block a user