ggtfs

package
v1.0.0-test-8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileNameAgency       = "agency.txt"
	FileNameCalendar     = "calendar.txt"
	FileNameCalendarDate = "calendar_dates.txt"
	FileNameRoutes       = "routes.txt"
	FileNameShapes       = "shapes.txt"
	FileNameStops        = "stops.txt"
	FileNameStopTimes    = "stop_times.txt"
	FileNameTrips        = "trips.txt"
)

Variables

This section is empty.

Functions

func IsLocationTypeValid

func IsLocationTypeValid(locationType *string) bool

func StringIsNilOrEmpty

func StringIsNilOrEmpty(id *string) bool

Types

type Agency

type Agency struct {
	Id         *string // agency_id 		(conditionally required)
	Name       *string // agency_name 		(required)
	URL        *string // agency_url 		(required)
	Timezone   *string // agency_timezone 	(required)
	Lang       *string // agency_lang 		(optional)
	Phone      *string // agency_phone 		(optional)
	FareURL    *string // agency_fare_url 	(optional)
	Email      *string // agency_email 		(optional)
	LineNumber int
}

func CreateAgency

func CreateAgency(row []string, headers map[string]int, lineNumber int) *Agency

func LoadAgencies

func LoadAgencies(reader *GtfsCsvReader) ([]*Agency, []error)

type AgencyIdRecommendedForRouteNotice

type AgencyIdRecommendedForRouteNotice struct {
	SingleLineNotice
}

func (AgencyIdRecommendedForRouteNotice) AsText

func (AgencyIdRecommendedForRouteNotice) Code

func (AgencyIdRecommendedForRouteNotice) Severity

type AgencyIdRequiredForRouteWhenMultipleAgenciesNotice

type AgencyIdRequiredForRouteWhenMultipleAgenciesNotice struct {
	SingleLineNotice
}

func (AgencyIdRequiredForRouteWhenMultipleAgenciesNotice) AsText

func (AgencyIdRequiredForRouteWhenMultipleAgenciesNotice) Code

func (AgencyIdRequiredForRouteWhenMultipleAgenciesNotice) Severity

type CalendarDate

type CalendarDate struct {
	ServiceId     *string // service_id 	(required)
	Date          *string // date 			(required)
	ExceptionType *string // exception_type (required)
	LineNumber    int
}

func CreateCalendarDate

func CreateCalendarDate(row []string, headers map[string]int, lineNumber int) *CalendarDate

func LoadCalendarDates

func LoadCalendarDates(reader *GtfsCsvReader) ([]*CalendarDate, []error)

type CalendarItem

type CalendarItem struct {
	ServiceId  *string // service_id 	(required)
	Monday     *string // monday		(required)
	Tuesday    *string // tuesday		(required)
	Wednesday  *string // wednesday		(required)
	Thursday   *string // thursday		(required)
	Friday     *string // friday		(required)
	Saturday   *string // saturday		(required)
	Sunday     *string // sunday		(required)
	StartDate  *string // start_date	(required)
	EndDate    *string // end_date		(required)
	LineNumber int
}

func CreateCalendarItem

func CreateCalendarItem(row []string, headers map[string]int, lineNumber int) *CalendarItem

func LoadCalendar

func LoadCalendar(reader *GtfsCsvReader) ([]*CalendarItem, []error)

type CsvEntity

type CsvEntity interface {
	*Agency | any
}

type FareAttributes

type FareAttributes struct {
	Id               string
	Price            float64
	CurrencyType     string
	PaymentMethod    int
	Transfers        int
	AgencyId         *string
	TransferDuration *uint
	LineNumber       int
}

type FareRule

type FareRule struct {
	Id            string
	RouteId       *string
	OriginId      *string
	DestinationId *string
	ContainsId    *string
	LineNumber    int
}

type FieldIsNotUniqueNotice

type FieldIsNotUniqueNotice struct {
	SingleLineNotice
}

func (FieldIsNotUniqueNotice) AsText

func (n FieldIsNotUniqueNotice) AsText() string

func (FieldIsNotUniqueNotice) Code

func (n FieldIsNotUniqueNotice) Code() string

func (FieldIsNotUniqueNotice) Severity

type FieldRequiredForStopLocationTypeNotice

type FieldRequiredForStopLocationTypeNotice struct {
	RequiredField string
	LocationType  string
	FileName      string
	Line          int
}

func (FieldRequiredForStopLocationTypeNotice) AsText

func (FieldRequiredForStopLocationTypeNotice) Code

func (FieldRequiredForStopLocationTypeNotice) Severity

type FieldType

type FieldType string
const (
	FieldTypeColor                FieldType = "Color"
	FieldTypeCurrencyCode         FieldType = "CurrencyCode"
	FieldTypeCurrencyAmount       FieldType = "CurrencyAmount"
	FieldTypeDate                 FieldType = "Date"
	FieldTypeEmail                FieldType = "Email"
	FieldTypeID                   FieldType = "ID"
	FieldTypeLanguageCode         FieldType = "LanguageCode"
	FieldTypeLatitude             FieldType = "Latitude"
	FieldTypeLongitude            FieldType = "Longitude"
	FieldTypeFloat                FieldType = "Float"
	FieldTypeInteger              FieldType = "Integer"
	FieldTypePhoneNumber          FieldType = "PhoneNumber"
	FieldTypeTime                 FieldType = "Time"
	FieldTypeText                 FieldType = "Text"
	FieldTypeTimezone             FieldType = "Timezone"
	FieldTypeURL                  FieldType = "URL"
	FieldTypeCalendarDay          FieldType = "CalendarDay"
	FieldTypeCalendarException    FieldType = "CalendarException"
	FieldTypeRouteType            FieldType = "RouteType"
	FieldTypeContinuousPickup     FieldType = "ContinuousPickup"
	FieldTypeContinuousDropOff    FieldType = "ContinuousDropOff"
	FieldTypeLocationType         FieldType = "LocationType"
	FieldTypeWheelchairBoarding   FieldType = "WheelchairBoarding"
	FieldTypePickupType           FieldType = "PickupType"
	FieldTypeDropOffType          FieldType = "DropOffType"
	FieldTypeTimepoint            FieldType = "Timepoint"
	FieldTypeDirectionId          FieldType = "DirectionId"
	FieldTypeWheelchairAccessible FieldType = "WheelchairAccessible"
	FieldTypeBikesAllowed         FieldType = "BikesAllowed"
)

type ForeignKeyViolationNotice

type ForeignKeyViolationNotice struct {
	ReferencingFileName  string
	ReferencingFieldName string
	ReferencedFieldName  string
	ReferencedFileName   string
	OffendingValue       string
	ReferencedAtRow      int
}

func (ForeignKeyViolationNotice) AsText

func (n ForeignKeyViolationNotice) AsText() string

func (ForeignKeyViolationNotice) Code

func (ForeignKeyViolationNotice) Severity

type Frequency

type Frequency struct {
	TripId      string
	StartTime   string
	EndTime     string
	HeadwaySecs uint
	ExactTimes  *int
	LineNumber  int
}

type GtfsCsvReader

type GtfsCsvReader struct {
	FailOnHeaderErrors bool
	SkipRowsWithErrors bool
	// contains filtered or unexported fields
}

func NewReader

func NewReader(r *csv.Reader) *GtfsCsvReader

type GtfsEntity

type GtfsEntity interface {
	*Shape | *Stop | *Agency | *CalendarItem | *CalendarDate | *Route | *StopTime | *Trip | any
}

type InvalidBikesAllowedNotice

type InvalidBikesAllowedNotice struct {
	SingleLineNotice
}

func (InvalidBikesAllowedNotice) AsText

func (n InvalidBikesAllowedNotice) AsText() string

func (InvalidBikesAllowedNotice) Code

func (InvalidBikesAllowedNotice) Severity

type InvalidCalendarDayNotice

type InvalidCalendarDayNotice struct {
	SingleLineNotice
}

func (InvalidCalendarDayNotice) AsText

func (n InvalidCalendarDayNotice) AsText() string

func (InvalidCalendarDayNotice) Code

func (InvalidCalendarDayNotice) Severity

type InvalidCalendarExceptionNotice

type InvalidCalendarExceptionNotice struct {
	SingleLineNotice
}

func (InvalidCalendarExceptionNotice) AsText

func (InvalidCalendarExceptionNotice) Code

func (InvalidCalendarExceptionNotice) Severity

type InvalidCharacterNotice

type InvalidCharacterNotice struct {
	SingleLineNotice
}

func (InvalidCharacterNotice) AsText

func (n InvalidCharacterNotice) AsText() string

func (InvalidCharacterNotice) Code

func (n InvalidCharacterNotice) Code() string

func (InvalidCharacterNotice) Severity

type InvalidColorNotice

type InvalidColorNotice struct {
	SingleLineNotice
}

func (InvalidColorNotice) AsText

func (n InvalidColorNotice) AsText() string

func (InvalidColorNotice) Code

func (n InvalidColorNotice) Code() string

func (InvalidColorNotice) Severity

type InvalidContinuousDropOffNotice

type InvalidContinuousDropOffNotice struct {
	SingleLineNotice
}

func (InvalidContinuousDropOffNotice) AsText

func (InvalidContinuousDropOffNotice) Code

func (InvalidContinuousDropOffNotice) Severity

type InvalidContinuousPickupNotice

type InvalidContinuousPickupNotice struct {
	SingleLineNotice
}

func (InvalidContinuousPickupNotice) AsText

func (InvalidContinuousPickupNotice) Code

func (InvalidContinuousPickupNotice) Severity

type InvalidCurrencyAmountNotice

type InvalidCurrencyAmountNotice struct {
	SingleLineNotice
}

func (InvalidCurrencyAmountNotice) AsText

func (InvalidCurrencyAmountNotice) Code

func (InvalidCurrencyAmountNotice) Severity

type InvalidCurrencyCodeNotice

type InvalidCurrencyCodeNotice struct {
	SingleLineNotice
}

func (InvalidCurrencyCodeNotice) AsText

func (n InvalidCurrencyCodeNotice) AsText() string

func (InvalidCurrencyCodeNotice) Code

func (InvalidCurrencyCodeNotice) Severity

type InvalidDateNotice

type InvalidDateNotice struct {
	SingleLineNotice
}

func (InvalidDateNotice) AsText

func (n InvalidDateNotice) AsText() string

func (InvalidDateNotice) Code

func (n InvalidDateNotice) Code() string

func (InvalidDateNotice) Severity

type InvalidDirectionIdNotice

type InvalidDirectionIdNotice struct {
	SingleLineNotice
}

func (InvalidDirectionIdNotice) AsText

func (n InvalidDirectionIdNotice) AsText() string

func (InvalidDirectionIdNotice) Code

func (InvalidDirectionIdNotice) Severity

type InvalidDropOffTypeNotice

type InvalidDropOffTypeNotice struct {
	SingleLineNotice
}

func (InvalidDropOffTypeNotice) AsText

func (n InvalidDropOffTypeNotice) AsText() string

func (InvalidDropOffTypeNotice) Code

func (InvalidDropOffTypeNotice) Severity

type InvalidEmailNotice

type InvalidEmailNotice struct {
	SingleLineNotice
}

func (InvalidEmailNotice) AsText

func (n InvalidEmailNotice) AsText() string

func (InvalidEmailNotice) Code

func (n InvalidEmailNotice) Code() string

func (InvalidEmailNotice) Severity

type InvalidFloatNotice

type InvalidFloatNotice struct {
	SingleLineNotice
}

func (InvalidFloatNotice) AsText

func (n InvalidFloatNotice) AsText() string

func (InvalidFloatNotice) Code

func (n InvalidFloatNotice) Code() string

func (InvalidFloatNotice) Severity

type InvalidIntegerNotice

type InvalidIntegerNotice struct {
	SingleLineNotice
}

func (InvalidIntegerNotice) AsText

func (n InvalidIntegerNotice) AsText() string

func (InvalidIntegerNotice) Code

func (n InvalidIntegerNotice) Code() string

func (InvalidIntegerNotice) Severity

type InvalidLanguageCodeNotice

type InvalidLanguageCodeNotice struct {
	SingleLineNotice
}

func (InvalidLanguageCodeNotice) AsText

func (n InvalidLanguageCodeNotice) AsText() string

func (InvalidLanguageCodeNotice) Code

func (InvalidLanguageCodeNotice) Severity

type InvalidLatitudeNotice

type InvalidLatitudeNotice struct {
	SingleLineNotice
}

func (InvalidLatitudeNotice) AsText

func (n InvalidLatitudeNotice) AsText() string

func (InvalidLatitudeNotice) Code

func (n InvalidLatitudeNotice) Code() string

func (InvalidLatitudeNotice) Severity

type InvalidLocationTypeNotice

type InvalidLocationTypeNotice struct {
	SingleLineNotice
}

func (InvalidLocationTypeNotice) AsText

func (n InvalidLocationTypeNotice) AsText() string

func (InvalidLocationTypeNotice) Code

func (InvalidLocationTypeNotice) Severity

type InvalidLongitudeNotice

type InvalidLongitudeNotice struct {
	SingleLineNotice
}

func (InvalidLongitudeNotice) AsText

func (n InvalidLongitudeNotice) AsText() string

func (InvalidLongitudeNotice) Code

func (n InvalidLongitudeNotice) Code() string

func (InvalidLongitudeNotice) Severity

type InvalidPhoneNumberNotice

type InvalidPhoneNumberNotice struct {
	SingleLineNotice
}

func (InvalidPhoneNumberNotice) AsText

func (n InvalidPhoneNumberNotice) AsText() string

func (InvalidPhoneNumberNotice) Code

func (InvalidPhoneNumberNotice) Severity

type InvalidPickupTypeNotice

type InvalidPickupTypeNotice struct {
	SingleLineNotice
}

func (InvalidPickupTypeNotice) AsText

func (n InvalidPickupTypeNotice) AsText() string

func (InvalidPickupTypeNotice) Code

func (InvalidPickupTypeNotice) Severity

type InvalidRouteTypeNotice

type InvalidRouteTypeNotice struct {
	SingleLineNotice
}

func (InvalidRouteTypeNotice) AsText

func (n InvalidRouteTypeNotice) AsText() string

func (InvalidRouteTypeNotice) Code

func (n InvalidRouteTypeNotice) Code() string

func (InvalidRouteTypeNotice) Severity

type InvalidTimeNotice

type InvalidTimeNotice struct {
	SingleLineNotice
}

func (InvalidTimeNotice) AsText

func (n InvalidTimeNotice) AsText() string

func (InvalidTimeNotice) Code

func (n InvalidTimeNotice) Code() string

func (InvalidTimeNotice) Severity

type InvalidTimepointNotice

type InvalidTimepointNotice struct {
	SingleLineNotice
}

func (InvalidTimepointNotice) AsText

func (n InvalidTimepointNotice) AsText() string

func (InvalidTimepointNotice) Code

func (n InvalidTimepointNotice) Code() string

func (InvalidTimepointNotice) Severity

type InvalidTimezoneNotice

type InvalidTimezoneNotice struct {
	SingleLineNotice
}

func (InvalidTimezoneNotice) AsText

func (n InvalidTimezoneNotice) AsText() string

func (InvalidTimezoneNotice) Code

func (n InvalidTimezoneNotice) Code() string

func (InvalidTimezoneNotice) Severity

type InvalidURLNotice

type InvalidURLNotice struct {
	SingleLineNotice
}

func (InvalidURLNotice) AsText

func (n InvalidURLNotice) AsText() string

func (InvalidURLNotice) Code

func (n InvalidURLNotice) Code() string

func (InvalidURLNotice) Severity

type InvalidWheelchairAccessibleNotice

type InvalidWheelchairAccessibleNotice struct {
	SingleLineNotice
}

func (InvalidWheelchairAccessibleNotice) AsText

func (InvalidWheelchairAccessibleNotice) Code

func (InvalidWheelchairAccessibleNotice) Severity

type InvalidWheelchairBoardingValueNotice

type InvalidWheelchairBoardingValueNotice struct {
	SingleLineNotice
}

func (InvalidWheelchairBoardingValueNotice) AsText

func (InvalidWheelchairBoardingValueNotice) Code

func (InvalidWheelchairBoardingValueNotice) Severity

type Level

type Level struct {
	Id         string
	LevelIndex float64
	LevelName  string
	LineNumber int
}

type MissingRequiredFieldNotice

type MissingRequiredFieldNotice struct {
	SingleLineNotice
}

func (MissingRequiredFieldNotice) AsText

func (MissingRequiredFieldNotice) Code

func (MissingRequiredFieldNotice) Severity

type MissingRouteLongNameWhenShortNameIsNotPresentNotice

type MissingRouteLongNameWhenShortNameIsNotPresentNotice struct {
	SingleLineNotice
}

func (MissingRouteLongNameWhenShortNameIsNotPresentNotice) AsText

func (MissingRouteLongNameWhenShortNameIsNotPresentNotice) Code

func (MissingRouteLongNameWhenShortNameIsNotPresentNotice) Severity

type MissingRouteShortNameWhenLongNameIsNotPresentNotice

type MissingRouteShortNameWhenLongNameIsNotPresentNotice struct {
	SingleLineNotice
}

func (MissingRouteShortNameWhenLongNameIsNotPresentNotice) AsText

func (MissingRouteShortNameWhenLongNameIsNotPresentNotice) Code

func (MissingRouteShortNameWhenLongNameIsNotPresentNotice) Severity

type Pathway

type Pathway struct {
	Id                  string
	FromStopId          string
	ToStopId            string
	PathwayMode         uint
	IsBidirectional     uint
	Length              float64
	TraversalTime       uint
	StairCount          uint
	MaxSlope            float64
	MinWidth            float64
	SignpostedAs        string
	ReverseSignpostedAs string
	LineNumber          int
}

type Route

type Route struct {
	Id                *string // route_id 			(required, unique)
	AgencyId          *string // agency_id 			(conditionally required)
	ShortName         *string // route_short_name 	(conditionally required)
	LongName          *string // route_long_name 		(conditionally required)
	Desc              *string // route_desc 			(optional)
	Type              *string // route_type 			(required)
	URL               *string // route_url 			(optional)
	Color             *string // route_color 			(optional)
	TextColor         *string // route_text_color 	(optional)
	SortOrder         *string // route_sort_order 	(optional)
	ContinuousPickup  *string // continuous_pickup 	(conditionally forbidden)
	ContinuousDropOff *string // continuous_drop_off 	(conditionally forbidden)
	NetworkId         *string // network_id 			(conditionally forbidden)
	LineNumber        int
}

func CreateRoute

func CreateRoute(row []string, headers map[string]int, lineNumber int) *Route

func LoadRoutes

func LoadRoutes(reader *GtfsCsvReader) ([]*Route, []error)

type RouteDescriptionDuplicatesNameNotice

type RouteDescriptionDuplicatesNameNotice struct {
	SingleLineNotice
	DuplicatingField string
}

func (RouteDescriptionDuplicatesNameNotice) AsText

func (RouteDescriptionDuplicatesNameNotice) Code

func (RouteDescriptionDuplicatesNameNotice) Severity

type Shape

type Shape struct {
	Id           *string // shape_id 			(required)
	PtLat        *string // shape_pt_lat 		(required)
	PtLon        *string // shape_pt_lon 		(required)
	PtSequence   *string // shape_pt_sequence 	(required)
	DistTraveled *string // shape_dist_traveled (optional)
	LineNumber   int
}

func CreateShape

func CreateShape(row []string, headers map[string]int, lineNumber int) *Shape

func LoadShapes

func LoadShapes(reader *GtfsCsvReader) ([]*Shape, []error)

type SingleAgencyRecommendedNotice

type SingleAgencyRecommendedNotice struct {
	FileName string
}

func (SingleAgencyRecommendedNotice) AsText

func (SingleAgencyRecommendedNotice) Code

func (SingleAgencyRecommendedNotice) Severity

type SingleLineNotice

type SingleLineNotice struct {
	FileName  string
	FieldName string
	Line      int
}

type Stop

type Stop struct {
	Id                 *string // stop_id               (required)
	Code               *string // stop_code             (optional)
	Name               *string // stop_name             (conditionally required)
	TTSName            *string // tts_stop_name         (optional)
	Desc               *string // stop_desc             (optional)
	Lat                *string // stop_lat              (conditionally required)
	Lon                *string // stop_lon              (conditionally required)
	ZoneId             *string // zone_id               (optional)
	URL                *string // stop_url              (optional)
	LocationType       *string // location_type         (optional)
	ParentStation      *string // parent_station        (conditionally required)
	Timezone           *string // stop_timezone         (optional)
	WheelchairBoarding *string // wheelchair_boarding   (optional)
	PlatformCode       *string // platform_code         (optional)
	LevelId            *string // level_id              (optional)
	Extensions         *StopExtensions
	LineNumber         int
}

func CreateStop

func CreateStop(row []string, headers map[string]int, lineNumber int) *Stop

func LoadStops

func LoadStops(reader *GtfsCsvReader) ([]*Stop, []error)

type StopExtensions

type StopExtensions struct {
	MunicipalityId *string // municipality_id (optional)
}

type StopTime

type StopTime struct {
	TripId                   *string // trip_id                      (required)
	ArrivalTime              *string // arrival_time                 (conditionally required)
	DepartureTime            *string // departure_time               (conditionally required)
	StopId                   *string // stop_id                      (conditionally required)
	LocationGroupId          *string // location_group_id            (conditionally forbidden)
	LocationId               *string // location_id                  (conditionally forbidden)
	StopSequence             *string // stop_sequence                (required)
	StopHeadSign             *string // stop_headsign                (optional)
	StartPickupDropOffWindow *string // start_pickup_drop_off_window (conditionally required)
	EndPickupDropOffWindow   *string // end_pickup_drop_off_window   (conditionally required)
	PickupType               *string // pickup_type                  (conditionally required)
	DropOffType              *string // drop_off_type                (conditionally required)
	ContinuousPickup         *string // continuous_pickup            (conditionally required)
	ContinuousDropOff        *string // continuous_drop_off          (conditionally required)
	ShapeDistTraveled        *string // shape_dist_traveled          (optional)
	Timepoint                *string // timepoint                    (optional)
	PickupBookingRuleId      *string // pickup_booking_rule_id       (optional)
	DropOffBookingRuleId     *string // drop_off_booking_rule_id     (optional)
	LineNumber               int
}

func CreateStopTime

func CreateStopTime(row []string, headers map[string]int, lineNumber int) *StopTime

func LoadStopTimes

func LoadStopTimes(reader *GtfsCsvReader) ([]*StopTime, []error)

type TooFewShapePointsNotice

type TooFewShapePointsNotice struct {
	FileName string
	ShapeId  string
}

func (TooFewShapePointsNotice) AsText

func (n TooFewShapePointsNotice) AsText() string

func (TooFewShapePointsNotice) Code

func (TooFewShapePointsNotice) Severity

type TooLongRouteShortNameNotice

type TooLongRouteShortNameNotice struct {
	SingleLineNotice
}

func (TooLongRouteShortNameNotice) AsText

func (TooLongRouteShortNameNotice) Code

func (TooLongRouteShortNameNotice) Severity

type Transfer

type Transfer struct {
	FromStopId      string
	ToStopId        string
	TransferType    uint
	MinTransferTime uint
	LineNumber      int
}

type Trip

type Trip struct {
	RouteId              *string // route_id                (required)
	ServiceId            *string // service_id              (required)
	Id                   *string // trip_id                 (required)
	HeadSign             *string // trip_headsign           (optional)
	ShortName            *string // trip_short_name         (optional)
	DirectionId          *string // direction_id            (optional)
	BlockId              *string // block_id                (optional)
	ShapeId              *string // shape_id                (conditionally required)
	WheelchairAccessible *string // wheelchair_accessible   (optional)
	BikesAllowed         *string // bikes_allowed           (optional)
	LineNumber           int
}

func CreateTrip

func CreateTrip(row []string, headers map[string]int, lineNumber int) *Trip

func LoadTrips

func LoadTrips(reader *GtfsCsvReader) ([]*Trip, []error)

type ValidAgencyIdRequiredWhenMultipleAgenciesNotice

type ValidAgencyIdRequiredWhenMultipleAgenciesNotice struct {
	FileName string
	Line     int
}

func (ValidAgencyIdRequiredWhenMultipleAgenciesNotice) AsText

func (ValidAgencyIdRequiredWhenMultipleAgenciesNotice) Code

func (ValidAgencyIdRequiredWhenMultipleAgenciesNotice) Severity

type ValidationNotice

type ValidationNotice interface {
	Code() string
	Severity() ValidationNoticeSeverity
	AsText() string
}

func ValidateAgencies

func ValidateAgencies(agencies []*Agency) []ValidationNotice

func ValidateAgency

func ValidateAgency(a Agency) []ValidationNotice

func ValidateCalendarDate

func ValidateCalendarDate(cd CalendarDate) []ValidationNotice

func ValidateCalendarDates

func ValidateCalendarDates(calendarDates []*CalendarDate, calendarItems []*CalendarItem) []ValidationNotice

func ValidateCalendarItem

func ValidateCalendarItem(c CalendarItem) []ValidationNotice

func ValidateCalendarItems

func ValidateCalendarItems(calendarItems []*CalendarItem) []ValidationNotice

func ValidateRoute

func ValidateRoute(r Route) []ValidationNotice

func ValidateRoutes

func ValidateRoutes(routes []*Route, agencies []*Agency) []ValidationNotice

func ValidateShape

func ValidateShape(s Shape) []ValidationNotice

func ValidateShapes

func ValidateShapes(shapes []*Shape) []ValidationNotice

func ValidateStop

func ValidateStop(s Stop) []ValidationNotice

func ValidateStopTime

func ValidateStopTime(st StopTime) []ValidationNotice

func ValidateStopTimes

func ValidateStopTimes(stopTimes []*StopTime, stops []*Stop) []ValidationNotice

func ValidateStops

func ValidateStops(stops []*Stop) []ValidationNotice

func ValidateTrip

func ValidateTrip(t Trip) []ValidationNotice

func ValidateTrips

func ValidateTrips(trips []*Trip, routes []*Route, calendarItems []*CalendarItem, shapes []*Shape) []ValidationNotice

type ValidationNoticeSeverity

type ValidationNoticeSeverity int
const (
	SeverityInfo           ValidationNoticeSeverity = 1
	SeverityRecommendation ValidationNoticeSeverity = 2
	SeverityViolation      ValidationNoticeSeverity = 3
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL