Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalendarEntry ¶
type CoordBySeq ¶
type CoordBySeq []Coord
CoordBySeq is used to sort Coords by their sequence number.
func (CoordBySeq) Len ¶
func (a CoordBySeq) Len() int
func (CoordBySeq) Less ¶
func (a CoordBySeq) Less(i, j int) bool
func (CoordBySeq) Swap ¶
func (a CoordBySeq) Swap(i, j int)
type Feed ¶
type Feed struct { Dir string Routes map[string]*Route Shapes map[string]*Shape Stops map[string]*Stop Trips map[string]*Trip CalendarEntries map[string]CalendarEntry }
Feed represents a collection of GTFS information.
func Load ¶
Load retrieves data from the given directory path and returns a Feed containing that data.
func (*Feed) RouteByShortName ¶
RouteByShortName searches for and returns a route based on its short name, if it exists.
type Headsign ¶
Headsign is the text representing a trip that appears on a sign, such as a bus or train display.
type Route ¶
type Route struct { ID string AgencyID *string ShortName string LongName string Description *string VehicleType RouteType URL *string Color *string TextColor *string Trips []*Trip }
Route represents a single "line", and is made up of one or more trips.
func (Route) LongestShape ¶
LongestShape returns the longest shape in the route.
type RouteType ¶
type RouteType int
RouteType describes the type of vehicle uses a particular route.
type StopTime ¶
StopTime defines when a vehicle arrives at a location, how long it stays there, and when it departs.
type StopTimeBySeq ¶
type StopTimeBySeq []StopTime
StopTimeBySeq is used to sort StopTimes by their sequence number.
func (StopTimeBySeq) Len ¶
func (a StopTimeBySeq) Len() int
func (StopTimeBySeq) Less ¶
func (a StopTimeBySeq) Less(i, j int) bool
func (StopTimeBySeq) Swap ¶
func (a StopTimeBySeq) Swap(i, j int)