Include types from gonavitia/navitia

This commit is contained in:
nemunaire 2023-07-14 12:23:33 +02:00
commit 24b1102761
157 changed files with 26062 additions and 116 deletions

13
types/impactedObject.go Normal file
View file

@ -0,0 +1,13 @@
package types
// An ImpactedObject describes a PTObject impacted by a Disruption with some additional info.
type ImpactedObject struct {
// The impacted public transport object
Object Container `json:"pt_object"`
// Only for line section impact, the impacted section
ImpactedSection ImpactedSection `json:"impacted_section"`
// Only for Trip delay, the list of delays, stop by stop
ImpactedStops []ImpactedStop `json:"impacted_stops"`
}