Files
puvetra/internal/types/types.go
2026-06-13 09:11:52 +02:00

64 lines
917 B
Go

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
}