Documentation
¶
Overview ¶
Package journal contains a tool for building trip journals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectoryGtfsrtSource ¶
type DirectoryGtfsrtSource struct {
// contains filtered or unexported fields
}
func NewDirectoryGtfsrtSource ¶
func NewDirectoryGtfsrtSource(baseDir string) (*DirectoryGtfsrtSource, error)
func (*DirectoryGtfsrtSource) Next ¶
func (s *DirectoryGtfsrtSource) Next() *gtfs.Realtime
type GtfsrtSource ¶
type GtfsrtSource interface { // TODO: change this to return (*gtfs.RealTime, error) and add logic in BuildJournal to be resilient to this Next() *gtfs.Realtime }
TODO: rename Source
type Journal ¶
type Journal struct {
Trips []Trip
}
func BuildJournal ¶
func BuildJournal(source GtfsrtSource, startTime, endTime time.Time) *Journal
func (*Journal) ExportToCsv ¶ added in v0.1.24
Click to show internal directories.
Click to hide internal directories.