Include types from gonavitia/navitia
This commit is contained in:
parent
82769f923e
commit
24b1102761
157 changed files with 26062 additions and 116 deletions
17
types/trafficreport.go
Normal file
17
types/trafficreport.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package types
|
||||
|
||||
// A TrafficReport made of a network, an array of lines and an array of stop_areas.
|
||||
// Named "traffic_report" in the Navitia doc
|
||||
//
|
||||
// See http://doc.navitia.io/#traffic-reports
|
||||
// TODO: Add the internal links
|
||||
type TrafficReport struct {
|
||||
// Main object (network) and links within its own disruptions
|
||||
Network Network `json:"network"`
|
||||
|
||||
// List of all disrupted Lines from the network
|
||||
Lines []Line `json:"lines"`
|
||||
|
||||
// List of all disrupted StopAreas from the network
|
||||
StopAreas []StopArea `json:"stop_areas"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue