Documentation
¶
Overview ¶
Package busnetwork contain types that can be used to describe a bus network.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { ID int LongName string ShortName string StopRoutes StopRoutes }
Route describes a route.
type Stop ¶
type Stop struct { ID int Name string Services Services StopRoutes StopRoutes }
Stop describes a stop.
type StopRoute ¶
StopRoute describes a route passing through a stop. Services are associated with a stop and a route through this type. This allows direct retrieval of services along a specific route stopping at a specific stop.
type StopRoutes ¶
type StopRoutes []*StopRoute
StopRoutes is a collection of pointers to StopRoute(s).
func (StopRoutes) GetByRouteID ¶
func (stopRoutes StopRoutes) GetByRouteID(routeID int) *StopRoute
GetByRouteID returns the stopRoute with the given routeID within stopRoutes.
Click to show internal directories.
Click to hide internal directories.