idfm-api/types/ptobject.go

13 lines
430 B
Go
Raw Normal View History

2023-07-14 10:23:33 +00:00
package types
// A PTObject is a Public Transport object: StopArea, Trip, Line, Route, Network, etc.
type PTObject interface{}
// A Trip corresponds to a scheduled vehicle circulation (and all its linked real-time and disrupted routes).
//
// An example : a train, routing a Paris to Lyon itinerary every day at 06h29, is the “Trip” named “6641”.
type Trip struct {
ID ID `json:"id"`
Name string `json:"name"`
}