Documentation ¶
Overview ¶
Package models provides the internal view of the NYC subway realtime feed.
It provides the internal data definitions and some light business logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedUpdate ¶
type FeedUpdate struct { Alerts []Alert StationStatus map[string]StationStatus }
FeedUpdate represents the status at a given moment.
type StationStatus ¶
type StationStatus struct { StopID string StopIDToUpdates map[string][]StationUpdate // multiple directions will be separate keys }
A StationStatus records all scheduled arrivals and departures for a given stop. Stops on the same line, but in different directions, will be grouped into a given StationStatus struct.
Click to show internal directories.
Click to hide internal directories.