Documentation
¶
Index ¶
- Constants
- func ReadDataRow(r *csv.Reader) ([]string, error)
- func ReadHeaderRow(r *csv.Reader) (map[string]uint8, error)
- func StringArrayContainsItem(s []string, e string) bool
- func ValidateCalendarDates(calendarDates []*CalendarDate, calendarItems []*CalendarItem) []error
- func ValidateRoutes(routes []*Route, agencies []*Agency) []error
- func ValidateShapes(shapes []*Shape) []error
- func ValidateStoptimes(stopTimes []*StopTime, stops []*Stop) []error
- func ValidateTrips(trips []*Trip, routes []*Route, calendarItems []*CalendarItem, shapes []*Shape) []error
- type Agency
- type CalendarDate
- type CalendarItem
- type FareAttributes
- type FareRule
- type Frequency
- type Level
- type Pathway
- type Route
- type Shape
- type Stop
- type StopTime
- type Transfer
- type Trip
Constants ¶
View Source
const ( AgenciesFileName = "agency.txt" RoutesFileName = "routes.txt" StopsFileName = "stops.txt" TripsFileName = "trips.txt" StopTimesFileName = "stop_times.txt" CalendarFileName = "calendar.txt" CalendarDatesFileName = "calendar_dates.txt" ShapesFileName = "shapes.txt" )
Variables ¶
This section is empty.
Functions ¶
func StringArrayContainsItem ¶
func ValidateCalendarDates ¶
func ValidateCalendarDates(calendarDates []*CalendarDate, calendarItems []*CalendarItem) []error
func ValidateRoutes ¶
func ValidateShapes ¶
func ValidateStoptimes ¶
func ValidateTrips ¶
func ValidateTrips(trips []*Trip, routes []*Route, calendarItems []*CalendarItem, shapes []*Shape) []error
Types ¶
type Agency ¶
type CalendarDate ¶
func LoadCalendarDates ¶
func LoadCalendarDates(csvReader *csv.Reader) ([]*CalendarDate, []error)
type CalendarItem ¶
type CalendarItem struct { ServiceId string Monday int Tuesday int Wednesday int Thursday int Friday int Saturday int Sunday int Start time.Time End time.Time // contains filtered or unexported fields }
func LoadCalendarItems ¶
func LoadCalendarItems(csvReader *csv.Reader) ([]*CalendarItem, []error)
type FareAttributes ¶
type Route ¶
type Shape ¶
type Stop ¶
type Stop struct { Id string Code *string Name *string Desc *string Lat *float64 Lon *float64 ZoneId *string Url *string LocationType *int ParentStation *string Timezone *string WheelchairBoarding *int PlatformCode *string LevelId *string MunicipalityId *string // contains filtered or unexported fields }
type StopTime ¶
Click to show internal directories.
Click to hide internal directories.