Documentation
¶
Index ¶
- func LoadGTFSServices(calendarDates io.Reader, period FeedDates) (map[string][]DatePair, error)
- func LoadGTFSStopTimes(stopTimes io.Reader, tripIDs map[string][]TripID, tripObjects map[TripID]*Trip, ...) error
- func LoadGTFSStops(stops io.Reader) (map[string]string, error)
- func LoadGTFSTrips(trips io.Reader, services map[string][]DatePair) (map[string][]TripID, map[TripID]*Trip, error)
- type DatePair
- type ErrGTFSInvalidPLKTripID
- type ErrGTFSInvalidValue
- type FeedDates
- type NumberID
- type Package
- type StopTime
- type Trip
- type TripID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadGTFSServices ¶
func LoadGTFSStopTimes ¶
Types ¶
type ErrGTFSInvalidPLKTripID ¶
type ErrGTFSInvalidPLKTripID string
func (ErrGTFSInvalidPLKTripID) Error ¶
func (e ErrGTFSInvalidPLKTripID) Error() string
type ErrGTFSInvalidValue ¶
func (ErrGTFSInvalidValue) Error ¶
func (e ErrGTFSInvalidValue) Error() string
func (ErrGTFSInvalidValue) Unwrap ¶
func (e ErrGTFSInvalidValue) Unwrap() error
type Package ¶
type Package struct {
Dates FeedDates
Stops map[string]string
Trips map[TripID]*Trip
TripsByNumber map[NumberID]*Trip
AlternativeTripLookup map[TripID]NumberID
}
func LoadGTFSFromPath ¶
func (*Package) RebuidNumberIndex ¶
func (p *Package) RebuidNumberIndex()
Click to show internal directories.
Click to hide internal directories.