Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvParser ¶
type CsvParser struct { Curline int // contains filtered or unexported fields }
CsvParser is a wrapper around csv.Reader
func NewCsvParser ¶
NewCsvParser creates a new CsvParser
func (*CsvParser) ParseRecord ¶
ParseRecord reads a single line into a map
type Feed ¶
type Feed struct { Agencies map[string]*gtfs.Agency Stops map[string]*gtfs.Stop Routes map[string]*gtfs.Route Trips map[string]*gtfs.Trip Services map[string]*gtfs.Service FareAttributes map[string]*gtfs.FareAttribute Shapes map[string]*gtfs.Shape Transfers []*gtfs.Transfer FeedInfos []*gtfs.FeedInfo // contains filtered or unexported fields }
Feed represents a single GTFS feed
func (*Feed) SetParseOpts ¶
func (feed *Feed) SetParseOpts(opts ParseOptions)
SetParseOpts sets the ParseOptions for this feed
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
A ParseError indicates an error during parsing
func (ParseError) Error ¶
func (e ParseError) Error() string
type ParseOptions ¶
A ParseOptions object holds options for parsing a the feed
Click to show internal directories.
Click to hide internal directories.