Package busnetwork contain types that can be used to describe a bus network.
Data is a container for data about a bus network.
Route describes a route.
Routes is a collection of pointers to Route(s).
GetByID returns the route with the given id within routes.
Service describes a service.
Services is a collection of pointers to Service(s).
Stop describes a stop.
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.
StopRoutes is a collection of pointers to StopRoute(s).
GetByRouteID returns the stopRoute with the given routeID within stopRoutes.
Stops is a collection of pointers to Stop(s).
GetByID returns the stop with the given id within stops. Returns nil if the stop was not found.