Include types from gonavitia/navitia
This commit is contained in:
parent
82769f923e
commit
24b1102761
157 changed files with 26062 additions and 116 deletions
12
types/ptobject.go
Normal file
12
types/ptobject.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue