Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.8.0
type Options struct {
BestPractices bool
CheckFileLimits bool
IncludeServiceLevels bool
IncludeEntities bool
IncludeEntitiesLimit int
IncludeRouteGeometries bool
ValidateRealtimeMessages []string
copier.Options
}
Options defines options for the Validator.
type Result ¶ added in v0.8.0
type Result struct {
copier.Result // add to copier result:
Success bool `json:"success"`
FailureReason string `json:"failure_reason"`
SHA1 string `json:"sha1"`
EarliestCalendarDate tl.Date `json:"earliest_calendar_date"`
LatestCalendarDate tl.Date `json:"latest_calendar_date"`
Agencies []tl.Agency `json:"agencies"`
Routes []tl.Route `json:"routes"`
Stops []tl.Stop `json:"stops"`
FeedInfos []tl.FeedInfo `json:"feed_infos"`
Files []dmfr.FeedVersionFileInfo `json:"files"`
ServiceLevels []dmfr.FeedVersionServiceLevel `json:"service_levels"`
}
Result contains a validation report result,
type Validator ¶
type Validator struct {
Reader tl.Reader
Options Options
// contains filtered or unexported fields
}
Validator checks a GTFS source for errors and warnings.
func NewValidator ¶
NewValidator returns a new Validator.
func (*Validator) AddExtension ¶ added in v0.8.5
Click to show internal directories.
Click to hide internal directories.